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

Commit c9adeefd authored by David Henningsson's avatar David Henningsson Committed by Takashi Iwai
Browse files

ALSA: hda - Keep power link on for PantherPoint HDMI

On some of the PantherPoint HDMI machines we currently enable, we're seeing
trouble with unsol events, i e detecting monitor presence, especially when
on battery and after suspend/resume.

BugLink: https://bugs.launchpad.net/bugs/1075882


Tested-by: default avatarCyrus Lien <cyrus.lien@canonical.com>
Signed-off-by: default avatarDavid Henningsson <david.henningsson@canonical.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 44923632
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -1288,13 +1288,17 @@ static int hdmi_parse_codec(struct hda_codec *codec)
		}
		}
	}
	}


#ifdef CONFIG_PM
	/* We're seeing some problems with unsolicited hot plug events on
	 * PantherPoint after S3, if this is not enabled */
	if (codec->vendor_id == 0x80862806)
		codec->bus->power_keep_link_on = 1;
	/*
	/*
	 * G45/IbexPeak don't support EPSS: the unsolicited pin hot plug event
	 * G45/IbexPeak don't support EPSS: the unsolicited pin hot plug event
	 * can be lost and presence sense verb will become inaccurate if the
	 * can be lost and presence sense verb will become inaccurate if the
	 * HDA link is powered off at hot plug or hw initialization time.
	 * HDA link is powered off at hot plug or hw initialization time.
	 */
	 */
#ifdef CONFIG_PM
	else if (!(snd_hda_param_read(codec, codec->afg, AC_PAR_POWER_STATE) &
	if (!(snd_hda_param_read(codec, codec->afg, AC_PAR_POWER_STATE) &
	      AC_PWRST_EPSS))
	      AC_PWRST_EPSS))
		codec->bus->power_keep_link_on = 1;
		codec->bus->power_keep_link_on = 1;
#endif
#endif