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

Commit 07a1e813 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Don't show the current connection for power widgets



The power-widgets have no connection selection, so skip the check
in proc output, too.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 4a100793
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -399,8 +399,10 @@ static void print_conn_list(struct snd_info_buffer *buffer,
{
	int c, curr = -1;

	if (conn_len > 1 && wid_type != AC_WID_AUD_MIX &&
	    wid_type != AC_WID_VOL_KNB)
	if (conn_len > 1 &&
	    wid_type != AC_WID_AUD_MIX &&
	    wid_type != AC_WID_VOL_KNB &&
	    wid_type != AC_WID_POWER)
		curr = snd_hda_codec_read(codec, nid, 0,
					  AC_VERB_GET_CONNECT_SEL, 0);
	snd_iprintf(buffer, "  Connection: %d\n", conn_len);