]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: usb-audio: Update US-16x08 EQ/comp shadow state after successful writes
authorCássio Gabriel <cassiogabrielcontato@gmail.com>
Sun, 19 Apr 2026 20:30:32 +0000 (17:30 -0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 27 Apr 2026 11:44:49 +0000 (13:44 +0200)
commita440c17869ecd71da0f295b62868fc742d09a8ba
tree7ff41c7d3b74685e5d87b97ae3cd97003cb028ed
parent3c06aec8abda6ba068b58a8b7119cdb2a48456b1
ALSA: usb-audio: Update US-16x08 EQ/comp shadow state after successful writes

snd_us16x08_comp_put() and snd_us16x08_eq_put() update their
software stores before sending the USB write. If the transfer
fails, later get callbacks report a value the hardware never
accepted.

Build the outgoing message from the current store plus the
pending value, then commit the store only after a successful
write.

Fixes: d2bb390a2081 ("ALSA: usb-audio: Tascam US-16x08 DSP mixer quirk")
Cc: stable@vger.kernel.org
Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20260419-usb-write-error-propagation-v1-4-5a3bd4a673ae@gmail.com
sound/usb/mixer_us16x08.c