ALSA: hda - Apply a proper chmap for built-in 2.1 speakers
When 2.1 speakers are detected, use the corresponding channel map instead of the standard map with front+rear surrounds. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -344,6 +344,9 @@ static int cs_build_pcms(struct hda_codec *codec)
|
||||
info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->dac_nid[0];
|
||||
info->stream[SNDRV_PCM_STREAM_PLAYBACK].channels_max =
|
||||
spec->multiout.max_channels;
|
||||
if (spec->speaker_2_1)
|
||||
info->stream[SNDRV_PCM_STREAM_PLAYBACK].chmap =
|
||||
snd_pcm_2_1_chmaps;
|
||||
info->stream[SNDRV_PCM_STREAM_CAPTURE] = cs_pcm_analog_capture;
|
||||
info->stream[SNDRV_PCM_STREAM_CAPTURE].nid =
|
||||
spec->adc_nid[spec->cur_input];
|
||||
|
Reference in New Issue
Block a user