aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_jack.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/hda_jack.h')
-rw-r--r--sound/pci/hda/hda_jack.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_jack.h b/sound/pci/hda/hda_jack.h
index 5c1bcb8cf565..b5983eaea51e 100644
--- a/sound/pci/hda/hda_jack.h
+++ b/sound/pci/hda/hda_jack.h
@@ -15,7 +15,10 @@
15struct hda_jack_tbl { 15struct hda_jack_tbl {
16 hda_nid_t nid; 16 hda_nid_t nid;
17 unsigned int pin_sense; /* cached pin-sense value */ 17 unsigned int pin_sense; /* cached pin-sense value */
18 unsigned int jack_cachable:1; /* can be updated via unsol events */
18 unsigned int jack_dirty:1; /* needs to update? */ 19 unsigned int jack_dirty:1; /* needs to update? */
20 unsigned int need_notify:1; /* to be notified? */
21 struct snd_kcontrol *kctl; /* assigned kctl for jack-detection */
19}; 22};
20 23
21struct hda_jack_tbl * 24struct hda_jack_tbl *
@@ -60,4 +63,13 @@ static inline bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid)
60 return true; 63 return true;
61} 64}
62 65
66int snd_hda_jack_add_kctl(struct hda_codec *codec, hda_nid_t nid,
67 const char *name, int idx);
68int snd_hda_jack_add_kctls(struct hda_codec *codec,
69 const struct auto_pin_cfg *cfg);
70
71void snd_hda_jack_report(struct hda_codec *codec, hda_nid_t nid);
72void snd_hda_jack_report_sync(struct hda_codec *codec);
73
74
63#endif /* __SOUND_HDA_JACK_H */ 75#endif /* __SOUND_HDA_JACK_H */