OSDN Git Service

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)
commit4e3f0dc65883cac95807549b2f7a3ac183686bcb
tree68b4c872e0a9167909730354af05cf54b061c02c
parentb8dd086674cfbfc246a5b9d7d7ff37f62350a878
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