Home
last modified time | relevance | path

Searched refs:gain (Results 101 - 125 of 695) sorted by relevance

12345678910>>...28

/kernel/linux/linux-5.10/drivers/media/i2c/
H A Dimx274.c43 * The input gain is shifted by IMX274_GAIN_SHIFT to get
44 * decimal number. The real gain is
52 * min gain is 1X
53 * max gain is calculated based on IMX274_GAIN_REG_MAX
61 #define IMX274_GAIN_CONST (2048) /* for gain formula */
479 * @gain: Pointer to gain ctrl structure
486 struct v4l2_ctrl *gain; member
1282 priv->ctrls.gain->val = IMX274_DEF_GAIN; in imx274_load_default()
1297 /* update gain */ in imx274_load_default()
1470 u32 gain, analog_gain, digital_gain, gain_reg; imx274_set_gain() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw89/
H A Drtw8852b.c619 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; in rtw8852b_efuse_parsing_gain_offset() local
623 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_2G_CCK], in rtw8852b_efuse_parsing_gain_offset()
624 &gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_2G_CCK]); in rtw8852b_efuse_parsing_gain_offset()
626 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_2G_OFDM], in rtw8852b_efuse_parsing_gain_offset()
627 &gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_2G_OFDM]); in rtw8852b_efuse_parsing_gain_offset()
629 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_5G_LOW], in rtw8852b_efuse_parsing_gain_offset()
630 &gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_5G_LOW]); in rtw8852b_efuse_parsing_gain_offset()
632 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_5G_MID], in rtw8852b_efuse_parsing_gain_offset()
633 &gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_5G_MID]); in rtw8852b_efuse_parsing_gain_offset()
635 &gain in rtw8852b_efuse_parsing_gain_offset()
810 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; rtw8852b_phycap_parsing_gain_comp() local
976 const struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain; rtw8852b_set_gain_error() local
1074 const struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain; rtw8852b_set_rxsc_rpl_comp() local
1416 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; rtw8852b_bb_sethw() local
[all...]
/drivers/peripheral/audio/interfaces/2.0/include/
H A Daudio_volume.h43 * set the mute operation, volume, and gain.
95 * @brief Obtains the range of the audio gain.
97 * The audio gain can be expressed in one of the following two ways (depending on the chip platform),
100 * <li>Actual audio gain values, for example, ranging from -50 to 6 dB</li>
102 * and <b>1.0</b> means the maximum gain value, for example, 6 dB</li>
114 * @brief Obtains the audio gain.
117 * @param gain Indicates the pointer to the audio gain.
118 * @return Returns <b>0</b> if the audio gain is obtained; returns a negative value otherwise.
122 int32_t (*GetGain)(AudioHandle handle, float *gain);
[all...]
/drivers/peripheral/bluetooth/audio/interfaces/include/
H A Daudio_volume.h43 * set the mute operation, volume, and gain.
95 * @brief Obtains the range of the audio gain.
97 * The audio gain can be expressed in one of the following two ways (depending on the chip platform),
100 * <li>Actual audio gain values, for example, ranging from -50 to 6 dB</li>
102 * and <b>1.0</b> means the maximum gain value, for example, 6 dB</li>
114 * @brief Obtains the audio gain.
117 * @param gain Indicates the pointer to the audio gain.
118 * @return Returns <b>0</b> if the audio gain is obtained; returns a negative value otherwise.
122 int32_t (*GetGain)(AudioHandle handle, float *gain);
[all...]
/third_party/lame/libmp3lame/
H A Dvbrquantize.c612 /* see if we should use subblock gain */ in set_subblock_gain()
632 /* boost subblock gain as little as possible so we can in set_subblock_gain()
706 int const gain = cod_info->global_gain - (sbg[window[sfb]] * 8) in set_scalefacs() local
710 int const m = gain - vbrsfmin[sfb]; in set_scalefacs()
892 int gain = vbrmax - maxover0p; in long_block_constrain() local
893 if (gain < maxminsfb) { in long_block_constrain()
894 gain = maxminsfb; in long_block_constrain()
897 int const a = (gain - vbrsfmin[sfb]) - 2 * pretab[sfb]; in long_block_constrain()
906 int gain = vbrmax - maxover1p; in long_block_constrain() local
907 if (gain < maxminsf in long_block_constrain()
1017 int gain, vbrmax = 0; tryGlobalStepsize() local
1045 const int gain = cod_info->global_gain; searchGlobalStepsizeMax() local
[all...]
/drivers/peripheral/audio/test/systemtest/supportlibs/hardwaredependence/render/src/
H A Daudio_librender_hardwaredependence_test.cpp449 hwRender->renderParam.renderMode.ctlParam.audioGain.gain = gainThresholdValueMax - 1; in HWTEST_F()
454 gainValue = hwRender->renderParam.renderMode.ctlParam.audioGain.gain; in HWTEST_F()
456 hwRender->renderParam.renderMode.ctlParam.audioGain.gain = gainThresholdValueMin + 1; in HWTEST_F()
461 gainValue = hwRender->renderParam.renderMode.ctlParam.audioGain.gain; in HWTEST_F()
463 hwRender->renderParam.renderMode.ctlParam.audioGain.gain = 2.3; in HWTEST_F()
468 gainValue = hwRender->renderParam.renderMode.ctlParam.audioGain.gain; in HWTEST_F()
495 hwRender->renderParam.renderMode.ctlParam.audioGain.gain = gainThresholdValueMin; in HWTEST_F()
500 gainValue = hwRender->renderParam.renderMode.ctlParam.audioGain.gain; in HWTEST_F()
502 hwRender->renderParam.renderMode.ctlParam.audioGain.gain = gainThresholdValueMax; in HWTEST_F()
507 gainValue = hwRender->renderParam.renderMode.ctlParam.audioGain.gain; in HWTEST_F()
[all...]
/kernel/linux/linux-5.10/sound/pci/au88x0/
H A Dau88x0_eq.c39 static void vortex_EqHw_SetTimeConsts(vortex_t * vortex, u16 gain, u16 level) in vortex_EqHw_SetTimeConsts() argument
41 hwwrite(vortex->mmio, 0x2b3c4, gain); in vortex_EqHw_SetTimeConsts()
493 static int vortex_Eqlzr_GetLeftGain(vortex_t * vortex, u16 index, u16 * gain) in vortex_Eqlzr_GetLeftGain() argument
498 *gain = eq->this130[index]; in vortex_Eqlzr_GetLeftGain()
504 static void vortex_Eqlzr_SetLeftGain(vortex_t * vortex, u16 index, u16 gain) in vortex_Eqlzr_SetLeftGain() argument
511 eq->this130[index] = gain; in vortex_Eqlzr_SetLeftGain()
515 vortex_EqHw_SetLeftGainsSingleTarget(vortex, index, gain); in vortex_Eqlzr_SetLeftGain()
518 static int vortex_Eqlzr_GetRightGain(vortex_t * vortex, u16 index, u16 * gain) in vortex_Eqlzr_GetRightGain() argument
523 *gain = eq->this130[index + eq->this10]; in vortex_Eqlzr_GetRightGain()
529 static void vortex_Eqlzr_SetRightGain(vortex_t * vortex, u16 index, u16 gain) in vortex_Eqlzr_SetRightGain() argument
[all...]
/kernel/linux/linux-5.10/net/ipv4/
H A Dtcp_bbr.c109 u32 pacing_gain:10, /* current gain for setting pacing rate */
110 cwnd_gain:10, /* current gain for setting cwnd */
128 #define CYCLE_LEN 8 /* number of phases in a pacing gain cycle */
147 /* We use a high_gain value of 2/ln(2) because it's the smallest pacing gain
153 /* The pacing gain of 1/high_gain in BBR_DRAIN is calculated to typically drain
157 /* The gain for deriving steady-state cwnd tolerates delayed/stretched ACKs: */
159 /* The pacing_gain values for the PROBE_BW gain cycle, to discover/share bw: */
166 /* Randomize the starting gain cycling phase over N phases: */
238 /* Return rate in bytes per second, optionally with a gain.
240 * work for input rates of up to 2.9Tbit/sec and gain o
242 bbr_rate_bytes_per_sec(struct sock *sk, u64 rate, int gain) bbr_rate_bytes_per_sec() argument
254 bbr_bw_to_pacing_rate(struct sock *sk, u32 bw, int gain) bbr_bw_to_pacing_rate() argument
283 bbr_set_pacing_rate(struct sock *sk, u32 bw, int gain) bbr_set_pacing_rate() argument
357 bbr_bdp(struct sock *sk, u32 bw, int gain) bbr_bdp() argument
410 bbr_inflight(struct sock *sk, u32 bw, int gain) bbr_inflight() argument
516 bbr_set_cwnd(struct sock *sk, const struct rate_sample *rs, u32 acked, u32 bw, int gain) bbr_set_cwnd() argument
[all...]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/i2c/
H A Datomisp-gc2235.c353 int gain, int digitgain) in __gc2235_set_exposure()
369 if (gain <= 0x58) { in __gc2235_set_exposure()
372 } else if (gain < 256) { in __gc2235_set_exposure()
374 gain_val2 = gain; in __gc2235_set_exposure()
376 gain_val2 = 64 * gain / 256; in __gc2235_set_exposure()
389 int gain, int digitgain) in gc2235_set_exposure()
395 ret = __gc2235_set_exposure(sd, exposure, gain, digitgain); in gc2235_set_exposure()
405 int gain = exposure->gain[0]; in gc2235_s_exposure() local
406 int digitgain = exposure->gain[ in gc2235_s_exposure()
352 __gc2235_set_exposure(struct v4l2_subdev *sd, int coarse_itg, int gain, int digitgain) __gc2235_set_exposure() argument
388 gc2235_set_exposure(struct v4l2_subdev *sd, int exposure, int gain, int digitgain) gc2235_set_exposure() argument
[all...]
/kernel/linux/linux-6.6/sound/pci/au88x0/
H A Dau88x0_eq.c39 static void vortex_EqHw_SetTimeConsts(vortex_t * vortex, u16 gain, u16 level) in vortex_EqHw_SetTimeConsts() argument
41 hwwrite(vortex->mmio, 0x2b3c4, gain); in vortex_EqHw_SetTimeConsts()
493 static int vortex_Eqlzr_GetLeftGain(vortex_t * vortex, u16 index, u16 * gain) in vortex_Eqlzr_GetLeftGain() argument
498 *gain = eq->this130[index]; in vortex_Eqlzr_GetLeftGain()
504 static void vortex_Eqlzr_SetLeftGain(vortex_t * vortex, u16 index, u16 gain) in vortex_Eqlzr_SetLeftGain() argument
511 eq->this130[index] = gain; in vortex_Eqlzr_SetLeftGain()
515 vortex_EqHw_SetLeftGainsSingleTarget(vortex, index, gain); in vortex_Eqlzr_SetLeftGain()
518 static int vortex_Eqlzr_GetRightGain(vortex_t * vortex, u16 index, u16 * gain) in vortex_Eqlzr_GetRightGain() argument
523 *gain = eq->this130[index + eq->this10]; in vortex_Eqlzr_GetRightGain()
529 static void vortex_Eqlzr_SetRightGain(vortex_t * vortex, u16 index, u16 gain) in vortex_Eqlzr_SetRightGain() argument
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Dtcp_bbr.c111 u32 pacing_gain:10, /* current gain for setting pacing rate */
112 cwnd_gain:10, /* current gain for setting cwnd */
130 #define CYCLE_LEN 8 /* number of phases in a pacing gain cycle */
149 /* We use a high_gain value of 2/ln(2) because it's the smallest pacing gain
155 /* The pacing gain of 1/high_gain in BBR_DRAIN is calculated to typically drain
159 /* The gain for deriving steady-state cwnd tolerates delayed/stretched ACKs: */
161 /* The pacing_gain values for the PROBE_BW gain cycle, to discover/share bw: */
168 /* Randomize the starting gain cycling phase over N phases: */
240 /* Return rate in bytes per second, optionally with a gain.
242 * work for input rates of up to 2.9Tbit/sec and gain o
244 bbr_rate_bytes_per_sec(struct sock *sk, u64 rate, int gain) bbr_rate_bytes_per_sec() argument
256 bbr_bw_to_pacing_rate(struct sock *sk, u32 bw, int gain) bbr_bw_to_pacing_rate() argument
285 bbr_set_pacing_rate(struct sock *sk, u32 bw, int gain) bbr_set_pacing_rate() argument
359 bbr_bdp(struct sock *sk, u32 bw, int gain) bbr_bdp() argument
412 bbr_inflight(struct sock *sk, u32 bw, int gain) bbr_inflight() argument
518 bbr_set_cwnd(struct sock *sk, const struct rate_sample *rs, u32 acked, u32 bw, int gain) bbr_set_cwnd() argument
[all...]
/third_party/skia/third_party/externals/oboe/src/flowgraph/resampler/
H A DMultiChannelResampler.cpp145 float gain = 0.0; // sum of raw coefficients in generateCoefficients() local
157 gain += coefficient; in generateCoefficients()
165 // Correct for gain variations. in generateCoefficients()
166 float gainCorrection = 1.0 / gain; // normalize the gain in generateCoefficients()
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
H A Dtda10023.c409 u16 gain = ((255-tda10023_readreg(state, 0x17))) + (255-ifgain)/16; in tda10023_read_signal_strength() local
411 if (gain>0x90) in tda10023_read_signal_strength()
412 gain=gain+2*(gain-0x90); in tda10023_read_signal_strength()
413 if (gain>255) in tda10023_read_signal_strength()
414 gain=255; in tda10023_read_signal_strength()
416 *strength = (gain<<8)|gain; in tda10023_read_signal_strength()
H A Dix2505v.c126 u8 gain, cc, ref, psc, local_osc, lpf; in ix2505v_set_params() local
134 gain = (state->config->tuner_gain < 4) in ix2505v_set_params()
137 gain = 0x0; in ix2505v_set_params()
152 data[0] = ((gain & 0x3) << 5) | (N >> 3); in ix2505v_set_params()
H A Dzd1301_demod.c11 module_param_named(gain, zd1301_demod_gain, byte, 0644);
12 MODULE_PARM_DESC(gain, "gain (value: 0x00 - 0x70, default: 0x38)");
18 u8 gain; member
246 * 0x6a05: get some gain value in zd1301_demod_read_status()
247 * 0x6a06: get about same gain value than set to 0x6a43 in zd1301_demod_read_status()
248 * 0x6a07: get some gain value in zd1301_demod_read_status()
249 * 0x6a43: set gain value by driver in zd1301_demod_read_status()
254 * and 0x6a07. Looks like gain register 0x6a43 value could be from in zd1301_demod_read_status()
258 if (dev->gain ! in zd1301_demod_read_status()
[all...]
/kernel/linux/linux-5.10/drivers/media/platform/davinci/
H A Ddm355_ccdc.c54 .gain = {
139 /* configure gain */ in ccdc_config_gain_offset()
140 regw(ccdc_cfg.bayer.gain.r_ye, RYEGAIN); in ccdc_config_gain_offset()
141 regw(ccdc_cfg.bayer.gain.gr_cy, GRCYGAIN); in ccdc_config_gain_offset()
142 regw(ccdc_cfg.bayer.gain.gb_g, GBGGAIN); in ccdc_config_gain_offset()
143 regw(ccdc_cfg.bayer.gain.b_mg, BMGGAIN); in ccdc_config_gain_offset()
167 ccdc_cfg.bayer.gain.r_ye = GAIN_DEFAULT; in ccdc_restore_defaults()
168 ccdc_cfg.bayer.gain.gb_g = GAIN_DEFAULT; in ccdc_restore_defaults()
169 ccdc_cfg.bayer.gain.gr_cy = GAIN_DEFAULT; in ccdc_restore_defaults()
170 ccdc_cfg.bayer.gain in ccdc_restore_defaults()
[all...]
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/
H A Dtda10023.c409 u16 gain = ((255-tda10023_readreg(state, 0x17))) + (255-ifgain)/16; in tda10023_read_signal_strength() local
411 if (gain>0x90) in tda10023_read_signal_strength()
412 gain=gain+2*(gain-0x90); in tda10023_read_signal_strength()
413 if (gain>255) in tda10023_read_signal_strength()
414 gain=255; in tda10023_read_signal_strength()
416 *strength = (gain<<8)|gain; in tda10023_read_signal_strength()
H A Dix2505v.c126 u8 gain, cc, ref, psc, local_osc, lpf; in ix2505v_set_params() local
134 gain = (state->config->tuner_gain < 4) in ix2505v_set_params()
137 gain = 0x0; in ix2505v_set_params()
152 data[0] = ((gain & 0x3) << 5) | (N >> 3); in ix2505v_set_params()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dfw.c942 s8 *gain; in iwl_mvm_get_ppag_table() local
962 gain = mvm->fwrt.ppag_table.v2.gain[0]; in iwl_mvm_get_ppag_table()
977 gain = mvm->fwrt.ppag_table.v1.gain[0]; in iwl_mvm_get_ppag_table()
1000 * read, verify gain values and save them into the PPAG table. in iwl_mvm_get_ppag_table()
1014 gain[i * num_sub_bands + j] = ent->integer.value; in iwl_mvm_get_ppag_table()
1017 (gain[i * num_sub_bands + j] > ACPI_PPAG_MAX_LB || in iwl_mvm_get_ppag_table()
1018 gain[i * num_sub_bands + j] < ACPI_PPAG_MIN_LB)) || in iwl_mvm_get_ppag_table()
1020 (gain[ in iwl_mvm_get_ppag_table()
1038 s8 *gain; iwl_mvm_ppag_send_cmd() local
[all...]
/third_party/backends/backend/
H A Dcanon630u-common.c456 unsigned char gain; /* static analog gain, 0 - 31 */ member
469 /* offset/gain calibration file name */
931 /* Read in cal strip at bottom of scanner (to adjust gain/offset in plugin_cal()
981 /* Compute the offset/gain table from the calibration strip. This is
986 This produces the CAL_FILE_OGN file, the final offset/gain table. */
1080 DBG (1, "Warning: gain/offset compute failed.\n" in compute_ogn()
1123 /* Finally, compute offset and gain */ in compute_ogn()
1126 int gain, offset; in compute_ogn() local
1141 /* Original gain/offse in compute_ogn()
1437 CANON_set_scan_parameters(CANON_Handle * scan, const int forceCal, const int gray, const int left, const int top, const int right, const int bottom, const int res, const int gain, const double gamma) CANON_set_scan_parameters() argument
[all...]
/third_party/ffmpeg/libavcodec/
H A Dacelp_filters.h43 * @param gain scale factor for final output
50 float gain,
131 * @param gain scale factor for final output
138 float gain,
H A Dra288.c47 DECLARE_ALIGNED(32, float, gain_lpc)[FFALIGN(10, 16)]; ///< LPC coefficients for gain (spec: GB)
54 /// speech part of the gain autocorrelation (spec: REXP)
57 /** log-gain history (spec: SBLG).
62 /// recursive part of the gain autocorrelation (spec: REXPLG)
96 static void decode(RA288Context *ractx, float gain, int cb_coef) in decode() argument
116 sumsum = exp(sum * 0.1151292546497) * gain * (1.0/(1<<23)); in decode()
218 float gain = amptable[get_bits(&gb, 3)]; in ra288_decode_frame() local
221 decode(ractx, gain, cb_coef); in ra288_decode_frame()
/third_party/skia/third_party/externals/oboe/samples/iolib/src/main/cpp/player/
H A DSampleSource.h67 void setGain(float gain) { in setGain() argument
68 mGain = gain; in setGain()
90 // Overall gain
/kernel/linux/linux-6.6/sound/pci/echoaudio/
H A Dlayla20_dsp.c253 /* Set input bus gain (one unit is 0.5dB !) */
254 static int set_input_gain(struct echoaudio *chip, u16 input, int gain) in set_input_gain() argument
262 chip->input_gain[input] = gain; in set_input_gain()
263 gain += GL20_INPUT_GAIN_MAGIC_NUMBER; in set_input_gain()
264 chip->comm_page->line_in_level[input] = gain; in set_input_gain()
/kernel/linux/linux-6.6/drivers/iio/pressure/
H A Dst_pressure_core.c39 * IIO_VAL_INT_PLUS_NANO with a zero integral part and "gain" as decimal part.
40 * Therefore, from (1), "gain" becomes :
41 * gain = 10^9 / (sensitivity * 10)
110 /* LPS001WP pressure gain */
264 .gain = ST_PRESS_KPASCAL_NANO_SCALE,
334 .gain = ST_PRESS_LPS001WP_FS_AVL_PRESS_GAIN,
387 .gain = ST_PRESS_KPASCAL_NANO_SCALE,
456 .gain = ST_PRESS_KPASCAL_NANO_SCALE,
525 .gain = ST_PRESS_KPASCAL_NANO_SCALE,
595 .gain
[all...]

Completed in 22 milliseconds

12345678910>>...28