Searched refs:gain_l_val (Results 1 – 3 of 3) sorted by relevance
/linux/sound/soc/codecs/ |
H A 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 …]
|
H A D | rt722-sdca.c | 354 unsigned int read_l, read_r, gain_l_val, gain_r_val; in rt722_sdca_set_gain_put() local 368 gain_l_val = ucontrol->value.integer.value[0]; in rt722_sdca_set_gain_put() 369 if (gain_l_val > mc->max) in rt722_sdca_set_gain_put() 370 gain_l_val = mc->max; in rt722_sdca_set_gain_put() 373 gain_l_val = gain_l_val * tendB; in rt722_sdca_set_gain_put() 377 gain_l_val = 0x1e00 - ((mc->max - gain_l_val) * interval_offset); in rt722_sdca_set_gain_put() 379 gain_l_val = 0 - ((mc->max - gain_l_val) * interval_offset); in rt722_sdca_set_gain_put() 380 gain_l_val &= 0xffff; in rt722_sdca_set_gain_put() 399 if (lvalue != gain_l_val || rvalue != gain_r_val) in rt722_sdca_set_gain_put() 405 regmap_write(rt722->mbq_regmap, mc->reg, gain_l_val); in rt722_sdca_set_gain_put() [all …]
|
H A D | rt1320-sdw.c | 837 unsigned int gain_l_val, gain_r_val; in rt1320_set_gain_put() local 852 gain_l_val = ucontrol->value.integer.value[0]; in rt1320_set_gain_put() 853 if (gain_l_val > mc->max) in rt1320_set_gain_put() 854 gain_l_val = mc->max; in rt1320_set_gain_put() 855 gain_l_val = 0 - ((mc->max - gain_l_val) * interval_offset); in rt1320_set_gain_put() 856 gain_l_val &= 0xffff; in rt1320_set_gain_put() 865 if (lvalue == gain_l_val && rvalue == gain_r_val) in rt1320_set_gain_put() 869 regmap_write(rt1320->mbq_regmap, mc->reg, gain_l_val); in rt1320_set_gain_put()
|