From: Takashi Iwai Date: Mon, 18 Mar 2013 10:34:45 +0000 (+0100) Subject: ALSA: hda - Make the resume of digital beep setup proper X-Git-Tag: upstream/snapshot3+hdmi~5112^2~90 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8bc0a8469c514016bc04de55eda3bf597a9340e2;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 --- diff --git a/sound/pci/hda/hda_beep.c b/sound/pci/hda/hda_beep.c index 35bf531..63c9909 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) snprintf(beep->phys, sizeof(beep->phys), "card%d/codec#%d/beep0", codec->bus->card->number, codec->addr); /* enable linear scale */ - snd_hda_codec_write(codec, nid, 0, + snd_hda_codec_write_cache(codec, nid, 0, AC_VERB_SET_DIGI_CONVERT_2, 0x01); beep->nid = nid;