Lines Matching defs:hp
219 static int rt298_jack_detect(struct rt298_priv *rt298, bool *hp, bool *mic)
224 *hp = false;
234 *hp = buf & 0x80000000;
235 if (*hp == rt298->is_hp_in)
237 rt298->is_hp_in = *hp;
238 if (*hp) {
291 *hp = buf & 0x80000000;
299 if (!*hp)
303 pr_debug("*hp = %d *mic = %d\n", *hp, *mic);
313 bool hp = false;
316 if (rt298_jack_detect(rt298, &hp, &mic) < 0)
319 if (hp)
981 bool hp = false;
985 ret = rt298_jack_detect(rt298, &hp, &mic);
991 if (hp)