Home
last modified time | relevance | path

Searched refs:btn_type (Results 1 – 12 of 12) sorted by relevance

/linux/sound/soc/codecs/
H A Drt711-sdca.c188 unsigned int btn_type = 0, offset, idx, val, owner; in rt711_sdca_button_detect() local
221 btn_type |= SND_JACK_BTN_2; in rt711_sdca_button_detect()
224 btn_type |= SND_JACK_BTN_3; in rt711_sdca_button_detect()
227 btn_type |= SND_JACK_BTN_0; in rt711_sdca_button_detect()
230 btn_type |= SND_JACK_BTN_1; in rt711_sdca_button_detect()
236 btn_type |= SND_JACK_BTN_2; in rt711_sdca_button_detect()
240 btn_type |= SND_JACK_BTN_3; in rt711_sdca_button_detect()
244 btn_type |= SND_JACK_BTN_0; in rt711_sdca_button_detect()
248 btn_type |= SND_JACK_BTN_1; in rt711_sdca_button_detect()
261 return btn_type; in rt711_sdca_button_detect()
313 int btn_type = 0, ret; rt711_sdca_jack_detect_handler() local
364 int btn_type = 0, ret, idx; rt711_sdca_btn_check_handler() local
[all...]
H A Drt700.c63 unsigned int btn_type = 0, val80, val81; in rt700_button_detect() local
80 btn_type |= SND_JACK_BTN_0; in rt700_button_detect()
83 btn_type |= SND_JACK_BTN_3; in rt700_button_detect()
90 btn_type |= SND_JACK_BTN_1; in rt700_button_detect()
95 btn_type |= SND_JACK_BTN_2; in rt700_button_detect()
99 btn_type |= SND_JACK_BTN_3; in rt700_button_detect()
103 return btn_type; in rt700_button_detect()
160 int btn_type = 0, ret; in rt700_jack_detect_handler() local
182 btn_type = rt700_button_detect(rt700); in rt700_jack_detect_handler()
185 btn_type in rt700_jack_detect_handler()
223 int btn_type = 0, ret; rt700_btn_check_handler() local
[all...]
H A Drt711.c139 unsigned int btn_type = 0, val80, val81; in rt711_button_detect() local
158 btn_type |= SND_JACK_BTN_0; in rt711_button_detect()
161 btn_type |= SND_JACK_BTN_3; in rt711_button_detect()
168 btn_type |= SND_JACK_BTN_1; in rt711_button_detect()
173 btn_type |= SND_JACK_BTN_2; in rt711_button_detect()
177 btn_type |= SND_JACK_BTN_3; in rt711_button_detect()
181 return btn_type; in rt711_button_detect()
240 int btn_type = 0, ret; in rt711_jack_detect_handler() local
269 btn_type = rt711_button_detect(rt711); in rt711_jack_detect_handler()
272 btn_type in rt711_jack_detect_handler()
310 int btn_type = 0, ret; rt711_btn_check_handler() local
[all...]
H A Drt712-sdca.c136 unsigned int btn_type = 0, offset, idx, val, owner; in rt712_sdca_button_detect() local
169 btn_type |= SND_JACK_BTN_2; in rt712_sdca_button_detect()
172 btn_type |= SND_JACK_BTN_3; in rt712_sdca_button_detect()
175 btn_type |= SND_JACK_BTN_0; in rt712_sdca_button_detect()
178 btn_type |= SND_JACK_BTN_1; in rt712_sdca_button_detect()
184 btn_type |= SND_JACK_BTN_2; in rt712_sdca_button_detect()
188 btn_type |= SND_JACK_BTN_3; in rt712_sdca_button_detect()
192 btn_type |= SND_JACK_BTN_0; in rt712_sdca_button_detect()
196 btn_type |= SND_JACK_BTN_1; in rt712_sdca_button_detect()
215 return btn_type; in rt712_sdca_button_detect()
265 int btn_type = 0, ret; rt712_sdca_jack_detect_handler() local
316 int btn_type = 0, ret, idx; rt712_sdca_btn_check_handler() local
[all...]
H A Dmt6359-accdet.c263 priv->btn_type = 0; in mt6359_accdet_recover_jd_setting()
326 report = priv->jack_type | priv->btn_type; in mt6359_accdet_jack_report()
335 priv->btn_type = SND_JACK_BTN_1; in check_button()
338 priv->btn_type = SND_JACK_BTN_2; in check_button()
341 priv->btn_type = SND_JACK_BTN_3; in check_button()
343 priv->btn_type = SND_JACK_BTN_0; in check_button()
347 priv->btn_type = SND_JACK_BTN_1; in check_button()
350 priv->btn_type = SND_JACK_BTN_2; in check_button()
352 priv->btn_type = SND_JACK_BTN_0; in check_button()
359 priv->btn_type = priv->jack_type & ~MT6359_ACCDET_BTN_MASK; in is_key_pressed()
[all …]
H A Drt722-sdca.c96 unsigned int btn_type = 0, offset, idx, val, owner; in rt722_sdca_button_detect() local
127 btn_type = rt722_sdca_btn_type(&buf[1]); in rt722_sdca_button_detect()
137 return btn_type; in rt722_sdca_button_detect()
187 int btn_type = 0, ret; in rt722_sdca_jack_detect_handler() local
204 btn_type = rt722_sdca_button_detect(rt722); in rt722_sdca_jack_detect_handler()
207 btn_type = 0; in rt722_sdca_jack_detect_handler()
212 "in %s, btn_type=0x%x\n", __func__, btn_type); in rt722_sdca_jack_detect_handler()
217 snd_soc_jack_report(rt722->hs_jack, rt722->jack_type | btn_type, in rt722_sdca_jack_detect_handler()
222 if (btn_type) { in rt722_sdca_jack_detect_handler()
238 int btn_type = 0, ret, idx; in rt722_sdca_btn_check_handler() local
[all …]
H A Drt721-sdca.c33 int btn_type = 0; in rt721_sdca_jack_detect_handler() local
51 btn_type = rt_sdca_button_detect(rt721->regmap, in rt721_sdca_jack_detect_handler()
56 btn_type = 0; in rt721_sdca_jack_detect_handler()
61 "in %s, btn_type=0x%x\n", __func__, btn_type); in rt721_sdca_jack_detect_handler()
66 snd_soc_jack_report(rt721->hs_jack, rt721->jack_type | btn_type, in rt721_sdca_jack_detect_handler()
71 if (btn_type) { in rt721_sdca_jack_detect_handler()
87 int btn_type = 0, ret, idx; in rt721_sdca_btn_check_handler() local
115 btn_type = rt_sdca_btn_type(&buf[1]); in rt721_sdca_btn_check_handler()
119 dev_dbg(&rt721->slave->dev, "%s, btn_type=0x%x\n", __func__, btn_type); in rt721_sdca_btn_check_handler()
120 snd_soc_jack_report(rt721->hs_jack, rt721->jack_type | btn_type, in rt721_sdca_btn_check_handler()
[all …]
H A Drt5668.c805 int btn_type, val; in rt5668_button_detect() local
808 btn_type = val & 0xfff0; in rt5668_button_detect()
810 pr_debug("%s btn_type=%x\n", __func__, btn_type); in rt5668_button_detect()
812 return btn_type; in rt5668_button_detect()
979 int val, btn_type; in rt5668_jack_detect_handler()
1002 btn_type = rt5668_button_detect(rt5668->component); in rt5668_jack_detect_handler()
1010 switch (btn_type) { in rt5668_jack_detect_handler()
1034 btn_type = 0; in rt5668_jack_detect_handler()
1037 btn_type); in rt5668_jack_detect_handler()
980 int val, btn_type; rt5668_jack_detect_handler() local
[all...]
H A Drt5682.c870 int btn_type, val; in rt5682_button_detect() local
873 btn_type = val & 0xfff0; in rt5682_button_detect()
875 dev_dbg(component->dev, "%s btn_type=%x\n", __func__, btn_type); in rt5682_button_detect()
879 return btn_type; in rt5682_button_detect()
1099 int val, btn_type; in rt5682_jack_detect_handler() local
1136 btn_type = rt5682_button_detect(rt5682->component); in rt5682_jack_detect_handler()
1144 switch (btn_type) { in rt5682_jack_detect_handler()
1170 btn_type); in rt5682_jack_detect_handler()
H A Drt5645.c3263 int btn_type, val; in rt5645_button_detect()
3267 btn_type = val & 0xfff0; in rt5645_button_detect()
3270 return btn_type; in rt5645_button_detect()
3323 int val, btn_type, gpio_state = 0, report = 0; in rt5645_jack_detect_work()
3359 btn_type = 0; in rt5645_jack_detect_work()
3363 btn_type = rt5645_button_detect(rt5645->component); in rt5645_jack_detect_work()
3369 switch (btn_type) { in rt5645_jack_detect_work()
3395 btn_type); in rt5645_jack_detect_work()
3399 if (btn_type == 0)/* button release */ in rt5645_jack_detect_work()
3262 int btn_type, val; rt5645_button_detect() local
3322 int val, btn_type, gpio_state = 0, report = 0; rt5645_jack_detect_work() local
H A Drt5682s.c629 int btn_type, val; in rt5682s_button_detect() local
632 btn_type = val & 0xfff0; in rt5682s_button_detect()
634 dev_dbg(component->dev, "%s btn_type=%x\n", __func__, btn_type); in rt5682s_button_detect()
638 return btn_type; in rt5682s_button_detect()
834 int val, btn_type; in rt5682s_jack_detect_handler() local
861 btn_type = rt5682s_button_detect(rt5682s->component); in rt5682s_jack_detect_handler()
869 switch (btn_type) { in rt5682s_jack_detect_handler()
894 "Unexpected button code 0x%04x\n", btn_type); in rt5682s_jack_detect_handler()
H A Drt5665.c1027 int btn_type, val; in rt5665_button_detect() local
1030 btn_type = val & 0xfff0; in rt5665_button_detect()
1033 return btn_type; in rt5665_button_detect()
1194 int val, btn_type; in rt5665_jack_detect_handler() local
1223 btn_type = rt5665_button_detect(rt5665->component); in rt5665_jack_detect_handler()
1231 switch (btn_type) { in rt5665_jack_detect_handler()
1255 btn_type = 0; in rt5665_jack_detect_handler()
1258 btn_type); in rt5665_jack_detect_handler()