Lines Matching refs:gain_l_val
542 unsigned int read_l, read_r, gain_l_val, gain_r_val; in rt711_sdca_set_gain_put() local
555 gain_l_val = ucontrol->value.integer.value[0]; in rt711_sdca_set_gain_put()
556 if (gain_l_val > mc->max) in rt711_sdca_set_gain_put()
557 gain_l_val = mc->max; in rt711_sdca_set_gain_put()
558 read_l = gain_l_val; in rt711_sdca_set_gain_put()
561 gain_l_val = (gain_l_val * 10) << mc->shift; in rt711_sdca_set_gain_put()
563 if (adc_vol_flag && gain_l_val > mc->shift) in rt711_sdca_set_gain_put()
564 gain_l_val = (gain_l_val - mc->shift) * 75; in rt711_sdca_set_gain_put()
566 gain_l_val = (mc->shift - gain_l_val) * 75; in rt711_sdca_set_gain_put()
567 gain_l_val <<= 8; in rt711_sdca_set_gain_put()
568 gain_l_val /= 100; in rt711_sdca_set_gain_put()
570 gain_l_val = ~gain_l_val; in rt711_sdca_set_gain_put()
571 gain_l_val += 1; in rt711_sdca_set_gain_put()
573 gain_l_val &= 0xffff; in rt711_sdca_set_gain_put()
598 if (lvalue != gain_l_val || rvalue != gain_r_val) in rt711_sdca_set_gain_put()
605 regmap_write(rt711->mbq_regmap, mc->reg, gain_l_val); in rt711_sdca_set_gain_put()
612 if (read_r == gain_r_val && read_l == gain_l_val) in rt711_sdca_set_gain_put()