Home
last modified time | relevance | path

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

/linux/sound/soc/codecs/
H A Drt711-sdca.c221 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()
261 return btn_type; in rt711_sdca_button_detect()
313 int btn_type = 0, ret; in rt711_sdca_jack_detect_handler() local
333 btn_type = 0; in rt711_sdca_jack_detect_handler()
348 if (btn_type) { in rt711_sdca_jack_detect_handler()
364 int btn_type = 0, ret, idx; in rt711_sdca_btn_check_handler() local
[all …]
H A Drt700.c80 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
202 if (btn_type) { in rt700_jack_detect_handler()
223 int btn_type = 0, ret; in rt700_btn_check_handler() local
247 btn_type = 0; in rt700_btn_check_handler()
[all …]
H A Drt711.c158 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
289 if (btn_type) { in rt711_jack_detect_handler()
310 int btn_type = 0, ret; in rt711_btn_check_handler() local
335 btn_type = 0; in rt711_btn_check_handler()
[all …]
H A Drt712-sdca.c168 btn_type |= SND_JACK_BTN_2; in rt712_sdca_button_detect()
171 btn_type |= SND_JACK_BTN_3; in rt712_sdca_button_detect()
174 btn_type |= SND_JACK_BTN_0; in rt712_sdca_button_detect()
177 btn_type |= SND_JACK_BTN_1; in rt712_sdca_button_detect()
183 btn_type |= SND_JACK_BTN_2; in rt712_sdca_button_detect()
214 return btn_type; in rt712_sdca_button_detect()
264 int btn_type = 0, ret; in rt712_sdca_jack_detect_handler() local
284 btn_type = 0; in rt712_sdca_jack_detect_handler()
299 if (btn_type) { in rt712_sdca_jack_detect_handler()
315 int btn_type = 0, ret, idx; in 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.c94 unsigned int btn_type = 0, offset, idx, val, owner; in rt722_sdca_button_detect() local
125 btn_type = rt722_sdca_btn_type(&buf[1]); in rt722_sdca_button_detect()
135 return btn_type; in rt722_sdca_button_detect()
185 int btn_type = 0, ret; in rt722_sdca_jack_detect_handler() local
202 btn_type = rt722_sdca_button_detect(rt722); in rt722_sdca_jack_detect_handler()
205 btn_type = 0; in rt722_sdca_jack_detect_handler()
210 "in %s, btn_type=0x%x\n", __func__, btn_type); in rt722_sdca_jack_detect_handler()
220 if (btn_type) { in rt722_sdca_jack_detect_handler()
236 int btn_type = 0, ret, idx; in rt722_sdca_btn_check_handler() local
264 btn_type = rt722_sdca_btn_type(&buf[1]); in rt722_sdca_btn_check_handler()
[all …]
H 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
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()
H A Dmt6359-accdet.h115 unsigned int btn_type; member
H 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()
H A Drt5682.c868 int btn_type, val; in rt5682_button_detect() local
871 btn_type = val & 0xfff0; in rt5682_button_detect()
873 dev_dbg(component->dev, "%s btn_type=%x\n", __func__, btn_type); in rt5682_button_detect()
877 return btn_type; in rt5682_button_detect()
1097 int val, btn_type; in rt5682_jack_detect_handler() local
1134 btn_type = rt5682_button_detect(rt5682->component); in rt5682_jack_detect_handler()
1142 switch (btn_type) { in rt5682_jack_detect_handler()
1168 btn_type); in rt5682_jack_detect_handler()
H A Drt5663.c1845 int btn_type, val; in rt5663_button_detect() local
1849 btn_type = val & 0xfff0; in rt5663_button_detect()
1852 return btn_type; in rt5663_button_detect()
1905 int btn_type, report = 0; in rt5663_jack_detect_work() local
1933 btn_type = rt5663_button_detect(rt5663->component); in rt5663_jack_detect_work()
1941 switch (btn_type) { in rt5663_jack_detect_work()
1965 btn_type = 0; in rt5663_jack_detect_work()
1968 btn_type); in rt5663_jack_detect_work()
1972 if (btn_type == 0) { in rt5663_jack_detect_work()
H A Drt5659.c1320 int btn_type, val; in rt5659_button_detect() local
1323 btn_type = val & 0xfff0; in rt5659_button_detect()
1326 return btn_type; in rt5659_button_detect()
1356 int val, btn_type, report = 0; in rt5659_jack_detect_work() local
1370 btn_type = rt5659_button_detect(rt5659->component); in rt5659_jack_detect_work()
1378 switch (btn_type) { in rt5659_jack_detect_work()
1402 btn_type = 0; in rt5659_jack_detect_work()
1405 btn_type); in rt5659_jack_detect_work()
1410 if (btn_type == 0) in rt5659_jack_detect_work()
H A Drt5645.c3261 int btn_type, val; in rt5645_button_detect() local
3265 btn_type = val & 0xfff0; in rt5645_button_detect()
3268 return btn_type; in rt5645_button_detect()
3321 int val, btn_type, gpio_state = 0, report = 0; in rt5645_jack_detect_work() local
3357 btn_type = 0; in rt5645_jack_detect_work()
3361 btn_type = rt5645_button_detect(rt5645->component); in rt5645_jack_detect_work()
3367 switch (btn_type) { in rt5645_jack_detect_work()
3393 btn_type); in rt5645_jack_detect_work()
3397 if (btn_type == 0)/* button release */ in rt5645_jack_detect_work()
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()
833 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()
H A Drt5665.c1126 int btn_type, val; in rt5665_button_detect() local
1129 btn_type = val & 0xfff0; in rt5665_button_detect()
1132 return btn_type; in rt5665_button_detect()
1293 int val, btn_type; in rt5665_jack_detect_handler() local
1322 btn_type = rt5665_button_detect(rt5665->component); in rt5665_jack_detect_handler()
1330 switch (btn_type) { in rt5665_jack_detect_handler()
1354 btn_type = 0; in rt5665_jack_detect_handler()
1357 btn_type); in rt5665_jack_detect_handler()