/sound/soc/codecs/ |
D | rt711-sdca.c | 169 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 …]
|
D | rt700.c | 62 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 …]
|
D | rt711.c | 138 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 …]
|
D | mt6359-accdet.c | 267 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 …]
|
D | rt5668.c | 848 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()
|
D | mt6359-accdet.h | 115 unsigned int btn_type; member
|
D | rt5670.c | 499 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()
|
D | rt5682.c | 867 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()
|
D | rt5663.c | 1844 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()
|
D | rt5659.c | 1321 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()
|
D | rt5645.c | 3230 int btn_type, val; in rt5645_button_detect() local 3234 btn_type = val & 0xfff0; in rt5645_button_detect() 3237 return btn_type; in rt5645_button_detect() 3270 int val, btn_type, gpio_state = 0, report = 0; in rt5645_jack_detect_work() local 3306 btn_type = 0; in rt5645_jack_detect_work() 3310 btn_type = rt5645_button_detect(rt5645->component); in rt5645_jack_detect_work() 3316 switch (btn_type) { in rt5645_jack_detect_work() 3342 btn_type); in rt5645_jack_detect_work() 3346 if (btn_type == 0)/* button release */ in rt5645_jack_detect_work()
|
D | rt5682s.c | 629 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()
|
D | rt5665.c | 1127 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()
|