summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2026-10-14 08:14:05 +0200
committerTakashi Iwai <tiwai@suse.de>2026-10-14 08:56:24 +0200
commita68a688ce220f1b359bec53fa38d1504314dc70f (patch)
treee304fc1b6767a4f425d8539dcd0b5b7c49aa6e11 /include/uapi/linux
parentab669ac2bc418a3ef1a1541ea6e1ef5dc8c87a3f (diff)
downloadlinux-next-a68a688ce220f1b359bec53fa38d1504314dc70f.tar.gz
linux-next-a68a688ce220f1b359bec53fa38d1504314dc70f.zip
ALSA: usb-audio: Use fixed control index for us16x08 mixer elements
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> Link: https://patch.msgid.link/20261014061406.162938-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions