Home
last modified time | relevance | path

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

/sound/soc/codecs/
A Drt-sdw-common.c110 u8 btn_type = 0; in rt_sdca_btn_type() local
113 btn_type |= buffer[0] & 0xf; in rt_sdca_btn_type()
114 btn_type |= (buffer[0] >> 4) & 0xf; in rt_sdca_btn_type()
115 btn_type |= buffer[1] & 0xf; in rt_sdca_btn_type()
116 btn_type |= (buffer[1] >> 4) & 0xf; in rt_sdca_btn_type()
118 if (btn_type & BIT(0)) in rt_sdca_btn_type()
120 if (btn_type & BIT(1)) in rt_sdca_btn_type()
122 if (btn_type & BIT(2)) in rt_sdca_btn_type()
124 if (btn_type & BIT(3)) in rt_sdca_btn_type()
222 btn_type = rt_sdca_btn_type(&buf[1]); in rt_sdca_button_detect()
[all …]
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 …]
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 …]
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 …]
A Drt712-sdca.c169 btn_type |= SND_JACK_BTN_2; in rt712_sdca_button_detect()
172 btn_type |= SND_JACK_BTN_3; in rt712_sdca_button_detect()
175 btn_type |= SND_JACK_BTN_0; in rt712_sdca_button_detect()
178 btn_type |= SND_JACK_BTN_1; in rt712_sdca_button_detect()
184 btn_type |= SND_JACK_BTN_2; in rt712_sdca_button_detect()
215 return btn_type; in rt712_sdca_button_detect()
265 int btn_type = 0, ret; in rt712_sdca_jack_detect_handler() local
285 btn_type = 0; in rt712_sdca_jack_detect_handler()
300 if (btn_type) { in rt712_sdca_jack_detect_handler()
316 int btn_type = 0, ret, idx; in rt712_sdca_btn_check_handler() local
[all …]
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 …]
A Drt722-sdca.c96 unsigned int btn_type = 0, offset, idx, val, owner; in rt722_sdca_button_detect() local
127 btn_type = rt722_sdca_btn_type(&buf[1]); in rt722_sdca_button_detect()
137 return btn_type; in rt722_sdca_button_detect()
187 int btn_type = 0, ret; in rt722_sdca_jack_detect_handler() local
204 btn_type = rt722_sdca_button_detect(rt722); in rt722_sdca_jack_detect_handler()
207 btn_type = 0; in rt722_sdca_jack_detect_handler()
212 "in %s, btn_type=0x%x\n", __func__, btn_type); in rt722_sdca_jack_detect_handler()
222 if (btn_type) { in rt722_sdca_jack_detect_handler()
238 int btn_type = 0, ret, idx; in rt722_sdca_btn_check_handler() local
266 btn_type = rt722_sdca_btn_type(&buf[1]); in rt722_sdca_btn_check_handler()
[all …]
A Drt721-sdca.c33 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=0x%x\n", __func__, btn_type); in rt721_sdca_btn_check_handler()
120 snd_soc_jack_report(rt721->hs_jack, rt721->jack_type | btn_type, in rt721_sdca_btn_check_handler()
[all …]
A Drt5668.c805 int btn_type, val; in rt5668_button_detect() local
808 btn_type = val & 0xfff0; in rt5668_button_detect()
810 pr_debug("%s btn_type=%x\n", __func__, btn_type); in rt5668_button_detect()
812 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()
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.c870 int btn_type, val; in rt5682_button_detect() local
873 btn_type = val & 0xfff0; in rt5682_button_detect()
875 dev_dbg(component->dev, "%s btn_type=%x\n", __func__, btn_type); in rt5682_button_detect()
879 return btn_type; in rt5682_button_detect()
1099 int val, btn_type; in rt5682_jack_detect_handler() local
1136 btn_type = rt5682_button_detect(rt5682->component); in rt5682_jack_detect_handler()
1144 switch (btn_type) { in rt5682_jack_detect_handler()
1170 btn_type); in rt5682_jack_detect_handler()
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()
A Drt5645.c3262 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
3358 btn_type = 0; in rt5645_jack_detect_work()
3362 btn_type = rt5645_button_detect(rt5645->component); in rt5645_jack_detect_work()
3368 switch (btn_type) { in rt5645_jack_detect_work()
3394 btn_type); in rt5645_jack_detect_work()
3398 if (btn_type == 0)/* button release */ in rt5645_jack_detect_work()
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()
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()
A Drt5665.c1027 int btn_type, val; in rt5665_button_detect() local
1030 btn_type = val & 0xfff0; in rt5665_button_detect()
1033 return btn_type; in rt5665_button_detect()
1194 int val, btn_type; in rt5665_jack_detect_handler() local
1223 btn_type = rt5665_button_detect(rt5665->component); in rt5665_jack_detect_handler()
1231 switch (btn_type) { in rt5665_jack_detect_handler()
1255 btn_type = 0; in rt5665_jack_detect_handler()
1258 btn_type); in rt5665_jack_detect_handler()

Completed in 90 milliseconds