/linux-6.12.1/sound/soc/codecs/ |
D | rt711-sdca.c | 188 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() [all …]
|
D | rt700.c | 63 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 = rt700_button_detect(rt700); in rt700_jack_detect_handler() [all …]
|
D | rt711.c | 139 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 = rt711_button_detect(rt711); in rt711_jack_detect_handler() [all …]
|
D | rt712-sdca.c | 135 unsigned int btn_type = 0, offset, idx, val, owner; in rt712_sdca_button_detect() local 168 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() 187 btn_type |= SND_JACK_BTN_3; in rt712_sdca_button_detect() 191 btn_type |= SND_JACK_BTN_0; in rt712_sdca_button_detect() 195 btn_type |= SND_JACK_BTN_1; in rt712_sdca_button_detect() 214 return btn_type; in rt712_sdca_button_detect() [all …]
|
D | mt6359-accdet.c | 263 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 …]
|
D | rt722-sdca.c | 94 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() 215 snd_soc_jack_report(rt722->hs_jack, rt722->jack_type | 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 [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 | 868 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()
|
D | rt5663.c | 1845 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()
|
D | rt5645.c | 3261 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()
|
D | rt5659.c | 1320 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()
|
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 | 1126 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()
|