ALSA: hda - Use "Line Out" name instead of "PCM" when there are other outputs

In case there are speakers or headphones as well, anything that only
covers the line out should not be labelled "PCM". Let's name it
"Line Out" instead for clarity.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
David Henningsson 2014-10-16 15:33:46 +02:00 committed by Takashi Iwai
parent 03ad6a8c93
commit 3abb4f4d0e

View File

@ -1055,7 +1055,7 @@ static const char *get_line_out_pfx(struct hda_codec *codec, int ch,
/* for a single channel output, we don't have to name the channel */ /* for a single channel output, we don't have to name the channel */
if (cfg->line_outs == 1 && !spec->multi_ios) if (cfg->line_outs == 1 && !spec->multi_ios)
return "PCM"; return "Line Out";
if (ch >= ARRAY_SIZE(channel_name)) { if (ch >= ARRAY_SIZE(channel_name)) {
snd_BUG(); snd_BUG();