Searched refs:gain_r_val (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 597 gain_r_val = ucontrol->value.integer.value[1]; in rt711_sdca_set_gain_put() 598 if (gain_r_val > mc->max) in rt711_sdca_set_gain_put() 599 gain_r_val = mc->max; in rt711_sdca_set_gain_put() 600 read_r = gain_r_val; in rt711_sdca_set_gain_put() 603 gain_r_val = (gain_r_val * 10) << mc->shift; in rt711_sdca_set_gain_put() 605 if (adc_vol_flag && gain_r_val > mc->shift) in rt711_sdca_set_gain_put() 606 gain_r_val = (gain_r_val - mc->shift) * 75; in rt711_sdca_set_gain_put() 608 gain_r_val = (mc->shift - gain_r_val) * 75; in rt711_sdca_set_gain_put() 609 gain_r_val <<= 8; in rt711_sdca_set_gain_put() [all …]
|
D | rt1320-sdw.c | 3908 unsigned int gain_l_val, gain_r_val; in rt1320_set_gain_put() local 3923 gain_r_val = ucontrol->value.integer.value[1]; in rt1320_set_gain_put() 3924 if (gain_r_val > mc->max) in rt1320_set_gain_put() 3925 gain_r_val = mc->max; in rt1320_set_gain_put() 3926 gain_r_val = 0 - ((mc->max - gain_r_val) * interval_offset); in rt1320_set_gain_put() 3927 gain_r_val &= 0xffff; in rt1320_set_gain_put() 3929 if (lvalue == gain_l_val && rvalue == gain_r_val) in rt1320_set_gain_put() 3935 regmap_write(rt1320->mbq_regmap, mc->rreg, gain_r_val); in rt1320_set_gain_put()
|
D | rt722-sdca.c | 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() [all …]
|
D | rt712-sdca.c | 495 unsigned int read_l, read_r, gain_l_val, gain_r_val; in rt712_sdca_set_gain_put() local 524 gain_r_val = ucontrol->value.integer.value[1]; in rt712_sdca_set_gain_put() 525 if (gain_r_val > mc->max) in rt712_sdca_set_gain_put() 526 gain_r_val = mc->max; in rt712_sdca_set_gain_put() 529 gain_r_val = gain_r_val * tendB; in rt712_sdca_set_gain_put() 533 gain_r_val = 0x1e00 - ((mc->max - gain_r_val) * interval_offset); in rt712_sdca_set_gain_put() 535 gain_r_val = 0 - ((mc->max - gain_r_val) * interval_offset); in rt712_sdca_set_gain_put() 536 gain_r_val &= 0xffff; in rt712_sdca_set_gain_put() 539 if (lvalue == gain_l_val && rvalue == gain_r_val) in rt712_sdca_set_gain_put() 545 regmap_write(rt712->mbq_regmap, mc->rreg, gain_r_val); in rt712_sdca_set_gain_put() [all …]
|