Lines Matching refs:gain_r_val
562 unsigned int read_l, read_r, gain_l_val, gain_r_val; in rt711_sdca_set_gain_put() local
597 gain_r_val = ucontrol->value.integer.value[1]; in rt711_sdca_set_gain_put()
598 if (gain_r_val > mc->max) in rt711_sdca_set_gain_put()
599 gain_r_val = mc->max; in rt711_sdca_set_gain_put()
600 read_r = gain_r_val; in rt711_sdca_set_gain_put()
603 gain_r_val = (gain_r_val * 10) << mc->shift; in rt711_sdca_set_gain_put()
605 if (adc_vol_flag && gain_r_val > mc->shift) in rt711_sdca_set_gain_put()
606 gain_r_val = (gain_r_val - mc->shift) * 75; in rt711_sdca_set_gain_put()
608 gain_r_val = (mc->shift - gain_r_val) * 75; in rt711_sdca_set_gain_put()
609 gain_r_val <<= 8; in rt711_sdca_set_gain_put()
610 gain_r_val /= 100; in rt711_sdca_set_gain_put()
612 gain_r_val = ~gain_r_val; in rt711_sdca_set_gain_put()
613 gain_r_val += 1; in rt711_sdca_set_gain_put()
615 gain_r_val &= 0xffff; in rt711_sdca_set_gain_put()
618 if (lvalue != gain_l_val || rvalue != gain_r_val) in rt711_sdca_set_gain_put()
628 regmap_write(rt711->mbq_regmap, mc->rreg, gain_r_val); in rt711_sdca_set_gain_put()
632 if (read_r == gain_r_val && read_l == gain_l_val) in rt711_sdca_set_gain_put()