Home
last modified time | relevance | path

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

/linux/sound/soc/codecs/
A Drt711-sdca.c202 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()
242 return btn_type; in rt711_sdca_button_detect()
292 int btn_type = 0, ret; in rt711_sdca_jack_detect_handler() local
312 btn_type = 0; in rt711_sdca_jack_detect_handler()
327 if (btn_type) { in rt711_sdca_jack_detect_handler()
343 int btn_type = 0, ret, idx; in rt711_sdca_btn_check_handler() local
[all …]
A Drt700.c79 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
201 if (btn_type) { in rt700_jack_detect_handler()
222 int btn_type = 0, ret; in rt700_btn_check_handler() local
246 btn_type = 0; in rt700_btn_check_handler()
[all …]
A Drt711.c157 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
281 if (btn_type) { in rt711_jack_detect_handler()
302 int btn_type = 0, ret; in rt711_btn_check_handler() local
327 btn_type = 0; in rt711_btn_check_handler()
[all …]
A 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 …]
A 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
1044 btn_type = rt5668_button_detect(rt5668->component); in rt5668_jack_detect_handler()
1052 switch (btn_type) { in rt5668_jack_detect_handler()
1076 btn_type = 0; in rt5668_jack_detect_handler()
1079 btn_type); in rt5668_jack_detect_handler()
A Dmt6359-accdet.h115 unsigned int btn_type; member
A 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()
A 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()
1097 int val, btn_type; in rt5682_jack_detect_handler() local
1121 btn_type = rt5682_button_detect(rt5682->component); in rt5682_jack_detect_handler()
1129 switch (btn_type) { in rt5682_jack_detect_handler()
1155 btn_type); in rt5682_jack_detect_handler()
A 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()
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()
825 int val, btn_type; in rt5682s_jack_detect_handler() local
847 btn_type = rt5682s_button_detect(rt5682s->component); in rt5682s_jack_detect_handler()
855 switch (btn_type) { in rt5682s_jack_detect_handler()
880 "Unexpected button code 0x%04x\n", btn_type); in rt5682s_jack_detect_handler()
A 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()
A 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()
A 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()

Completed in 57 milliseconds