]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | From: Takashi Iwai <tiwai@suse.de> |
2 | Subject: ALSA: hda - Fix resume of GPIO unsol event for STAC/IDT | |
3 | Patch-mainline: | |
4 | References: bnc#445321,bnc#445161 | |
5 | ||
6 | Use cached write for setting the GPIO unsolicited event mask to be | |
7 | restored properly at resume. | |
8 | ||
9 | Signed-off-by: Takashi Iwai <tiwai@suse.de> | |
10 | ||
11 | --- | |
12 | sound/pci/hda/patch_sigmatel.c | 4 ++-- | |
13 | 1 file changed, 2 insertions(+), 2 deletions(-) | |
14 | ||
15 | --- a/sound/pci/hda/patch_sigmatel.c | |
16 | +++ b/sound/pci/hda/patch_sigmatel.c | |
17 | @@ -4506,7 +4506,7 @@ again: | |
18 | switch (spec->board_config) { | |
19 | case STAC_HP_M4: | |
20 | /* Enable VREF power saving on GPIO1 detect */ | |
21 | - snd_hda_codec_write(codec, codec->afg, 0, | |
22 | + snd_hda_codec_write_cache(codec, codec->afg, 0, | |
23 | AC_VERB_SET_GPIO_UNSOLICITED_RSP_MASK, 0x02); | |
24 | snd_hda_codec_write_cache(codec, codec->afg, 0, | |
25 | AC_VERB_SET_UNSOLICITED_ENABLE, | |
26 | @@ -4899,7 +4899,7 @@ static int patch_stac9205(struct hda_cod | |
27 | stac92xx_set_config_reg(codec, 0x20, 0x1c410030); | |
28 | ||
29 | /* Enable unsol response for GPIO4/Dock HP connection */ | |
30 | - snd_hda_codec_write(codec, codec->afg, 0, | |
31 | + snd_hda_codec_write_cache(codec, codec->afg, 0, | |
32 | AC_VERB_SET_GPIO_UNSOLICITED_RSP_MASK, 0x10); | |
33 | snd_hda_codec_write_cache(codec, codec->afg, 0, | |
34 | AC_VERB_SET_UNSOLICITED_ENABLE, |