From: Takashi Iwai Date: Sun, 9 Dec 2018 09:06:59 +0000 (+0100) Subject: ASoC: hdac_hdmi: Add missing display power-off at driver removal X-Git-Tag: v5.0-rc1~48^2~24^2~1 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=77a49672aae384125942ce621365b11d42cefa32;p=tomoyo%2Ftomoyo-test1.git ASoC: hdac_hdmi: Add missing display power-off at driver removal The display power is in unbalance at removing the driver since it misses the snd_hdac_display_power(OFF) call. Acked-by: Mark Brown Signed-off-by: Takashi Iwai --- diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c index 552ed1968bc4..6216e502cf7b 100644 --- a/sound/soc/codecs/hdac_hdmi.c +++ b/sound/soc/codecs/hdac_hdmi.c @@ -2059,6 +2059,8 @@ static int hdac_hdmi_dev_remove(struct hdac_device *hdev) struct hdac_hdmi_port *port, *port_next; int i; + snd_hdac_display_power(hdev->bus, hdev->addr, false); + list_for_each_entry_safe(pcm, pcm_next, &hdmi->pcm_list, head) { pcm->cvt = NULL; if (list_empty(&pcm->port_list))