]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Update to use the new jack kctls method
authorJie Yang <yang.jie@intel.com>
Mon, 27 Apr 2015 13:20:59 +0000 (21:20 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 27 Apr 2015 19:37:42 +0000 (21:37 +0200)
commit9e65a40e6a04a26e921ac6c01e76c6f2b2c5d5fb
treef6cac8ccd939ac190628dc9210d41f0ddca8419c
parent78865941f4287100c02e04925f08881dbe7196ae
ALSA: hda - Update to use the new jack kctls method

Jack snd_kcontrols can now be created during snd_jack_new()
or by later calling snd_jack_add_new_kctls().

This patch creates the jacks during the initialisation stage
for both phantom and non phantom jacks.

Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/control.h
sound/core/ctljack.c
sound/core/jack.c
sound/pci/hda/hda_jack.c
sound/pci/hda/hda_jack.h
sound/pci/hda/patch_hdmi.c