Home
last modified time | relevance | path

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

/openbmc/linux/sound/soc/codecs/
H A Drt711-sdca.c580 read_r = gain_r_val; in rt711_sdca_set_gain_put()
591 if (!(adc_vol_flag && read_r > mc->shift)) { in rt711_sdca_set_gain_put()
611 regmap_read(rt711->mbq_regmap, mc->rreg, &read_r); in rt711_sdca_set_gain_put()
612 if (read_r == gain_r_val && read_l == gain_l_val) in rt711_sdca_set_gain_put()
626 unsigned int read_l, read_r, ctl_l = 0, ctl_r = 0; in rt711_sdca_set_gain_get() local
634 regmap_read(rt711->mbq_regmap, mc->rreg, &read_r); in rt711_sdca_set_gain_get()
657 if (read_l != read_r) { in rt711_sdca_set_gain_get()
659 ctl_r = (read_r >> mc->shift) / 10; in rt711_sdca_set_gain_get()
661 ctl_r = read_r; in rt711_sdca_set_gain_get()
662 if (read_r & BIT(15)) { in rt711_sdca_set_gain_get()
[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
540 regmap_read(rt712->mbq_regmap, mc->rreg, &read_r); in rt712_sdca_set_gain_put()
541 if (read_r == gain_r_val && read_l == gain_l_val) in rt712_sdca_set_gain_put()
554 unsigned int read_l, read_r, ctl_l = 0, ctl_r = 0; in rt712_sdca_set_gain_get() local
563 regmap_read(rt712->mbq_regmap, mc->rreg, &read_r); in rt712_sdca_set_gain_get()
574 if (read_l != read_r) { in rt712_sdca_set_gain_get()
576 ctl_r = read_r / tendB; in rt712_sdca_set_gain_get()
579 ctl_r = mc->max - (((0x1e00 - read_r) & 0xffff) / interval_offset); in rt712_sdca_set_gain_get()
581 ctl_r = mc->max - (((0 - read_r) & 0xffff) / interval_offset); in rt712_sdca_set_gain_get()
H A Drt722-sdca.c353 unsigned int read_l, read_r, gain_l_val, gain_r_val; in rt722_sdca_set_gain_put() local
410 regmap_read(rt722->mbq_regmap, mc->rreg, &read_r); in rt722_sdca_set_gain_put()
411 if (read_r == gain_r_val && read_l == gain_l_val) in rt722_sdca_set_gain_put()
424 unsigned int read_l, read_r, ctl_l = 0, ctl_r = 0; in rt722_sdca_set_gain_get() local
434 regmap_read(rt722->mbq_regmap, mc->rreg, &read_r); in rt722_sdca_set_gain_get()
445 if (read_l != read_r) { in rt722_sdca_set_gain_get()
447 ctl_r = read_r / tendB; in rt722_sdca_set_gain_get()
450 ctl_r = mc->max - (((0x1e00 - read_r) & 0xffff) / interval_offset); in rt722_sdca_set_gain_get()
452 ctl_r = mc->max - (((0 - read_r) & 0xffff) / interval_offset); in rt722_sdca_set_gain_get()