From: Takashi Iwai <tiwai@suse.de>
To: linux-sound@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/4] ALSA: usb-audio: Use fixed control index for us16x08 mixer elements
Date: Wed, 14 Oct 2026 08:13:50 +0200 [thread overview]
Message-ID: <87ecdsg675.wl-tiwai@suse.de> (raw)
In-Reply-To: <20261013120528.52586-3-tiwai@suse.de>
On Tue, 13 Oct 2026 14:05:23 +0200,
Takashi Iwai wrote:
>
> The callbacks for us16x08 mixer elements assume that id.index points
> to the channel to be operated, and the assumption is correct for now.
> However, since the kctls are added via snd_usb_mixer_add_control() and
> it looks for the empty slot if the same control name is already
> present, in theory, the index can become more than the channel numbers
> (if a conflicting name really happens).
>
> Since the mixer code in us16x08 doesn't need the search for an empty
> slot but requires the fixed index, this patch changes slightly how to
> assign the kcontrols. Now, a new argument is added to
> snd_usb_mixer_add_list() in order to disable the empty slot search,
> and use it in us16x08's add_new_ctl() helper function, instead.
>
> Fixes: d2bb390a2081 ("ALSA: usb-audio: Tascam US-16x08 DSP mixer quirk")
> Reported-by: Sashiko <sashiko-bot@kernel.org>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Obviously the main part to skip the empty-slot search was missing in
the patch :-<
Will resubmit v2 patch.
Takashi
next prev parent reply other threads:[~2026-10-14 6:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-13 12:05 [PATCH 0/4] ALSA: yet more fixes for Sashiko bug reports Takashi Iwai
2026-10-13 12:05 ` [PATCH 1/4] ALSA: jack: Fix kctl free at error in snd_jack_kctl_new() Takashi Iwai
2026-10-13 12:05 ` [PATCH 2/4] ALSA: usb-audio: Use fixed control index for us16x08 mixer elements Takashi Iwai
2026-10-14 6:13 ` Takashi Iwai [this message]
2026-10-13 12:05 ` [PATCH 3/4] ALSA: pcm: Protect delay DMA sync in forward and rewind, too Takashi Iwai
2026-10-13 12:05 ` [PATCH 4/4] ALSA: line6: Use kzalloc() for PCM buffer allocation 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=87ecdsg675.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.