diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-01-24 18:42:01 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-01-24 18:42:01 +0100 |
commit | b55f6928ed0559485f03775f9204c507e29e876e (patch) | |
tree | f887d202bc228908fb47c3c6740a560fa7eebba1 | |
parent | ef3a134e21df5bac12dc4f036b57c7926fdc547d (diff) | |
download | hda-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |