]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Simplify phantom jack handling for HDMI/DP
authorTakashi Iwai <tiwai@suse.de>
Thu, 12 Nov 2015 10:52:13 +0000 (11:52 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 12 Nov 2015 10:52:13 +0000 (11:52 +0100)
commit736fce6fbd1dd68724af3d725ce3bef78ff4839d
tree110036e24c89e80360dd3d0b74824846ef72b5f9
parentaaf30fdf3870509d11d4f45db04f8f6e7c02ade3
ALSA: hda - Simplify phantom jack handling for HDMI/DP

The HDMI codec parser may create a phantom jack, but the helper
function snd_hda_jack_add_kctl() treats always as a normal jack.  This
is superfluous as the jack query is executed at each time the jack
sync is performed.

Since the HDMI codec parser is the only caller of this function, it's
easier to change back this directly calling the original
__snd_hda_jack_add_kctl() with phantom_jack parameter.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_jack.c
sound/pci/hda/hda_jack.h
sound/pci/hda/patch_hdmi.c