• Home
  • Raw
  • Download

Lines Matching +full:codec +full:- +full:0

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Jack-detection handling for HD-audio
35 /* jack-detection stuff */
36 unsigned int pin_sense; /* cached pin-sense value */
37 unsigned int jack_detect:1; /* capable of jack-detection? */
40 unsigned int block_report:1; /* in a transitional state - do not report to userspace */
54 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id);
57 * snd_hda_jack_tbl_get - query the jack-table entry for the given NID
58 * @codec: the HDA codec
62 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_get() argument
64 return snd_hda_jack_tbl_get_mst(codec, nid, 0); in snd_hda_jack_tbl_get()
68 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec,
71 void snd_hda_jack_tbl_clear(struct hda_codec *codec);
73 void snd_hda_jack_set_dirty_all(struct hda_codec *codec);
75 int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid,
79 snd_hda_jack_detect_enable_callback_mst(struct hda_codec *codec, hda_nid_t nid,
83 * snd_hda_jack_detect_enable - enable the jack-detection
84 * @codec: the HDA codec
93 snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_detect_enable_callback() argument
96 return snd_hda_jack_detect_enable_callback_mst(codec, nid, 0, cb); in snd_hda_jack_detect_enable_callback()
99 int snd_hda_jack_set_gating_jack(struct hda_codec *codec, hda_nid_t gated_nid,
102 u32 snd_hda_jack_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id);
109 int snd_hda_jack_detect_state_mst(struct hda_codec *codec, hda_nid_t nid,
113 * snd_hda_jack_detect_state - query pin Presence Detect status
114 * @codec: the CODEC to sense
121 snd_hda_jack_detect_state(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_detect_state() argument
123 return snd_hda_jack_detect_state_mst(codec, nid, 0); in snd_hda_jack_detect_state()
127 * snd_hda_jack_detect_mst - Detect the jack
128 * @codec: the HDA codec
133 snd_hda_jack_detect_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) in snd_hda_jack_detect_mst() argument
135 return snd_hda_jack_detect_state_mst(codec, nid, dev_id) != in snd_hda_jack_detect_mst()
140 * snd_hda_jack_detect - Detect the jack
141 * @codec: the HDA codec
145 snd_hda_jack_detect(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_detect() argument
147 return snd_hda_jack_detect_mst(codec, nid, 0); in snd_hda_jack_detect()
150 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid);
152 int snd_hda_jack_add_kctl_mst(struct hda_codec *codec, hda_nid_t nid,
157 * snd_hda_jack_add_kctl - Add a kctl for the given pin
158 * @codec: the HDA codec
162 * @type: jack type bits to be reported, 0 for guessing from pincfg
165 * This assigns a jack-detection kctl to the given pin. The kcontrol
169 snd_hda_jack_add_kctl(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_add_kctl() argument
173 return snd_hda_jack_add_kctl_mst(codec, nid, 0, in snd_hda_jack_add_kctl()
177 int snd_hda_jack_add_kctls(struct hda_codec *codec,
180 void snd_hda_jack_report_sync(struct hda_codec *codec);
182 void snd_hda_jack_unsol_event(struct hda_codec *codec, unsigned int res);
184 void snd_hda_jack_poll_all(struct hda_codec *codec);