aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_beep.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-03-18 06:34:45 -0400
committerTakashi Iwai <tiwai@suse.de>2013-03-18 07:58:48 -0400
commit8bc0a8469c514016bc04de55eda3bf597a9340e2 (patch)
treee797f4c47258f9eca59c669cb4bdc69316183a06 /sound/pci/hda/hda_beep.c
parente914b25e370a3a55a839ff507ed779f54431ace5 (diff)
ALSA: hda - Make the resume of digital beep setup proper
The verb to set up the digital beep via AC_VERB_SET_DIGI_CONVERT_2 should be executed at resume as well. Use the cached write for it being performed automatically at resume. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_beep.c')
-rw-r--r--sound/pci/hda/hda_beep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_beep.c b/sound/pci/hda/hda_beep.c
index 35bf5316ccc6..63c99090a4ec 100644
--- a/sound/pci/hda/hda_beep.c
+++ b/sound/pci/hda/hda_beep.c
@@ -213,7 +213,7 @@ int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)
213 snprintf(beep->phys, sizeof(beep->phys), 213 snprintf(beep->phys, sizeof(beep->phys),
214 "card%d/codec#%d/beep0", codec->bus->card->number, codec->addr); 214 "card%d/codec#%d/beep0", codec->bus->card->number, codec->addr);
215 /* enable linear scale */ 215 /* enable linear scale */
216 snd_hda_codec_write(codec, nid, 0, 216 snd_hda_codec_write_cache(codec, nid, 0,
217 AC_VERB_SET_DIGI_CONVERT_2, 0x01); 217 AC_VERB_SET_DIGI_CONVERT_2, 0x01);
218 218
219 beep->nid = nid; 219 beep->nid = nid;