]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: add control index offset
authorEldad Zack <eldad@fogrefinery.com>
Wed, 28 Nov 2012 22:55:35 +0000 (23:55 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 29 Nov 2012 07:43:12 +0000 (08:43 +0100)
commit3134d4ba2f1419e8c5b5b827c9325390813e00e9
tree3a80076a31997d21dcfa20a21a58747bf6675173
parent5d513ff5ab6b70d60181f9b07d7eef5cc7866730
ALSA: usb-audio: add control index offset

Currently, channel IDs exceeding 31 (0x1f) cannot be used.
The channel ID is derived from the cmask. Extending cmask
to a 64-bit type would only allow it to go up to 63 (0x3f).
Some devices have channel IDs exceeding that as well.
To address that, add an offset to the mixer element which
is then accounted for in the UAC set/get functions.

Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c
sound/usb/mixer.h
sound/usb/mixer_quirks.c