From: Takashi Iwai <tiwai@suse.de>
To: Lee Volkov <voilthuman@gmail.com>
Cc: Takashi Iwai <tiwai@suse.com>, Jaroslav Kysela <perex@perex.cz>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH 2/2] ALSA: usb-audio: Reuse active sync endpoint format for implicit feedback
Date: Fri, 04 Dec 2026 10:21:22 +0100 [thread overview]
Message-ID: <87ik19tn8t.wl-tiwai@suse.de> (raw)
In-Reply-To: <20261202181013.145045-3-voilthuman@gmail.com>
On Wed, 02 Dec 2026 19:10:13 +0100,
Lee Volkov wrote:
>
> On devices where implicit feedback shares a capture endpoint with
> multiple altsettings (such as Solid State Logic SSL 12, where 16/12ch
> capture altsets support up to 96 kHz and 10ch Altset 3 supports up to
> 192 kHz), opening capture on a non-first altsetting (e.g. Altset 3 at
> 48 or 96 kHz) and then starting playback triggers a failure:
>
> snd_usb_find_implicit_fb_sync_format() scans subs->fmt_list from the
> first entry and picks Altset 1 because it also matches the rate and
> channel-agnostic check, ignoring that the shared sync endpoint is
> already open in Altset 3. snd_usb_endpoint_open() then rejects the
> mismatch in endpoint_compatible() and fails playback with -EINVAL
> ("Incompatible EP setup for 0x81").
>
> Look up the live sync endpoint with snd_usb_get_endpoint() under
> chip->mutex first; if it is already opened with a compatible
> cur_audiofmt, reuse that active audioformat directly instead of
> selecting a conflicting altsetting.
>
> Fixes: 5d15f1eb4560 ("ALSA: usb-audio: Choose audioformat of a counter-part substream")
> Cc: stable@vger.kernel.org
> Signed-off-by: Lee Volkov <voilthuman@gmail.com>
> ---
> sound/usb/implicit.c | 24 +++++++++++++++++++++++-
> 1 file changed, 23 insertions(+), 1 deletion(-)
>
> diff --git a/sound/usb/implicit.c b/sound/usb/implicit.c
> index bd4d569a8..56fb87345 100644
> --- a/sound/usb/implicit.c
> +++ b/sound/usb/implicit.c
> @@ -3,6 +3,7 @@
> // Special handling for implicit feedback mode
> //
>
> +#include <linux/cleanup.h>
> #include <linux/init.h>
> #include <linux/usb.h>
> #include <linux/usb/audio.h>
This is superfluous. guard() is already used in this code.
Also, Sashiko gave an interesting review result. Could you check it?
thanks,
Takashi
prev parent reply other threads:[~2026-12-04 9:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261202181013.145045-1-voilthuman@gmail.com>
2026-12-02 18:10 ` [PATCH 1/2] ALSA: usb-audio: Filter invalid capture rates on Solid State Logic SSL 12 Lee Volkov
2026-12-02 18:10 ` [PATCH 2/2] ALSA: usb-audio: Reuse active sync endpoint format for implicit feedback Lee Volkov
2026-12-04 9:21 ` Takashi Iwai [this message]
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=87ik19tn8t.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=stable@vger.kernel.org \
--cc=tiwai@suse.com \
--cc=voilthuman@gmail.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