Re: [PATCH] ALSA: usb-audio: Fix missing sample-rate control for PreSonus AudioBox USB
From: Takashi Iwai
Date: Mon Oct 19 2026 - 04:40:55 EST
On Sun, 18 Oct 2026 13:15:19 +0200,
Thomas Nemer wrote:
>
> The fixed audio formats for the PreSonus AudioBox USB declare
> .attributes = 0, dropping UAC_EP_CS_ATTR_SAMPLE_RATE that the device
> advertises in its class-specific endpoint descriptors (EP_GENERAL
> bmAttributes 0x01 on both EP 0x01 and EP 0x82).
>
> As a result set_sample_rate_v1() bails out and the kernel never sends
> the UAC1 SET_CUR SAMPLING_FREQ request, leaving the device on its
> power-on default clock. Playback and capture then run distorted
> whenever the stream rate differs from that default. The device keeps
> the last rate set by a host as long as it stays powered, which made the
> regression look intermittent (e.g. it disappears after the device was
> initialized by a host running a kernel without this quirk entry).
>
> Restore the sample-rate attribute on both streams.
>
> Fixes: 34fe4a9df247 ("ALSA: usb-audio: Add quirk for PreSonus AudioBox USB")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Thomas Nemer <thomas.nemer@xxxxxxxxxxx>
Applied now. Thanks.
Takashi