]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb: Fix wrong mapping of RLC and RRC channels
authorAnssi Hannula <anssi.hannula@iki.fi>
Sun, 10 Nov 2013 19:24:05 +0000 (21:24 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 11 Nov 2013 16:06:57 +0000 (17:06 +0100)
commitfdee2366322662503d700b873dcedb528bf531fa
tree3ef678c2d8da68a9cc2fd34906a8cc177f6722ec
parent1685a8d2f90f72d307312d6b1254d0caae38cfb7
ALSA: usb: Fix wrong mapping of RLC and RRC channels

According to USB Audio spec v2 bits 25 and 26 of bmChannelConfig are
"Back Left of Center - BLC" and "Back Right of Center - BRC",
respectively.

They are currently assigned to ALSA channels BLC/BRC. However, the ALSA
BLC/BRC are actually the rather nonsensical "bottom left center" and
"bottom right center", so the channels will be assigned wrongly. The
comments in the USB code are also similarly wrong, so this is not
readily apparent without looking at the actual specification.

Fix the channel mapping by mapping bits 25 and 26 to RLC (Rear Left
Center) and RRC (Rear Right Center), respectively, instead.

Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/stream.c