Re: [PATCH] ALSA: usb-audio: Avoid false E-MU sample-rate notifications

From: Takashi Iwai

Date: Wed Apr 22 2026 - 12:06:04 EST


On Wed, 22 Apr 2026 02:53:52 +0200,
Cássio Gabriel wrote:
>
> snd_emuusb_set_samplerate() unconditionally notifies the E-MU
> SampleRate Extension Unit control after issuing SET_CUR.
>
> If snd_usb_mixer_set_ctl_value() fails, the control value has not
> changed, yet snd_usb_mixer_notify_id() still invalidates the cache and
> emits a value-change event to userspace.
>
> Notify the control only after a successful write.
>
> Fixes: 7d2b451e65d2 ("ALSA: usb-audio - Added functionality for E-mu 0404USB/0202USB/TrackerPre")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Cássio Gabriel <cassiogabrielcontato@xxxxxxxxx>

Thanks, applied now.


Takashi