]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - sound/pci/hda/patch_realtek.c
ALSA: hda - Fix click noise at start on Dell XPS13
authorTakashi Iwai <tiwai@suse.de>
Mon, 27 Apr 2015 08:43:22 +0000 (10:43 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 27 Apr 2015 08:48:37 +0000 (10:48 +0200)
commit3e1b0c4a9d563d7fc6e22dc92613cd3237bb5ce0
tree7cfd41f1ac4009e5352f63e444bc8a41e80b0b5b
parentb787f68c36d49bb1d9236f403813641efa74a031
ALSA: hda - Fix click noise at start on Dell XPS13

Dell XPS13 produces a click noise at boot up, and Gabriele spotted out
that it's triggered by the initial pin control of the mic (NID 0x19).
This has to be set to Hi-Z Vref while the driver initializes to Vref
80% as a normal mic.

This patch fixes the generic parser code not to override the target
vref if it has been already set by the driver, and adds a proper
initialization of the target vref for this pin in the Realtek driver
side.

Reported-and-tested-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c
sound/pci/hda/patch_realtek.c