Searched refs:gain_reg (Results 1 – 6 of 6) sorted by relevance
/linux-6.12.1/drivers/media/dvb-frontends/ |
D | dib0090.c | 147 u16 gain_reg[4]; member 919 u16 i, v, gain_reg[4] = { 0 }, gain; in dib0090_gain_apply() local 980 gain_reg[0] = v; in dib0090_gain_apply() 982 gain_reg[0] |= v << 7; in dib0090_gain_apply() 984 gain_reg[1] = v; in dib0090_gain_apply() 986 gain_reg[1] |= v << 7; in dib0090_gain_apply() 988 gain_reg[2] = v | state->rf_lt_def; in dib0090_gain_apply() 990 gain_reg[3] = v << 3; in dib0090_gain_apply() 992 gain_reg[3] |= v << 8; in dib0090_gain_apply() 1002 gain_reg[3] |= state->bb_1_def; in dib0090_gain_apply() [all …]
|
/linux-6.12.1/sound/soc/codecs/ |
D | lpass-wsa-macro.c | 1529 u16 path_reg, gain_reg; in wsa_macro_enable_mix_path() local 1535 gain_reg = CDC_WSA_RX0_RX_VOL_MIX_CTL; in wsa_macro_enable_mix_path() 1539 gain_reg = CDC_WSA_RX1_RX_VOL_MIX_CTL; in wsa_macro_enable_mix_path() 1547 val = snd_soc_component_read(component, gain_reg); in wsa_macro_enable_mix_path() 1548 snd_soc_component_write(component, gain_reg, val); in wsa_macro_enable_mix_path() 1844 int event, int gain_reg) in wsa_macro_config_ear_spkr_gain() argument 1863 (gain_reg == CDC_WSA_RX0_RX_VOL_CTL) && in wsa_macro_config_ear_spkr_gain() 1867 snd_soc_component_write(component, gain_reg, val); in wsa_macro_config_ear_spkr_gain() 1876 (gain_reg == CDC_WSA_RX0_RX_VOL_CTL) && in wsa_macro_config_ear_spkr_gain() 1878 snd_soc_component_write(component, gain_reg, 0x0); in wsa_macro_config_ear_spkr_gain() [all …]
|
D | wcd9335.c | 2980 u16 gain_reg; in wcd9335_codec_enable_mix_path() local 2985 gain_reg = WCD9335_CDC_RX0_RX_VOL_MIX_CTL; in wcd9335_codec_enable_mix_path() 2988 gain_reg = WCD9335_CDC_RX1_RX_VOL_MIX_CTL; in wcd9335_codec_enable_mix_path() 2991 gain_reg = WCD9335_CDC_RX2_RX_VOL_MIX_CTL; in wcd9335_codec_enable_mix_path() 2994 gain_reg = WCD9335_CDC_RX3_RX_VOL_MIX_CTL; in wcd9335_codec_enable_mix_path() 2997 gain_reg = WCD9335_CDC_RX4_RX_VOL_MIX_CTL; in wcd9335_codec_enable_mix_path() 3000 gain_reg = WCD9335_CDC_RX5_RX_VOL_MIX_CTL; in wcd9335_codec_enable_mix_path() 3003 gain_reg = WCD9335_CDC_RX6_RX_VOL_MIX_CTL; in wcd9335_codec_enable_mix_path() 3006 gain_reg = WCD9335_CDC_RX7_RX_VOL_MIX_CTL; in wcd9335_codec_enable_mix_path() 3009 gain_reg = WCD9335_CDC_RX8_RX_VOL_MIX_CTL; in wcd9335_codec_enable_mix_path() [all …]
|
D | lpass-rx-macro.c | 2142 u16 gain_reg, reg; in rx_macro_enable_main_path() local 2145 gain_reg = CDC_RX_RXn_RX_VOL_CTL(rx, w->shift); in rx_macro_enable_main_path() 2156 snd_soc_component_write(component, gain_reg, in rx_macro_enable_main_path() 2157 snd_soc_component_read(component, gain_reg)); in rx_macro_enable_main_path() 2773 u16 gain_reg, mix_reg; in rx_macro_enable_mix_path() local 2775 gain_reg = CDC_RX_RXn_RX_VOL_MIX_CTL(rx, w->shift); in rx_macro_enable_mix_path() 2783 snd_soc_component_write(component, gain_reg, in rx_macro_enable_mix_path() 2784 snd_soc_component_read(component, gain_reg)); in rx_macro_enable_mix_path()
|
D | wcd934x.c | 4353 u16 gain_reg, mix_reg; in wcd934x_codec_enable_mix_path() local 4356 gain_reg = WCD934X_CDC_RX0_RX_VOL_MIX_CTL + in wcd934x_codec_enable_mix_path() 4370 val = snd_soc_component_read(comp, gain_reg); in wcd934x_codec_enable_mix_path() 4372 snd_soc_component_write(comp, gain_reg, val); in wcd934x_codec_enable_mix_path() 4418 u16 gain_reg; in wcd934x_codec_enable_main_path() local 4420 gain_reg = WCD934X_CDC_RX0_RX_VOL_CTL + (w->shift * in wcd934x_codec_enable_main_path() 4425 snd_soc_component_write(comp, gain_reg, in wcd934x_codec_enable_main_path() 4426 snd_soc_component_read(comp, gain_reg)); in wcd934x_codec_enable_main_path()
|
/linux-6.12.1/drivers/media/i2c/ |
D | imx274.c | 1587 u32 gain, analog_gain, digital_gain, gain_reg; in imx274_set_gain() local 1623 gain_reg = (u32)IMX274_GAIN_CONST - in imx274_set_gain() 1625 if (gain_reg > IMX274_GAIN_REG_MAX) in imx274_set_gain() 1626 gain_reg = IMX274_GAIN_REG_MAX; in imx274_set_gain() 1628 err = imx274_write_mbreg(priv, IMX274_ANALOG_GAIN_ADDR_LSB, gain_reg, in imx274_set_gain() 1633 if (IMX274_GAIN_CONST - gain_reg == 0) { in imx274_set_gain() 1640 / (IMX274_GAIN_CONST - gain_reg) * digital_gain; in imx274_set_gain() 1644 __func__, gain_reg, ctrl->val); in imx274_set_gain()
|