]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ALSA: hda/realtek - Use a common helper for hp pin reference
authorTakashi Iwai <tiwai@suse.de>
Thu, 30 May 2019 12:00:00 +0000 (14:00 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 2 Jul 2019 12:12:20 +0000 (14:12 +0200)
commit80f10932a070693b15fd0e572ef1aeba7b1dd6cb
tree3c4f66c91547972e9f51b4b8ce6ef706d612f908
parent6e25f0c7eb3c5070e9742597171b982b3a6532cf
ALSA: hda/realtek - Use a common helper for hp pin reference

BugLink: https://launchpad.net/bugs/1831065
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>
(cherry picked from commit 35a39f98567d8d3f1cea48f0f30de1a7e736b644)
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Acked-by: Connor Kuehl <connor.kuehl@canonical.com>
Acked-by: Anthony Wong <anthony.wong@canonical.com>
Acked-by: AceLan Kao <acelan.kao@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
sound/pci/hda/patch_realtek.c