]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: jack: extend snd_jack_new to support phantom jack
authorJie Yang <yang.jie@intel.com>
Mon, 27 Apr 2015 13:20:58 +0000 (21:20 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 27 Apr 2015 19:37:41 +0000 (21:37 +0200)
commit236b02627af6a6e29f0f22272a748696e57649ab
tree68b4c872e0a9167909730354af05cf54b061c02c
parent3b29d439002c3af746f80849048ece40b31524d6
ALSA: jack: extend snd_jack_new to support phantom jack

Dont create input devices for phantom jacks.

Here, we extend snd_jack_new() to support phantom jack creating:
pass in a bool param for [non-]phantom flag, and a bool param
initial_jack to indicate whether we need to create a kctl at
this stage.

We can also add a kctl to the jack after its created meaning we
can now integrate the HDA and ASoC jacks.

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