<div dir="ltr"><div>Hi all,</div><div><br></div><div>I made some headway on this, I was able to start Jack, but... this is the weirdest thing I've ever seen with hardware audio:<br></div><div><br></div><div>I had to make the period size 1008 samples - not 1024, etc. <br></div><div><br></div><div>I discovered this number by running Jack starting with the dummy server, like: `jackd -d dummy` and then adding the alsa_in device, like: `alsa_in -d hw:CARD=sofhdadsp,DEV=0 -r 48000`</div><div><br></div><div><span style="font-family:monospace">alsa_in -d hw:CARD=sofhdadsp,DEV=0 -r 48000<br>WARNING: buffer size does not match: (requested 2048, got 2040)<br>WARNING: period size does not match: (requested 1024, got 1008)<br>selected sample format: 32bit<br>delay = 4208</span></div><div><span style="font-family:monospace"><br></span></div><div>So starting up jackd like: `jackd -d alsa --period=1008` boots, but the sound is horrible from SuperCollider.</div><div><br></div><div>Is there any way to update my sound card to use a more standard period size? Or am I out of luck here? That buffer size is also very... unusual.<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 7, 2020 at 5:10 PM Dan Zink <<a href="mailto:sludgefree@gmail.com">sludgefree@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello all,</div><div><br></div><div>Sometimes I want to use jackd with the laptop speakers or headphones, instead of my audio interface. I can't get it to start on my new laptop (using the audio interface works perfectly, thanks community :) ).<br></div><div><br></div><div>I've successfully and mostly painlessly gotten jackd working on a few different machines, but this one has me stumped. I'm going to try to document as much as I can here so please forgive me if I miss something.<br></div><div><br></div><div><br></div><div>I'm using this version of jackd</div><div><br></div><div><span style="font-family:monospace">$jackd -V<br>jackdmp version 1.9.12 tmpdir /dev/shm protocol 8</span><br></div><div><br></div><div><br></div><div><br></div><div>and this version of Ubuntu:</div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">$uname -a<br>Linux daniel-ThinkPad-X1-Carbon-7th 5.4.0-45-generic #49-Ubuntu SMP Wed Aug 26 13:38:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux</span><br></div><div><br></div><div><br></div><div><br></div><div>Starting up selecting the first device under `aplay` throws this error (using -R instead of -r doesn't seem to affect very much):<span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">$jackd --verbose -r -P 80 -d alsa -d hw:sofhdadsp,0<br>jackdmp 1.9.12<br>Copyright 2001-2005 Paul Davis and others.<br>Copyright 2004-2016 Grame.<br>Copyright 2016-2017 Filipe Coelho.<br>jackdmp comes with ABSOLUTELY NO WARRANTY<br>This is free software, and you are welcome to redistribute it<br>under certain conditions; see the file COPYING for details<br>no message buffer overruns<br>no message buffer overruns<br>no message buffer overruns<br>JACK server starting in non-realtime mode<br>self-connect-mode is "Don't restrict self connect requests"<br>Jack: JackPosixThread::StartImp : create non RT thread<br>Jack: JackPosixThread::ThreadHandler : start<br>Jack: playback device hw:sofhdadsp,0<br>Jack: capture device hw:sofhdadsp,0<br>Jack: JackDriver::Open capture_driver_name = hw:sofhdadsp,0<br>Jack: JackDriver::Open playback_driver_name = hw:sofhdadsp,0<br>Jack: Check protocol client = 8 server = 8<br>Jack: JackEngine::ClientInternalOpen: name = system<br>Jack: JackEngine::AllocateRefNum ref = 0<br>Jack: JackLinuxFutex::Allocate name = jack_sem.1000_default_system val = 0<br>Jack: JackEngine::NotifyAddClient: name = system<br>Jack: JackGraphManager::SetBufferSize size = 1024<br>Jack: JackConnectionManager::DirectConnect first: ref1 = 0 ref2 = 0<br>Jack: JackGraphManager::ConnectRefNum cur_index = 0 ref1 = 0 ref2 = 0<br>Jack: JackDriver::SetupDriverSync driver sem in flush mode<br>audio_reservation_init<br>Acquire audio card Audio0<br>creating alsa driver ... hw:sofhdadsp,0|hw:sofhdadsp,0|1024|2|48000|0|0|nomon|swmeter|-|32bit<br>configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods<br>ALSA: final selected sample format for capture: 32bit integer little-endian<br>ALSA: cannot set period size to 1024 frames for capture<br>ALSA: cannot configure capture channel<br>Jack: JackDriver::Close<br>Jack: JackConnectionManager::DirectDisconnect last: ref1 = 0 ref2 = 0<br>Jack: JackGraphManager::DisconnectRefNum cur_index = 0 ref1 = 0 ref2 = 0<br>Jack: JackEngine::ClientInternalClose ref = 0<br>Jack: JackEngine::ClientCloseAux ref = 0<br>Jack: JackGraphManager::RemoveAllPorts ref = 0<br>Released audio card Audio0<br>audio_reservation_finish<br>Jack: ~JackDriver<br>Cannot initialize driver<br>Jack: no message buffer overruns<br>Jack: JackPosixThread::Stop<br>Jack: JackPosixThread::ThreadHandler : exit<br>JackServer::Open failed with -1<br>Jack: Succeeded in unlocking 82280346 byte memory area<br>Jack: JackShmMem::delete size = 0 index = 0<br>Jack: ~JackDriver<br>Jack: Succeeded in unlocking 1187 byte memory area<br>Jack: JackShmMem::delete size = 0 index = 1<br>Jack: Cleaning up shared memory<br>Jack: Cleaning up files<br>Jack: Unregistering server `default'<br>Failed to open server</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><font face="arial,sans-serif">Using a dummy server succeeds:</font></span></div><div><span style="font-family:monospace"><font face="arial,sans-serif"><br></font></span></div><div><span style="font-family:monospace"><font face="arial,sans-serif"><span style="font-family:monospace">$jackd -r -P 80 -d dummy<br>jackdmp 1.9.12<br>Copyright 2001-2005 Paul Davis and others.<br>Copyright 2004-2016 Grame.<br>Copyright 2016-2017 Filipe Coelho.<br>jackdmp comes with ABSOLUTELY NO WARRANTY<br>This is free software, and you are welcome to redistribute it<br>under certain conditions; see the file COPYING for details<br>no message buffer overruns<br>no message buffer overruns<br>no message buffer overruns<br>JACK server starting in non-realtime mode<br>self-connect-mode is "Don't restrict self connect requests"</span><br></font></span></div><div><br></div><div><br></div><div><br></div><div>When I list my devices (with the interface unplugged), with aplay -l I get: </div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">$aplay -l<br>**** List of PLAYBACK Hardware Devices ****<br>card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []<br>  Subdevices: 0/1<br>  Subdevice #0: subdevice #0<br>card 0: sofhdadsp [sof-hda-dsp], device 1: HDA Digital (*) []<br>  Subdevices: 1/1<br>  Subdevice #0: subdevice #0<br>card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []<br>  Subdevices: 1/1<br>  Subdevice #0: subdevice #0<br>card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []<br>  Subdevices: 1/1<br>  Subdevice #0: subdevice #0<br>card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []<br>  Subdevices: 1/1<br>  Subdevice #0: subdevice #0</span></div><div><span style="font-family:monospace"><br></span></div><div><br></div><div><br></div><div>here's the relevant lsmod:</div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">$lsmod | grep snd<br>snd_seq_dummy          16384  0<br>snd_usb_audio         266240  0<br>snd_usbmidi_lib        36864  1 snd_usb_audio<br>snd_seq_midi           20480  0<br>snd_seq_midi_event     16384  1 snd_seq_midi<br>snd_seq                69632  3 snd_seq_midi,snd_seq_midi_event,snd_seq_dummy<br>snd_rawmidi            36864  2 snd_seq_midi,snd_usbmidi_lib<br>snd_seq_device         16384  3 snd_seq,snd_seq_midi,snd_rawmidi<br>snd_hda_intel          53248  0<br>mc                     53248  5 videodev,snd_usb_audio,videobuf2_v4l2,uvcvideo,videobuf2_common<br>snd_soc_skl_hda_dsp    24576  6<br>snd_hda_codec_hdmi     61440  1<br>snd_soc_hdac_hdmi      36864  1 snd_soc_skl_hda_dsp<br>snd_hda_codec_realtek   126976  1<br>snd_hda_codec_generic    81920  1 snd_hda_codec_realtek<br>snd_soc_dmic           16384  1<br>snd_sof_pci            20480  2<br>snd_sof_intel_hda_common    69632  1 snd_sof_pci<br>snd_soc_hdac_hda       24576  1 snd_sof_intel_hda_common<br>snd_sof_intel_hda      20480  1 snd_sof_intel_hda_common<br>snd_sof_intel_byt      20480  1 snd_sof_pci<br>snd_sof_intel_ipc      20480  1 snd_sof_intel_byt<br>snd_sof               106496  4 snd_sof_pci,snd_sof_intel_hda_common,snd_sof_intel_byt,snd_sof_intel_ipc<br>snd_sof_xtensa_dsp     16384  1 snd_sof_pci<br>snd_hda_ext_core       28672  4 snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda<br>snd_soc_acpi_intel_match    32768  2 snd_sof_pci,snd_sof_intel_hda_common<br>snd_soc_acpi           16384  2 snd_sof_pci,snd_soc_acpi_intel_match<br>snd_soc_core          245760  6 snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_dmic,snd_soc_skl_hda_dsp<br>snd_compress           24576  1 snd_soc_core<br>ac97_bus               16384  1 snd_soc_core<br>snd_pcm_dmaengine      16384  1 snd_soc_core<br>snd_intel_dspcfg       24576  3 snd_hda_intel,snd_sof_pci,snd_sof_intel_hda_common<br>snd_hda_codec         131072  6 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda,snd_soc_skl_hda_dsp<br>snd_hda_core           90112  11 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda,snd_soc_skl_hda_dsp<br>snd_hwdep              20480  2 snd_usb_audio,snd_hda_codec<br>snd_pcm               106496  11 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_core,snd_hda_core,snd_pcm_dmaengine<br>ledtrig_audio          16384  4 snd_hda_codec_generic,snd_hda_codec_realtek,snd_sof,thinkpad_acpi<br>snd_timer              36864  2 snd_seq,snd_pcm<br>snd                    90112  28 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,thinkpad_acpi,snd_soc_core,snd_pcm,snd_soc_skl_hda_dsp,snd_rawmidi<br>soundcore              16384  1 snd</span></div><div><br></div><div><br></div><div><br></div><div>And finally, the lspci</div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">$sudo lspci<br>00:00.0 Host bridge: Intel Corporation Coffee Lake HOST and DRAM Controller (rev 0c)<br>00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (Whiskey Lake) (rev 02)<br>00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 0c)<br>00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model<br>00:12.0 Signal processing controller: Intel Corporation Cannon Point-LP Thermal Controller (rev 11)<br>00:14.0 USB controller: Intel Corporation Cannon Point-LP USB 3.1 xHCI Controller (rev 11)<br>00:14.2 RAM memory: Intel Corporation Cannon Point-LP Shared SRAM (rev 11)<br>00:14.3 Network controller: Intel Corporation Cannon Point-LP CNVi [Wireless-AC] (rev 11)<br>00:15.0 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP Serial IO I2C Controller #0 (rev 11)<br>00:15.1 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP Serial IO I2C Controller #1 (rev 11)<br>00:16.0 Communication controller: Intel Corporation Cannon Point-LP MEI Controller #1 (rev 11)<br>00:1d.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #9 (rev f1)<br>00:1d.4 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #13 (rev f1)<br>00:1f.0 ISA bridge: Intel Corporation Cannon Point-LP LPC Controller (rev 11)<br>00:1f.3 Audio device: Intel Corporation Cannon Point-LP High Definition Audio Controller (rev 11)<br>00:1f.4 SMBus: Intel Corporation Cannon Point-LP SMBus Controller (rev 11)<br>00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP SPI Controller (rev 11)<br>00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (6) I219-V (rev 11)<br>03:00.0 Non-Volatile memory controller: Sandisk Corp WD Black 2018/PC SN720 NVMe SSD</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><font face="arial,sans-serif">Has anyone else succeeded in getting jackd running with this particular hardware? Thanks!</font></span><br></div></div>
</blockquote></div>