From: "Cássio Gabriel" <cassiogabrielcontato@gmail.com>
To: Takashi Iwai <tiwai@suse.com>
Cc: "Thomas Ebeling" <penguins@bollie.de>,
"Ian Douglas Scott" <ian@iandouglasscott.com>,
"Jaroslav Kysela" <perex@perex.cz>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
"Cássio Gabriel" <cassiogabrielcontato@gmail.com>,
stable@vger.kernel.org
Subject: [PATCH 0/2] ALSA: usb-audio: Fix stale quirk control caches after write failures
Date: Wed, 29 Apr 2026 10:20:00 -0300 [thread overview]
Message-ID: <20260429-alsa-usb-quirks-cache-rollback-v1-0-01b35c688b80@gmail.com> (raw)
This series fixes stale software cache handling in several usb-audio
mixer quirks.
A number of quirk callbacks update kcontrol->private_value before
issuing vendor or class writes. When such a write fails, the driver can
keep reporting and later replaying a value the device never accepted,
because the corresponding get and resume paths consume the cached state.
- Patch 1 fixes the simple single-write quirk callbacks by restoring the
previous cache on error.
- Patch 2 fixes the RME Babyface Pro packed-state callbacks by updating
the cache only after a successful write, since those helpers already
take explicit arguments and do not need private_value to be updated
before the USB request.
The split keeps the generic quirk fixes separate from the Babyface Pro
packed-state logic and keeps each patch tied to its own introducing bug.
Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
---
Cássio Gabriel (2):
ALSA: usb-audio: Roll back quirk control caches on write errors
ALSA: usb-audio: Update Babyface Pro control caches only after successful writes
sound/usb/mixer_quirks.c | 61 +++++++++++++++++++++++++++++++++++++-----------
1 file changed, 47 insertions(+), 14 deletions(-)
---
base-commit: 7b04e87c2a10db9c65b3133949bbe1b738b6ed7e
change-id: 20260418-alsa-usb-quirks-cache-rollback-43a07052f22c
Best regards,
--
Cássio Gabriel <cassiogabrielcontato@gmail.com>
next reply other threads:[~2026-04-29 13:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-29 13:20 Cássio Gabriel [this message]
2026-04-29 13:20 ` [PATCH 1/2] ALSA: usb-audio: Roll back quirk control caches on write errors Cássio Gabriel
2026-04-29 13:20 ` [PATCH 2/2] ALSA: usb-audio: Update Babyface Pro control caches only after successful writes Cássio Gabriel
2026-04-29 15:16 ` [PATCH 0/2] ALSA: usb-audio: Fix stale quirk control caches after write failures Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260429-alsa-usb-quirks-cache-rollback-v1-0-01b35c688b80@gmail.com \
--to=cassiogabrielcontato@gmail.com \
--cc=ian@iandouglasscott.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=penguins@bollie.de \
--cc=perex@perex.cz \
--cc=stable@vger.kernel.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox