OSDN Git Service

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)
committerTakashi Iwai <tiwai@suse.de>
Fri, 1 Feb 2019 10:21:46 +0000 (11:21 +0100)
commit35a39f98567d8d3f1cea48f0f30de1a7e736b644
tree91ad4c48c3842c722970434c697351bf044ddd09
parentd561aa0a70bb2e1dd85fde98b6a5561e4175ac3e
ALSA: hda/realtek - Use a common helper for hp pin reference

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>
sound/pci/hda/patch_realtek.c