]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: snd-usb: fix clock source validity index
authorDaniel Mack <zonque@gmail.com>
Wed, 1 Aug 2012 08:16:53 +0000 (10:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:23:14 +0000 (08:23 -0700)
commit59b4151a5d0587dceafe3275cb972634fca88606
tree48fb2d0fe091c11a18ebf3e4681edbf30aa58137
parentdf665bff98f8b26731343193dd741c458455b57b
ALSA: snd-usb: fix clock source validity index

commit aff252a848ce21b431ba822de3dab9c4c94571cb upstream.

uac_clock_source_is_valid() uses the control selector value to access
the bmControls bitmap of the clock source unit. This is wrong, as
control selector values start from 1, while the bitmap uses all
available bits.

In other words, "Clock Validity Control" is stored in D3..2, not D5..4
of the clock selector unit's bmControls.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Reported-by: Andreas Koch <andreas@akdesigninc.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/clock.c