Lines Matching refs:gain_r_val
353 unsigned int read_l, read_r, gain_l_val, gain_r_val; in rt722_sdca_set_gain_put() local
383 gain_r_val = ucontrol->value.integer.value[1]; in rt722_sdca_set_gain_put()
384 if (gain_r_val > mc->max) in rt722_sdca_set_gain_put()
385 gain_r_val = mc->max; in rt722_sdca_set_gain_put()
388 gain_r_val = gain_r_val * tendB; in rt722_sdca_set_gain_put()
392 gain_r_val = 0x1e00 - ((mc->max - gain_r_val) * interval_offset); in rt722_sdca_set_gain_put()
394 gain_r_val = 0 - ((mc->max - gain_r_val) * interval_offset); in rt722_sdca_set_gain_put()
395 gain_r_val &= 0xffff; in rt722_sdca_set_gain_put()
398 if (lvalue != gain_l_val || rvalue != gain_r_val) in rt722_sdca_set_gain_put()
407 regmap_write(rt722->mbq_regmap, mc->rreg, gain_r_val); in rt722_sdca_set_gain_put()
411 if (read_r == gain_r_val && read_l == gain_l_val) in rt722_sdca_set_gain_put()