Searched refs:gain_l_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 575 gain_l_val = ucontrol->value.integer.value[0]; in rt711_sdca_set_gain_put() 576 if (gain_l_val > mc->max) in rt711_sdca_set_gain_put() 577 gain_l_val = mc->max; in rt711_sdca_set_gain_put() 578 read_l = gain_l_val; in rt711_sdca_set_gain_put() 581 gain_l_val = (gain_l_val * 10) << mc->shift; in rt711_sdca_set_gain_put() 583 if (adc_vol_flag && gain_l_val > mc->shift) in rt711_sdca_set_gain_put() 584 gain_l_val = (gain_l_val - mc->shift) * 75; in rt711_sdca_set_gain_put() 586 gain_l_val = (mc->shift - gain_l_val) * 75; in rt711_sdca_set_gain_put() 587 gain_l_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 3916 gain_l_val = ucontrol->value.integer.value[0]; in rt1320_set_gain_put() 3917 if (gain_l_val > mc->max) in rt1320_set_gain_put() 3918 gain_l_val = mc->max; in rt1320_set_gain_put() 3919 gain_l_val = 0 - ((mc->max - gain_l_val) * interval_offset); in rt1320_set_gain_put() 3920 gain_l_val &= 0xffff; in rt1320_set_gain_put() 3929 if (lvalue == gain_l_val && rvalue == gain_r_val) in rt1320_set_gain_put() 3933 regmap_write(rt1320->mbq_regmap, mc->reg, gain_l_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 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 …]
|
D | rt712-sdca.c | 495 unsigned int read_l, read_r, gain_l_val, gain_r_val; in rt712_sdca_set_gain_put() local 508 gain_l_val = ucontrol->value.integer.value[0]; in rt712_sdca_set_gain_put() 509 if (gain_l_val > mc->max) in rt712_sdca_set_gain_put() 510 gain_l_val = mc->max; in rt712_sdca_set_gain_put() 513 gain_l_val = gain_l_val * tendB; in rt712_sdca_set_gain_put() 517 gain_l_val = 0x1e00 - ((mc->max - gain_l_val) * interval_offset); in rt712_sdca_set_gain_put() 519 gain_l_val = 0 - ((mc->max - gain_l_val) * interval_offset); in rt712_sdca_set_gain_put() 520 gain_l_val &= 0xffff; in rt712_sdca_set_gain_put() 539 if (lvalue == gain_l_val && rvalue == gain_r_val) in rt712_sdca_set_gain_put() 543 regmap_write(rt712->mbq_regmap, mc->reg, gain_l_val); in rt712_sdca_set_gain_put() [all …]
|