Lines Matching refs:gain_l_val
562 unsigned int read_l, read_r, gain_l_val, gain_r_val; in rt711_sdca_set_gain_put() local
575 gain_l_val = ucontrol->value.integer.value[0]; in rt711_sdca_set_gain_put()
576 if (gain_l_val > mc->max) in rt711_sdca_set_gain_put()
577 gain_l_val = mc->max; in rt711_sdca_set_gain_put()
578 read_l = gain_l_val; in rt711_sdca_set_gain_put()
581 gain_l_val = (gain_l_val * 10) << mc->shift; in rt711_sdca_set_gain_put()
583 if (adc_vol_flag && gain_l_val > mc->shift) in rt711_sdca_set_gain_put()
584 gain_l_val = (gain_l_val - mc->shift) * 75; in rt711_sdca_set_gain_put()
586 gain_l_val = (mc->shift - gain_l_val) * 75; in rt711_sdca_set_gain_put()
587 gain_l_val <<= 8; in rt711_sdca_set_gain_put()
588 gain_l_val /= 100; in rt711_sdca_set_gain_put()
590 gain_l_val = ~gain_l_val; in rt711_sdca_set_gain_put()
591 gain_l_val += 1; in rt711_sdca_set_gain_put()
593 gain_l_val &= 0xffff; in rt711_sdca_set_gain_put()
618 if (lvalue != gain_l_val || rvalue != gain_r_val) in rt711_sdca_set_gain_put()
625 regmap_write(rt711->mbq_regmap, mc->reg, gain_l_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()