jackaudio / jack2

jack2 codebase
GNU General Public License v2.0
2.22k stars 377 forks source link

Audio interface fails to initialize properly with jack_load audioadapter #934

Open tavasti opened 1 year ago

tavasti commented 1 year ago

When loading extra audioadapter with jack_load, my interface M-Audio Fast Track Ultra fails to initialize properly. All inputs are just noise, and in logs I see: unable to set format to either 32-bits or 16-bits : Invalid argument.

Interface works ok when it is used as primary jack interface.

Environment

Steps To Reproduce

jack_load -i "-d hw:Ultra -i8 -o8 " ultra audioadapter

Expected vs. actual behavior

Expecting interface to work normally, like it works when running as primary interface. Now recording from any input just gives noise.

Log for loading interface as primary primary.log Log when interface is added with jack_load jack_load.log

nedko commented 1 year ago

Thu May 11 20:27:34 2023: New client 'jack_load' with PID 17481 Thu May 11 20:27:34 2023: New client 'ultra' with PID 0 Thu May 11 20:27:34 2023: Ringbuffer automatic adaptative mode size = 2048 frames Thu May 11 20:27:34 2023: ERROR: ../linux/alsa/JackAlsaAdapter.h:327, unable to set format to either 32-bits or 16-bits : Invalid argument(-22) Thu May 11 20:27:34 2023: ERROR: ../linux/alsa/JackAlsaAdapter.h:327, unable to set format to either 32-bits or 16-bits : Invalid argument(-22) Thu May 11 20:27:34 2023: Audio Interface Description : Thu May 11 20:27:34 2023: Sampling Frequency : 48000, Sample Format : S8, buffering : 512, nperiod : 2 Thu May 11 20:27:34 2023: Software inputs : 8, Software outputs : 8 Thu May 11 20:27:34 2023: Hardware inputs : 8, Hardware outputs : 8 Thu May 11 20:27:34 2023: Card info (address : 0x7f44ae8764c0) Thu May 11 20:27:34 2023: ID = Ultra Thu May 11 20:27:34 2023: Driver = USB-Audio Thu May 11 20:27:34 2023: Name = Fast Track Ultra Thu May 11 20:27:34 2023: LongName = M-Audio Fast Track Ultra at usb-0000:00:14.0-2 , high speed Thu May 11 20:27:34 2023: MixerName = USB Mixer Thu May 11 20:27:34 2023: Components = USB0763:2080 Thu May 11 20:27:34 2023: -------------- Thu May 11 20:27:34 2023: HW Params info (address : 0x7f44a0015ed0)

Thu May 11 20:27:34 2023: -------------- Thu May 11 20:27:34 2023: HW Params info (address : 0x7f44a0016140)

Thu May 11 20:27:34 2023: -------------- Thu May 11 20:27:34 2023: Client 'jack_load' with PID 17481 is out Thu May 11 20:27:34 2023: ERROR: JackRingBuffer::Read : producer too slow, missing frames = 512 Thu May 11 20:27:34 2023: ERROR: JackRingBuffer::Read : producer too slow, missing frames = 512 Thu May 11 20:27:34 2023: ERROR: JackRingBuffer::Read : producer too slow, missing frames = 512 Thu May 11 20:27:34 2023: ERROR: JackRingBuffer::Read : producer too slow, missing frames = 512

(more errors about "too slow")

tavasti commented 1 year ago

Log files with verbose logging

primary_verb.log jack_load_verb.log

tavasti commented 1 year ago

Accidentally closed, reopen

tavasti commented 1 year ago

Because zalsa_in and zalsa_out exist, this bug might be regarded as obsolete, and closed.