diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-11-08 11:12:10 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-11-08 11:13:59 -0500 |
commit | ee81abb623cb5e03c182d16871bb4fb34fdc9b4f (patch) | |
tree | 74499d19b6cc75343da95899e93a69ad56541323 /sound/pci/hda/patch_realtek.c | |
parent | f37bc7a88d374448a1f4bba9267d308606d78bf2 (diff) |
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>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index bc71be32232e..89737ae49152 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -2260,6 +2260,10 @@ static int alc_build_pcms(struct hda_codec *codec) | |||
2260 | info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->multiout.dac_nids[0]; | 2260 | info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->multiout.dac_nids[0]; |
2261 | info->stream[SNDRV_PCM_STREAM_PLAYBACK].channels_max = | 2261 | info->stream[SNDRV_PCM_STREAM_PLAYBACK].channels_max = |
2262 | spec->multiout.max_channels; | 2262 | spec->multiout.max_channels; |
2263 | if (spec->autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT && | ||
2264 | spec->autocfg.line_outs == 2) | ||
2265 | info->stream[SNDRV_PCM_STREAM_PLAYBACK].chmap = | ||
2266 | snd_pcm_2_1_chmaps; | ||
2263 | } | 2267 | } |
2264 | if (spec->adc_nids) { | 2268 | if (spec->adc_nids) { |
2265 | p = spec->stream_analog_capture; | 2269 | p = spec->stream_analog_capture; |