Searched refs:read_r (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/sound/soc/codecs/ |
D | rt711-sdca.c | 562 unsigned int read_l, read_r, gain_l_val, gain_r_val; in rt711_sdca_set_gain_put() local 600 read_r = gain_r_val; in rt711_sdca_set_gain_put() 611 if (!(adc_vol_flag && read_r > mc->shift)) { in rt711_sdca_set_gain_put() 631 regmap_read(rt711->mbq_regmap, mc->rreg, &read_r); in rt711_sdca_set_gain_put() 632 if (read_r == gain_r_val && read_l == gain_l_val) in rt711_sdca_set_gain_put() 646 unsigned int read_l, read_r, ctl_l = 0, ctl_r = 0; in rt711_sdca_set_gain_get() local 654 regmap_read(rt711->mbq_regmap, mc->rreg, &read_r); in rt711_sdca_set_gain_get() 677 if (read_l != read_r) { in rt711_sdca_set_gain_get() 679 ctl_r = (read_r >> mc->shift) / 10; in rt711_sdca_set_gain_get() 681 ctl_r = read_r; in rt711_sdca_set_gain_get() [all …]
|
D | rt722-sdca.c | 353 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()
|
D | rt712-sdca.c | 495 unsigned int read_l, read_r, gain_l_val, gain_r_val; in rt712_sdca_set_gain_put() local 548 regmap_read(rt712->mbq_regmap, mc->rreg, &read_r); in rt712_sdca_set_gain_put() 549 if (read_r == gain_r_val && read_l == gain_l_val) in rt712_sdca_set_gain_put() 562 unsigned int read_l, read_r, ctl_l = 0, ctl_r = 0; in rt712_sdca_set_gain_get() local 571 regmap_read(rt712->mbq_regmap, mc->rreg, &read_r); in rt712_sdca_set_gain_get() 582 if (read_l != read_r) { in rt712_sdca_set_gain_get() 584 ctl_r = read_r / tendB; in rt712_sdca_set_gain_get() 587 ctl_r = mc->max - (((0x1e00 - read_r) & 0xffff) / interval_offset); in rt712_sdca_set_gain_get() 589 ctl_r = mc->max - (((0 - read_r) & 0xffff) / interval_offset); in rt712_sdca_set_gain_get()
|
D | rt1320-sdw.c | 3947 unsigned int read_l, read_r, ctl_l = 0, ctl_r = 0; in rt1320_set_gain_get() local 3951 regmap_read(rt1320->mbq_regmap, mc->rreg, &read_r); in rt1320_set_gain_get() 3955 if (read_l != read_r) in rt1320_set_gain_get() 3956 ctl_r = mc->max - (((0 - read_r) & 0xffff) / interval_offset); in rt1320_set_gain_get()
|