aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-01-24 18:42:01 +0100
committerTakashi Iwai <tiwai@suse.de>2013-01-24 18:42:01 +0100
commitb55f6928ed0559485f03775f9204c507e29e876e (patch)
treef887d202bc228908fb47c3c6740a560fa7eebba1
parentef3a134e21df5bac12dc4f036b57c7926fdc547d (diff)
downloadhda-emu-b55f6928ed0559485f03775f9204c507e29e876e.tar.gz
Suppress unsol event during power down via jack command
When the codec is powered down via power_save option, we shouldn't trigger the unsol event via jack command. Otherwise it kicks off the power-up sequence again. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--hda-emu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hda-emu.c b/hda-emu.c
index 1e9776a..2cf36c6 100644
--- a/hda-emu.c
+++ b/hda-emu.c
@@ -482,6 +482,10 @@ void hda_test_pm_reinit(void)
static void issue_unsol(int caddr, int res)
{
+ /* no unsol handling during D3 */
+ if (proc.afg.power_current == 3)
+ return;
+
caddr |= 1 << 4;
/* ALC880 has incompatible unsol tag */
if (_codec->vendor_id == 0x10ec0880)