aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_generic.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-01-21 10:50:09 -0500
committerTakashi Iwai <tiwai@suse.de>2013-01-22 08:12:40 -0500
commita607148ff3b9f40427c0f0d5fa039a3a758735c7 (patch)
tree919bce20252a93f4be27bedc9abea7ccb0a9e501 /sound/pci/hda/hda_generic.c
parentf2f8be43c5c92355feea2ec332375ece00bc0ff9 (diff)
ALSA: hda - Set individual name to secondary analog PCM stream
It'd be better to give another name to the secondary (alt) analog PCM stream, which is dedicated for the independent HP out and extra inputs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_generic.c')
-rw-r--r--sound/pci/hda/hda_generic.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c
index 6d1e843c6e8d..63d12efb7c1a 100644
--- a/sound/pci/hda/hda_generic.c
+++ b/sound/pci/hda/hda_generic.c
@@ -4531,9 +4531,12 @@ int snd_hda_gen_build_pcms(struct hda_codec *codec)
4531 !spec->dyn_adc_switch && !spec->auto_mic; 4531 !spec->dyn_adc_switch && !spec->auto_mic;
4532 /* Additional Analaog capture for index #2 */ 4532 /* Additional Analaog capture for index #2 */
4533 if (spec->alt_dac_nid || have_multi_adcs) { 4533 if (spec->alt_dac_nid || have_multi_adcs) {
4534 fill_pcm_stream_name(spec->stream_name_alt_analog,
4535 sizeof(spec->stream_name_alt_analog),
4536 " Alt Analog", codec->chip_name);
4534 codec->num_pcms = 3; 4537 codec->num_pcms = 3;
4535 info = spec->pcm_rec + 2; 4538 info = spec->pcm_rec + 2;
4536 info->name = spec->stream_name_analog; 4539 info->name = spec->stream_name_alt_analog;
4537 if (spec->alt_dac_nid) { 4540 if (spec->alt_dac_nid) {
4538 p = spec->stream_analog_alt_playback; 4541 p = spec->stream_analog_alt_playback;
4539 if (!p) 4542 if (!p)