]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: usb-audio: Avoid false E-MU sample-rate notifications
authorCássio Gabriel <cassiogabrielcontato@gmail.com>
Wed, 22 Apr 2026 00:53:52 +0000 (21:53 -0300)
committerTakashi Iwai <tiwai@suse.de>
Wed, 22 Apr 2026 15:51:42 +0000 (17:51 +0200)
commitfca9c850042a7ab4828ce3a9caa8bc40ea09856a
tree4ffb4d32b409cc2c73116a57edea3fb7fb026cdc
parenteacda758e3c01db98b5c231f56cf9a6e05ced75c
ALSA: usb-audio: Avoid false E-MU sample-rate notifications

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@vger.kernel.org
Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Link: https://patch.msgid.link/20260421-alsa-emuusb-samplerate-notify-v1-1-8b63bbc1d7f1@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_quirks.c