Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6aadf41d authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Name the primary out as Speaker when needed for VIA codecs



When the primary output is the speaker output, rather name it as
"Speaker".  This will be more intuitive.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 13af8e77
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1770,7 +1770,11 @@ static int via_auto_create_multi_out_ctls(struct hda_codec *codec)
			if (err < 0)
				return err;
		} else {
			err = create_ch_ctls(codec, chname[i], pin, dac, 3);
			const char *pfx = chname[i];
			if (cfg->line_out_type == AUTO_PIN_SPEAKER_OUT &&
			    cfg->line_outs == 1)
				pfx = "Speaker";
			err = create_ch_ctls(codec, pfx, pin, dac, 3);
			if (err < 0)
				return err;
		}