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)
commit2ba2dfa1fcc7ce5d2bf1716ec3d32b6fa0882e68
treef6cac8ccd939ac190628dc9210d41f0ddca8419c
parent4e3f0dc65883cac95807549b2f7a3ac183686bcb
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