]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: hda/realtek - Use a common helper for hp pin reference
authorTakashi Iwai <tiwai@suse.de>
Fri, 1 Feb 2019 10:19:50 +0000 (11:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:35 +0000 (20:02 +0100)
commit6beb90c8720382c4107b14785530728ebf11b130
treeaf1328c9befd898354415d4e738f3d10b68f27e3
parent1c4f4d4ee7796d37854b026a430bfbbdd039ef70
ALSA: hda/realtek - Use a common helper for hp pin reference

commit 35a39f98567d8d3f1cea48f0f30de1a7e736b644 upstream.

Replace the open-codes in many places with a new common helper for
performing the same thing: referring to the primary headphone pin.

This eventually fixes the potentially missing headphone pin on some
weird devices, too.

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_realtek.c