提交 8e0428a7 编写于 作者: M Michael Drake 提交者: Takashi Iwai

ALSA: usb-audio: ADC3: Fix channel mapping conversion for ADC3.

The channel mapping is defined by bChRelationship, not bChPurpose.

Fixes: 9a2fe9b8 ("ALSA: usb: initial USB Audio Device Class 3.0 support")
Reviewed-by: NRuslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: NMichael Drake <michael.drake@codethink.co.uk>
Signed-off-by: NJorge Sanjuan <jorge.sanjuan@codethink.co.uk>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 10412c42
...@@ -349,7 +349,7 @@ snd_pcm_chmap_elem *convert_chmap_v3(struct uac3_cluster_header_descriptor ...@@ -349,7 +349,7 @@ snd_pcm_chmap_elem *convert_chmap_v3(struct uac3_cluster_header_descriptor
* TODO: this conversion is not complete, update it * TODO: this conversion is not complete, update it
* after adding UAC3 values to asound.h * after adding UAC3 values to asound.h
*/ */
switch (is->bChPurpose) { switch (is->bChRelationship) {
case UAC3_CH_MONO: case UAC3_CH_MONO:
map = SNDRV_CHMAP_MONO; map = SNDRV_CHMAP_MONO;
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册