Lines Matching refs:hp
221 static int rt298_jack_detect(struct rt298_priv *rt298, bool *hp, bool *mic) in rt298_jack_detect() argument
226 *hp = false; in rt298_jack_detect()
236 *hp = buf & 0x80000000; in rt298_jack_detect()
237 if (*hp == rt298->is_hp_in) in rt298_jack_detect()
239 rt298->is_hp_in = *hp; in rt298_jack_detect()
240 if (*hp) { in rt298_jack_detect()
281 *hp = buf & 0x80000000; in rt298_jack_detect()
288 if (!*hp) in rt298_jack_detect()
292 pr_debug("*hp = %d *mic = %d\n", *hp, *mic); in rt298_jack_detect()
302 bool hp = false; in rt298_jack_detect_work() local
305 if (rt298_jack_detect(rt298, &hp, &mic) < 0) in rt298_jack_detect_work()
308 if (hp == true) in rt298_jack_detect_work()
962 bool hp = false; in rt298_irq() local
966 ret = rt298_jack_detect(rt298, &hp, &mic); in rt298_irq()
972 if (hp == true) in rt298_irq()