]> git.baikalelectronics.ru Git - kernel.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)
committerTakashi Iwai <tiwai@suse.de>
Wed, 1 Aug 2012 08:24:16 +0000 (10:24 +0200)
commita13c4db8b9f1cd714a6bf1cba013b3549af7cd3f
tree3780933dfad8b9b880baa5fe67a155008cf7295c
parentd35b2fd6b574b58e14c3252be99eb804a39a1119
ALSA: snd-usb: fix clock source validity index

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>
Cc: stable@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/clock.c