]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - sound/pci/hda/patch_realtek.c
ALSA: hda - Fix the noise after suspend on ALC283 codec
authorKailang Yang <kailang@realtek.com>
Wed, 24 Jul 2013 12:39:49 +0000 (14:39 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 24 Jul 2013 12:44:40 +0000 (14:44 +0200)
commitc5177c861e2bae584996f60667dc7b291ba6600a
treefde2d174074ec21c92cad8764578e20d84a44825
parent9bfb2844a2f9e6eab52aed1eca0d03f4398c755f
ALSA: hda - Fix the noise after suspend on ALC283 codec

When the power state of ALC283 codec goes to D3, it gives a noise via
headphone output.  This is because the driver tries to clear all pins
via snd_hda_shutup_pins().  Setting the mic pin to zero triggers such
a noise.

Define a new shutup call specific to this codec and control the pins
there more precisely.  Also, add the power-save enable/disable
sequences in the resume and the new shutup calls.

Signed-off-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c