ALSA: hda - Apply click noise workaround for Thinkpads generically
authorTakashi Iwai <tiwai@suse.de>
Thu, 10 Dec 2015 22:30:43 +0000 (23:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 Jan 2016 19:23:32 +0000 (11:23 -0800)
commitbe7c9844eea1a34939f808af288b2e59c1510fff
tree5b172ac0ea84f476e600fcdaae51906a34f352e7
parentdff55bf1b247c612600ba0855f792bf8c3833952
ALSA: hda - Apply click noise workaround for Thinkpads generically

commit 157f0b7f6c0cc0bc88647390006e959e267a0143 upstream.

It seems that a workaround for Thinkpad T440s crackling noise can be
applied generically to all Thinkpad models: namely, disabling the
default alc269 shutup callback.  This patch moves it to the existing
alc_fixup_tpt440_dock() while also replacing the rest code with
another existing alc_fixup_disable_aamix().  It resulted in a good
code reduction.

Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=958439
Reported-and-tested-by: Benjamin Poirier <bpoirier@suse.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_realtek.c