Skip to content

Commit

Permalink
ALSA: ALC283 codec - Avoid pop noise on headphones during suspend/resume
Browse files Browse the repository at this point in the history
This patch sets the headphones mode to default before suspending
which helps avoid the pop noise on headphones

Signed-off-by: Harsha Priya <harshapriya.n@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Harsha Priya authored and Takashi Iwai committed Oct 20, 2014
1 parent a011e21 commit b450b17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -2884,6 +2884,9 @@ static void alc283_shutup(struct hda_codec *codec)

alc_write_coef_idx(codec, 0x43, 0x9004);

/*depop hp during suspend*/
alc_write_coef_idx(codec, 0x06, 0x2100);

snd_hda_codec_write(codec, hp_pin, 0,
AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE);

Expand Down

0 comments on commit b450b17

Please sign in to comment.