diff options
author | Jie Yang <yang.jie@intel.com> | 2015-04-27 15:20:59 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-04-27 21:37:42 +0200 |
commit | 2ba2dfa1fcc7ce5d2bf1716ec3d32b6fa0882e68 (patch) | |
tree | f6cac8ccd939ac190628dc9210d41f0ddca8419c /sound/pci/hda/hda_jack.h | |
parent | ALSA: jack: extend snd_jack_new to support phantom jack (diff) | |
download | linux-2ba2dfa1fcc7ce5d2bf1716ec3d32b6fa0882e68.tar.xz linux-2ba2dfa1fcc7ce5d2bf1716ec3d32b6fa0882e68.zip |
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>
Diffstat (limited to 'sound/pci/hda/hda_jack.h')
-rw-r--r-- | sound/pci/hda/hda_jack.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_jack.h b/sound/pci/hda/hda_jack.h index b279e327a23b..387d30984dfe 100644 --- a/sound/pci/hda/hda_jack.h +++ b/sound/pci/hda/hda_jack.h @@ -39,11 +39,8 @@ struct hda_jack_tbl { unsigned int block_report:1; /* in a transitional state - do not report to userspace */ hda_nid_t gating_jack; /* valid when gating jack plugged */ hda_nid_t gated_jack; /* gated is dependent on this jack */ - struct snd_kcontrol *kctl; /* assigned kctl for jack-detection */ -#ifdef CONFIG_SND_HDA_INPUT_JACK int type; struct snd_jack *jack; -#endif }; struct hda_jack_tbl * @@ -85,7 +82,7 @@ static inline bool snd_hda_jack_detect(struct hda_codec *codec, hda_nid_t nid) bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid); int snd_hda_jack_add_kctl(struct hda_codec *codec, hda_nid_t nid, - const char *name, int idx); + const char *name); int snd_hda_jack_add_kctls(struct hda_codec *codec, const struct auto_pin_cfg *cfg); |