Lines Matching refs:gain_r_val
495 unsigned int read_l, read_r, gain_l_val, gain_r_val; in rt712_sdca_set_gain_put() local
524 gain_r_val = ucontrol->value.integer.value[1]; in rt712_sdca_set_gain_put()
525 if (gain_r_val > mc->max) in rt712_sdca_set_gain_put()
526 gain_r_val = mc->max; in rt712_sdca_set_gain_put()
529 gain_r_val = gain_r_val * tendB; in rt712_sdca_set_gain_put()
533 gain_r_val = 0x1e00 - ((mc->max - gain_r_val) * interval_offset); in rt712_sdca_set_gain_put()
535 gain_r_val = 0 - ((mc->max - gain_r_val) * interval_offset); in rt712_sdca_set_gain_put()
536 gain_r_val &= 0xffff; in rt712_sdca_set_gain_put()
539 if (lvalue == gain_l_val && rvalue == gain_r_val) in rt712_sdca_set_gain_put()
545 regmap_write(rt712->mbq_regmap, mc->rreg, gain_r_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()