Commit 513029ea authored by Takashi Iwai's avatar Takashi Iwai Committed by Kamal Mostafa

ALSA: hda - Skip ELD notification during PM process

BugLink: http://bugs.launchpad.net/bugs/1596871

The ELD notification can be received asynchronously from the graphics
side, and this may happen just at the moment the sound driver is
processing the suspend or the resume, and it would confuse the whole
procedure.  Since the ELD and connection states are updated in anyway
at the end of the resume, we can skip it when received during PM
process.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
(cherry picked from commit eb399d3c)
Signed-off-by: default avatarHui Wang <hui.wang@canonical.com>
Acked-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent d710a8e9
......@@ -2364,6 +2364,9 @@ static void intel_pin_eld_notify(void *audio_ptr, int port)
*/
if (snd_power_get_state(codec->card) != SNDRV_CTL_POWER_D0)
return;
/* ditto during suspend/resume process itself */
if (atomic_read(&(codec)->core.in_pm))
return;
check_presence_and_report(codec, pin_nid);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment