Lines Matching refs:gain_l_val
495 unsigned int read_l, read_r, gain_l_val, gain_r_val; in rt712_sdca_set_gain_put() local
508 gain_l_val = ucontrol->value.integer.value[0]; in rt712_sdca_set_gain_put()
509 if (gain_l_val > mc->max) in rt712_sdca_set_gain_put()
510 gain_l_val = mc->max; in rt712_sdca_set_gain_put()
513 gain_l_val = gain_l_val * tendB; in rt712_sdca_set_gain_put()
517 gain_l_val = 0x1e00 - ((mc->max - gain_l_val) * interval_offset); in rt712_sdca_set_gain_put()
519 gain_l_val = 0 - ((mc->max - gain_l_val) * interval_offset); in rt712_sdca_set_gain_put()
520 gain_l_val &= 0xffff; in rt712_sdca_set_gain_put()
539 if (lvalue == gain_l_val && rvalue == gain_r_val) in rt712_sdca_set_gain_put()
543 regmap_write(rt712->mbq_regmap, mc->reg, gain_l_val); in rt712_sdca_set_gain_put()
549 if (read_r == gain_r_val && read_l == gain_l_val) in rt712_sdca_set_gain_put()