Home
last modified time | relevance | path

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

/linux-5.19.10/sound/soc/codecs/
Drt711-sdca.c169 unsigned int btn_type = 0, offset, idx, val, owner; in rt711_sdca_button_detect() local
202 btn_type |= SND_JACK_BTN_2; in rt711_sdca_button_detect()
205 btn_type |= SND_JACK_BTN_3; in rt711_sdca_button_detect()
208 btn_type |= SND_JACK_BTN_0; in rt711_sdca_button_detect()
211 btn_type |= SND_JACK_BTN_1; in rt711_sdca_button_detect()
217 btn_type |= SND_JACK_BTN_2; in rt711_sdca_button_detect()
221 btn_type |= SND_JACK_BTN_3; in rt711_sdca_button_detect()
225 btn_type |= SND_JACK_BTN_0; in rt711_sdca_button_detect()
229 btn_type |= SND_JACK_BTN_1; in rt711_sdca_button_detect()
242 return btn_type; in rt711_sdca_button_detect()
[all …]
Drt700.c62 unsigned int btn_type = 0, val80, val81; in rt700_button_detect() local
79 btn_type |= SND_JACK_BTN_0; in rt700_button_detect()
82 btn_type |= SND_JACK_BTN_3; in rt700_button_detect()
89 btn_type |= SND_JACK_BTN_1; in rt700_button_detect()
94 btn_type |= SND_JACK_BTN_2; in rt700_button_detect()
98 btn_type |= SND_JACK_BTN_3; in rt700_button_detect()
102 return btn_type; in rt700_button_detect()
159 int btn_type = 0, ret; in rt700_jack_detect_handler() local
181 btn_type = rt700_button_detect(rt700); in rt700_jack_detect_handler()
184 btn_type = rt700_button_detect(rt700); in rt700_jack_detect_handler()
[all …]
Drt711.c138 unsigned int btn_type = 0, val80, val81; in rt711_button_detect() local
157 btn_type |= SND_JACK_BTN_0; in rt711_button_detect()
160 btn_type |= SND_JACK_BTN_3; in rt711_button_detect()
167 btn_type |= SND_JACK_BTN_1; in rt711_button_detect()
172 btn_type |= SND_JACK_BTN_2; in rt711_button_detect()
176 btn_type |= SND_JACK_BTN_3; in rt711_button_detect()
180 return btn_type; in rt711_button_detect()
239 int btn_type = 0, ret; in rt711_jack_detect_handler() local
268 btn_type = rt711_button_detect(rt711); in rt711_jack_detect_handler()
271 btn_type = rt711_button_detect(rt711); in rt711_jack_detect_handler()
[all …]
Dmt6359-accdet.c267 priv->btn_type = 0; in mt6359_accdet_recover_jd_setting()
330 report = priv->jack_type | priv->btn_type; in mt6359_accdet_jack_report()
339 priv->btn_type = SND_JACK_BTN_1; in check_button()
342 priv->btn_type = SND_JACK_BTN_2; in check_button()
345 priv->btn_type = SND_JACK_BTN_3; in check_button()
347 priv->btn_type = SND_JACK_BTN_0; in check_button()
351 priv->btn_type = SND_JACK_BTN_1; in check_button()
354 priv->btn_type = SND_JACK_BTN_2; in check_button()
356 priv->btn_type = SND_JACK_BTN_0; in check_button()
363 priv->btn_type = priv->jack_type & ~MT6359_ACCDET_BTN_MASK; in is_key_pressed()
[all …]
Drt5668.c848 int btn_type, val; in rt5668_button_detect() local
851 btn_type = val & 0xfff0; in rt5668_button_detect()
853 pr_debug("%s btn_type=%x\n", __func__, btn_type); in rt5668_button_detect()
855 return btn_type; in rt5668_button_detect()
1023 int val, btn_type; in rt5668_jack_detect_handler() local
1046 btn_type = rt5668_button_detect(rt5668->component); in rt5668_jack_detect_handler()
1054 switch (btn_type) { in rt5668_jack_detect_handler()
1078 btn_type = 0; in rt5668_jack_detect_handler()
1081 btn_type); in rt5668_jack_detect_handler()
Dmt6359-accdet.h115 unsigned int btn_type; member
Drt5670.c499 int btn_type, val; in rt5670_button_detect() local
502 btn_type = val & 0xff80; in rt5670_button_detect()
504 if (btn_type != 0) { in rt5670_button_detect()
510 return btn_type; in rt5670_button_detect()
518 int val, btn_type, report = jack->status; in rt5670_irq_detection() local
535 btn_type = 0; in rt5670_irq_detection()
539 btn_type = rt5670_button_detect(rt5670->component); in rt5670_irq_detection()
540 switch (btn_type) { in rt5670_irq_detection()
553 btn_type); in rt5670_irq_detection()
557 if (btn_type == 0)/* button release */ in rt5670_irq_detection()
Drt5682.c867 int btn_type, val; in rt5682_button_detect() local
870 btn_type = val & 0xfff0; in rt5682_button_detect()
872 dev_dbg(component->dev, "%s btn_type=%x\n", __func__, btn_type); in rt5682_button_detect()
876 return btn_type; in rt5682_button_detect()
1093 int val, btn_type; in rt5682_jack_detect_handler() local
1130 btn_type = rt5682_button_detect(rt5682->component); in rt5682_jack_detect_handler()
1138 switch (btn_type) { in rt5682_jack_detect_handler()
1164 btn_type); in rt5682_jack_detect_handler()
Drt5663.c1844 int btn_type, val; in rt5663_button_detect() local
1848 btn_type = val & 0xfff0; in rt5663_button_detect()
1851 return btn_type; in rt5663_button_detect()
1904 int btn_type, report = 0; in rt5663_jack_detect_work() local
1932 btn_type = rt5663_button_detect(rt5663->component); in rt5663_jack_detect_work()
1940 switch (btn_type) { in rt5663_jack_detect_work()
1964 btn_type = 0; in rt5663_jack_detect_work()
1967 btn_type); in rt5663_jack_detect_work()
1971 if (btn_type == 0) { in rt5663_jack_detect_work()
Drt5659.c1321 int btn_type, val; in rt5659_button_detect() local
1324 btn_type = val & 0xfff0; in rt5659_button_detect()
1327 return btn_type; in rt5659_button_detect()
1357 int val, btn_type, report = 0; in rt5659_jack_detect_work() local
1371 btn_type = rt5659_button_detect(rt5659->component); in rt5659_jack_detect_work()
1379 switch (btn_type) { in rt5659_jack_detect_work()
1403 btn_type = 0; in rt5659_jack_detect_work()
1406 btn_type); in rt5659_jack_detect_work()
1411 if (btn_type == 0) in rt5659_jack_detect_work()
Drt5645.c3227 int btn_type, val; in rt5645_button_detect() local
3231 btn_type = val & 0xfff0; in rt5645_button_detect()
3234 return btn_type; in rt5645_button_detect()
3265 int val, btn_type, gpio_state = 0, report = 0; in rt5645_jack_detect_work() local
3298 btn_type = 0; in rt5645_jack_detect_work()
3302 btn_type = rt5645_button_detect(rt5645->component); in rt5645_jack_detect_work()
3308 switch (btn_type) { in rt5645_jack_detect_work()
3334 btn_type); in rt5645_jack_detect_work()
3338 if (btn_type == 0)/* button release */ in rt5645_jack_detect_work()
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
860 btn_type = rt5682s_button_detect(rt5682s->component); in rt5682s_jack_detect_handler()
868 switch (btn_type) { in rt5682s_jack_detect_handler()
893 "Unexpected button code 0x%04x\n", btn_type); in rt5682s_jack_detect_handler()
Drt5665.c1127 int btn_type, val; in rt5665_button_detect() local
1130 btn_type = val & 0xfff0; in rt5665_button_detect()
1133 return btn_type; in rt5665_button_detect()
1294 int val, btn_type; in rt5665_jack_detect_handler() local
1323 btn_type = rt5665_button_detect(rt5665->component); in rt5665_jack_detect_handler()
1331 switch (btn_type) { in rt5665_jack_detect_handler()
1355 btn_type = 0; in rt5665_jack_detect_handler()
1358 btn_type); in rt5665_jack_detect_handler()