Skip to contentSkip to conversation

ALSA: usb-audio: Skip sample-rate read-back on PreSonus AudioBox USB

PATCH In review Thomas Nemer 2 participants 2 messages Oct 19 – Oct 20

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: usb-audio: Skip sample-rate read-back on PreSonus AudioBox USB

The AudioBox USB stalls the UAC1 GET_CUR SAMPLING_FREQ request on both streaming endpoints. After the sample rate is set, the read-back verification in set_sample_rate_v1() fails and logs

usb 1-3.1.2: 2:1: cannot get freq at ep 0x1
usb 1-3.1.2: 3:1: cannot get freq at ep 0x82

on each endpoint configuration until the sample_rate_read_error counter gives up. Set QUIRK_FLAG_GET_SAMPLE_RATE to skip the read-back on this device.

Fixes 1869c47e5d59 ("ALSA: usb-audio: Fix missing sample-rate control for PreSonus AudioBox USB")
---
 sound/usb/quirks.c | 2 ++
 1 file changed, 2 insertions(+)
sound/usb/quirks.c +2 -0
index 4ac4aef47d..43eea72477 100644
@@ -2731,6 +2731,8 @@ static const struct usb_audio_quirk_flags_table quirk_flags_table[] = {
 		   QUIRK_FLAG_ITF_USB_DSD_DAC | QUIRK_FLAG_CTL_MSG_DELAY),
 	DEVICE_FLG(0x1901, 0x0191, /* GE B850V3 CP2114 audio interface */
 		   QUIRK_FLAG_GET_SAMPLE_RATE),
+	DEVICE_FLG(0x194f, 0x0301, /* PreSonus AudioBox USB */
+		   QUIRK_FLAG_GET_SAMPLE_RATE),
 	DEVICE_FLG(0x19f7, 0x0003, /* RODE NT-USB */
 		   QUIRK_FLAG_MIXER_PLAYBACK_MIN_MUTE),
 	DEVICE_FLG(0x19f7, 0x0035, /* RODE NT-USB+ */
Signature · 1 line
2.56.0
#1 lore raw
Quoted 8 lines · Thomas Nemer

The AudioBox USB stalls the UAC1 GET_CUR SAMPLING_FREQ request on both streaming endpoints. After the sample rate is set, the read-back verification in set_sample_rate_v1() fails and logs

usb 1-3.1.2: 2:1: cannot get freq at ep 0x1
usb 1-3.1.2: 3:1: cannot get freq at ep 0x82

Quoted 8 lines

on each endpoint configuration until the sample_rate_read_error counter gives up. Set QUIRK_FLAG_GET_SAMPLE_RATE to skip the read-back on this device.

Fixes 1869c47e5d59 ("ALSA: usb-audio: Fix missing sample-rate control for PreSonus AudioBox USB")

Applied now. Thanks.

Takashi