| /linux/sound/soc/codecs/ |
| H A D | rt711-sdca.c | 189 unsigned int btn_type = 0, offset, idx, val, owner; in rt711_sdca_button_detect() 222 btn_type |= SND_JACK_BTN_2; in rt711_sdca_button_detect() 225 btn_type |= SND_JACK_BTN_3; in rt711_sdca_button_detect() 228 btn_type |= SND_JACK_BTN_0; in rt711_sdca_button_detect() 231 btn_type |= SND_JACK_BTN_1; in rt711_sdca_button_detect() 237 btn_type |= SND_JACK_BTN_2; in rt711_sdca_button_detect() 241 btn_type |= SND_JACK_BTN_3; in rt711_sdca_button_detect() 245 btn_type |= SND_JACK_BTN_0; in rt711_sdca_button_detect() 249 btn_type |= SND_JACK_BTN_1; in rt711_sdca_button_detect() 262 return btn_type; in rt711_sdca_button_detect() 188 unsigned int btn_type = 0, offset, idx, val, owner; rt711_sdca_button_detect() local 313 int btn_type = 0, ret; rt711_sdca_jack_detect_handler() local 364 int btn_type = 0, ret, idx; rt711_sdca_btn_check_handler() local [all...] |
| H A 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 in rt700_jack_detect_handler() 223 int btn_type = 0, ret; rt700_btn_check_handler() local [all...] |
| H A 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 in rt711_jack_detect_handler() 310 int btn_type = 0, ret; rt711_btn_check_handler() local [all...] |
| H A D | rt712-sdca.c | 137 unsigned int btn_type = 0, offset, idx, val, owner; in rt712_sdca_button_detect() local 170 btn_type |= SND_JACK_BTN_2; in rt712_sdca_button_detect() 173 btn_type |= SND_JACK_BTN_3; in rt712_sdca_button_detect() 176 btn_type |= SND_JACK_BTN_0; in rt712_sdca_button_detect() 179 btn_type |= SND_JACK_BTN_1; in rt712_sdca_button_detect() 185 btn_type |= SND_JACK_BTN_2; in rt712_sdca_button_detect() 189 btn_type |= SND_JACK_BTN_3; in rt712_sdca_button_detect() 193 btn_type |= SND_JACK_BTN_0; in rt712_sdca_button_detect() 197 btn_type |= SND_JACK_BTN_1; in rt712_sdca_button_detect() 216 return btn_type; in rt712_sdca_button_detect() 266 int btn_type = 0, ret; rt712_sdca_jack_detect_handler() local 317 int btn_type = 0, ret, idx; rt712_sdca_btn_check_handler() local [all...] |
| H A D | es9356.c | 282 unsigned int btn_type = 0, offset, idx, val, owner; in es9356_sdca_button_detect() local 302 btn_type = es9356_sdca_button(&button[0]); in es9356_sdca_button_detect() 309 return btn_type; in es9356_sdca_button_detect() 357 int ret, btn_type = 0; in es9356_interrupt_handler() local 367 btn_type = es9356_sdca_button_detect(es9356); in es9356_interrupt_handler() 368 if (btn_type < 0) in es9356_interrupt_handler() 377 btn_type = 0; in es9356_interrupt_handler() 379 snd_soc_jack_report(es9356->hs_jack, es9356->jack_type | btn_type, in es9356_interrupt_handler() 385 if (btn_type) { in es9356_interrupt_handler() 400 int ret, idx, btn_type = 0; in es9356_button_detect_handler() local [all …]
|
| H A D | mt6359-accdet.c | 264 priv->btn_type = 0; in mt6359_accdet_recover_jd_setting() 327 report = priv->jack_type | priv->btn_type; in mt6359_accdet_jack_report() 336 priv->btn_type = SND_JACK_BTN_1; in check_button() 339 priv->btn_type = SND_JACK_BTN_2; in check_button() 342 priv->btn_type = SND_JACK_BTN_3; in check_button() 344 priv->btn_type = SND_JACK_BTN_0; in check_button() 348 priv->btn_type = SND_JACK_BTN_1; in check_button() 351 priv->btn_type = SND_JACK_BTN_2; in check_button() 353 priv->btn_type = SND_JACK_BTN_0; in check_button() 360 priv->btn_type in is_key_pressed() [all...] |
| H A D | rt722-sdca.c | 99 unsigned int btn_type = 0, offset, idx, val, owner; in rt722_sdca_button_detect() local 130 btn_type = rt722_sdca_btn_type(&buf[1]); in rt722_sdca_button_detect() 140 return btn_type; in rt722_sdca_button_detect() 190 int btn_type = 0, ret; in rt722_sdca_jack_detect_handler() local 207 btn_type = rt722_sdca_button_detect(rt722); in rt722_sdca_jack_detect_handler() 210 btn_type = 0; in rt722_sdca_jack_detect_handler() 215 "in %s, btn_type=0x%x\n", __func__, btn_type); in rt722_sdca_jack_detect_handler() 220 snd_soc_jack_report(rt722->hs_jack, rt722->jack_type | btn_type, in rt722_sdca_jack_detect_handler() 225 if (btn_type) { in rt722_sdca_jack_detect_handler() 241 int btn_type = 0, ret, idx; in rt722_sdca_btn_check_handler() local [all …]
|
| H A D | rt721-sdca.c | 33 int btn_type = 0; in rt721_sdca_jack_detect_handler() local 51 btn_type = rt_sdca_button_detect(rt721->regmap, in rt721_sdca_jack_detect_handler() 56 btn_type = 0; in rt721_sdca_jack_detect_handler() 61 "in %s, btn_type=0x%x\n", __func__, btn_type); in rt721_sdca_jack_detect_handler() 66 snd_soc_jack_report(rt721->hs_jack, rt721->jack_type | btn_type, in rt721_sdca_jack_detect_handler() 71 if (btn_type) { in rt721_sdca_jack_detect_handler() 87 int btn_type = 0, ret, idx; in rt721_sdca_btn_check_handler() local 115 btn_type = rt_sdca_btn_type(&buf[1]); in rt721_sdca_btn_check_handler() 119 dev_dbg(&rt721->slave->dev, "%s, btn_type in rt721_sdca_btn_check_handler() [all...] |
| H A D | tac5xx2-sdw.c | 902 unsigned int btn_type, offset, idx; in tac5xx2_sdca_button_detect() 943 btn_type = tac5xx2_sdca_btn_type(&buf[1], tac_dev); in tac5xx2_sdca_headset_detect() 944 ret = btn_type; in tac5xx2_sdca_headset_detect() 1090 int btn_type = 0; in tac_interrupt_callback() 1136 btn_type = tac5xx2_sdca_button_detect(tac_dev); in tac_interrupt_callback() 1137 if (btn_type < 0) in tac_interrupt_callback() 1138 btn_type = 0; in tac_interrupt_callback() 1144 btn_type = 0; in tac_interrupt_callback() 1147 dev_dbg(tac_dev->dev, "in %s, btn_type=0x%x\n", __func__, btn_type); in tac_interrupt_callback() 880 unsigned int btn_type, offset, idx; tac5xx2_sdca_button_detect() local 1068 int btn_type = 0; tac_interrupt_callback() local [all...] |
| H A D | rt5668.c | 806 int btn_type, val; in rt5668_button_detect() 809 btn_type = val & 0xfff0; in rt5668_button_detect() 811 pr_debug("%s btn_type=%x\n", __func__, btn_type); in rt5668_button_detect() 813 return btn_type; in rt5668_button_detect() 980 int val, btn_type; in rt5668_jack_detect_handler() local 1003 btn_type = rt5668_button_detect(rt5668->component); in rt5668_jack_detect_handler() 1011 switch (btn_type) { in rt5668_jack_detect_handler() 1035 btn_type = 0; in rt5668_jack_detect_handler() 1038 btn_type); in rt5668_jack_detect_handler() 805 int btn_type, val; rt5668_button_detect() local [all...] |
| H A D | rt5682.c | 871 int btn_type, val; in rt5682_button_detect() 874 btn_type = val & 0xfff0; in rt5682_button_detect() 876 dev_dbg(component->dev, "%s btn_type=%x\n", __func__, btn_type); in rt5682_button_detect() 880 return btn_type; in rt5682_button_detect() 1100 int val, btn_type; in rt5682_jack_detect_handler() 1137 btn_type = rt5682_button_detect(rt5682->component); in rt5682_jack_detect_handler() 1145 switch (btn_type) { in rt5682_jack_detect_handler() 1171 btn_type); in rt5682_jack_detect_handler() 870 int btn_type, val; rt5682_button_detect() local 1099 int val, btn_type; rt5682_jack_detect_handler() local
|
| H A D | rt5645.c | 3262 int btn_type, val; in rt5645_button_detect() local 3266 btn_type = val & 0xfff0; in rt5645_button_detect() 3269 return btn_type; in rt5645_button_detect() 3322 int val, btn_type, gpio_state = 0, report = 0; in rt5645_jack_detect_work() local 3355 btn_type = 0; in rt5645_jack_detect_work() 3359 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 D | rt5682s.c | 630 int btn_type, val; in rt5682s_button_detect() 633 btn_type = val & 0xfff0; in rt5682s_button_detect() 635 dev_dbg(component->dev, "%s btn_type=%x\n", __func__, btn_type); in rt5682s_button_detect() 639 return btn_type; in rt5682s_button_detect() 833 int val, btn_type; in rt5682s_jack_detect_handler() 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() 629 int btn_type, val; rt5682s_button_detect() local 834 int val, btn_type; rt5682s_jack_detect_handler() local
|
| H A D | rt5665.c | 1028 int btn_type, val; in rt5665_button_detect() 1031 btn_type = val & 0xfff0; in rt5665_button_detect() 1034 return btn_type; in rt5665_button_detect() 1195 int val, btn_type; in rt5665_jack_detect_handler() 1224 btn_type = rt5665_button_detect(rt5665->component); in rt5665_jack_detect_handler() 1232 switch (btn_type) { in rt5665_jack_detect_handler() 1256 btn_type = 0; in rt5665_jack_detect_handler() 1259 btn_type); in rt5665_jack_detect_handler() 1027 int btn_type, val; rt5665_button_detect() local 1194 int val, btn_type; rt5665_jack_detect_handler() local
|