Lines Matching refs:gain_l_val
353 unsigned int read_l, read_r, gain_l_val, gain_r_val; in rt722_sdca_set_gain_put() local
367 gain_l_val = ucontrol->value.integer.value[0]; in rt722_sdca_set_gain_put()
368 if (gain_l_val > mc->max) in rt722_sdca_set_gain_put()
369 gain_l_val = mc->max; in rt722_sdca_set_gain_put()
372 gain_l_val = gain_l_val * tendB; in rt722_sdca_set_gain_put()
376 gain_l_val = 0x1e00 - ((mc->max - gain_l_val) * interval_offset); in rt722_sdca_set_gain_put()
378 gain_l_val = 0 - ((mc->max - gain_l_val) * interval_offset); in rt722_sdca_set_gain_put()
379 gain_l_val &= 0xffff; in rt722_sdca_set_gain_put()
398 if (lvalue != gain_l_val || rvalue != gain_r_val) in rt722_sdca_set_gain_put()
404 regmap_write(rt722->mbq_regmap, mc->reg, gain_l_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()