summaryrefslogtreecommitdiff
path: root/sound/usb
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2018-04-24 20:24:43 +0300
committerTakashi Iwai <tiwai@suse.de>2018-04-24 20:54:56 +0300
commit8e0428a7e7a8e521540f7f87ce1c55ae04acd708 (patch)
tree243de8b425b4916f0a0bf17c1c82ada6411288d6 /sound/usb
parent10412c420af9ba1f3de8483a95d360e5eb5bfc84 (diff)
downloadlinux-8e0428a7e7a8e521540f7f87ce1c55ae04acd708.tar.xz
ALSA: usb-audio: ADC3: Fix channel mapping conversion for ADC3.
The channel mapping is defined by bChRelationship, not bChPurpose. Fixes: 9a2fe9b801f5 ("ALSA: usb: initial USB Audio Device Class 3.0 support") Reviewed-by: Ruslan Bilovol <ruslan.bilovol@gmail.com> Signed-off-by: Michael Drake <michael.drake@codethink.co.uk> Signed-off-by: Jorge Sanjuan <jorge.sanjuan@codethink.co.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/stream.c b/sound/usb/stream.c
index 6a8f5843334e..956be9f7c72a 100644
--- a/sound/usb/stream.c
+++ b/sound/usb/stream.c
@@ -349,7 +349,7 @@ snd_pcm_chmap_elem *convert_chmap_v3(struct uac3_cluster_header_descriptor
* TODO: this conversion is not complete, update it
* after adding UAC3 values to asound.h
*/
- switch (is->bChPurpose) {
+ switch (is->bChRelationship) {
case UAC3_CH_MONO:
map = SNDRV_CHMAP_MONO;
break;