Home
last modified time | relevance | path

Searched refs:gain_l_val (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/sound/soc/codecs/
H A Drt711-sdca.c556 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()
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()
[all …]
H A Drt712-sdca.c487 unsigned int read_l, read_r, gain_l_val, gain_r_val; in rt712_sdca_set_gain_put() local
500 gain_l_val = ucontrol->value.integer.value[0]; in rt712_sdca_set_gain_put()
501 if (gain_l_val > mc->max) in rt712_sdca_set_gain_put()
502 gain_l_val = mc->max; in rt712_sdca_set_gain_put()
505 gain_l_val = gain_l_val * tendB; in rt712_sdca_set_gain_put()
509 gain_l_val = 0x1e00 - ((mc->max - gain_l_val) * interval_offset); in rt712_sdca_set_gain_put()
511 gain_l_val = 0 - ((mc->max - gain_l_val) * interval_offset); in rt712_sdca_set_gain_put()
512 gain_l_val &= 0xffff; in rt712_sdca_set_gain_put()
531 if (lvalue == gain_l_val && rvalue == gain_r_val) in rt712_sdca_set_gain_put()
535 regmap_write(rt712->mbq_regmap, mc->reg, gain_l_val); in rt712_sdca_set_gain_put()
[all …]
H A Drt722-sdca.c353 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()
[all …]