Home
last modified time | relevance | path

Searched full:gain (Results 1 – 25 of 2395) sorted by relevance

12345678910>>...96

/OK3568_Linux_fs/kernel/drivers/media/usb/gspca/
H A Dautogain_functions.c3 * Functions for auto gain.
9 /* auto gain and exposure algorithm based on the knee algorithm described here:
12 Returns 0 if no changes were made, 1 if the gain and or exposure settings
22 s32 gain, orig_gain, exposure, orig_exposure; in gspca_expo_autogain() local
28 orig_gain = gain = v4l2_ctrl_g_ctrl(gspca_dev->gain); in gspca_expo_autogain()
40 if (gain > gain_knee) in gspca_expo_autogain()
41 gain--; in gspca_expo_autogain()
44 else if (gain > gspca_dev->gain->default_value) in gspca_expo_autogain()
45 gain--; in gspca_expo_autogain()
48 else if (gain > gspca_dev->gain->minimum) in gspca_expo_autogain()
[all …]
H A Dsonixb.c14 0x10 high nibble red gain low nibble blue gain
15 0x11 low nibble green gain
17 0x05 red gain 0-127
18 0x06 blue gain 0-127
19 0x07 green gain 0-127
115 if we adjust the gain or exposure we must ignore at least the next frame for
230 add a bit additional red gain and a lot additional blue gain, which
291 0x09 Blue Gain
292 0x0a Green1 Gain
293 0x0b Green2 Gain
[all …]
H A Dtouptek.c33 * Three gain stages
35 * 0x007F: low gain bits
36 * 0x0080: medium gain bit
37 * 0x0100: high gain bit
38 * gain = enable * (1 + regH) * (1 + regM) * z * regL
40 * Gain implementation
43 * Gain does not vary with resolution (checked 640x480 vs 1600x1200)
48 * Gain, GTOP, B, R, GBOT
71 * However, V4L expects a main gain channel + R and B balance
75 * Converted using gain model turns out to be quite linear:
[all …]
/OK3568_Linux_fs/buildroot/dl/sox/git/src/
H A Dvol.c10 "GAIN [TYPE [LIMITERGAIN]]\n" \
13 "\tThe peak limiter has a gain much less than 1 (e.g. 0.05 or 0.02) and\n" \
19 double gain; /* amplitude gain. */ member
36 * Process options: gain (float) type (amplitude, power, dB)
47 vol->gain = 1; /* Default is no change. */ in getopts()
51 …if (!argc || (have_type = sscanf(argv[0], "%lf %10s %c", &vol->gain, type_string, &dummy) - 1) > 1) in getopts()
67 case vol_dB: vol->gain = dB_to_linear(vol->gain); break; in getopts()
69 vol->gain = vol->gain > 0 ? sqrt(vol->gain) : -sqrt(-vol->gain); in getopts()
75 …if (fabs(vol->gain) < 1 || sscanf(*argv, "%lf %c", &vol->limitergain, &dummy) != 1 || vol->limiter… in getopts()
85 …vol->limiterthreshhold = SOX_SAMPLE_MAX * (1.0 - vol->limitergain) / (fabs(vol->gain) - vol->limit… in getopts()
[all …]
H A Dphaser.c10 * * gain-in +---+ * gain-out
27 * phaser gain-in gain-out delay decay speed [ -s | -t ]
30 * gain-in, decay : 0.0 .. 1.0 volume
31 * gain-out : 0.0 .. volume
40 * in-gain < (1 - decay * decay)
41 * 1 / out-gain > gain-in / (1 - decay)
87 lsx_warn("warning: gain-in might cause clipping"); in getopts()
89 lsx_warn("warning: gain-out might cause clipping"); in getopts()
143 "phaser", "gain-in gain-out delay decay speed [ -s | -t ]", in lsx_phaser_effect_fn()
/OK3568_Linux_fs/kernel/Documentation/userspace-api/media/v4l/
H A Dext-ctrls-rf-tuner.rst50 Enables/disables LNA automatic gain control (AGC)
53 Enables/disables mixer automatic gain control (AGC)
56 Enables/disables IF automatic gain control (AGC)
61 LNA gain and the RF gain in this document is that the LNA gain is
62 integrated in the tuner chip while the RF gain is a separate chip.
63 There may be both RF and LNA gain controls in the same device. The
67 LNA (low noise amplifier) gain is first gain stage on the RF tuner
70 ``V4L2_CID_RF_TUNER_RF_GAIN`` to understand how RF gain and LNA gain
75 Mixer gain is second gain stage on the RF tuner signal path. It is
81 IF gain is last gain stage on the RF tuner signal path. It is
/OK3568_Linux_fs/buildroot/dl/sox/git/scripts/
H A Dtesttones.sh53 gain="gain -1" # Headroom for playpack chain
114 $input $output synth $length whitenoise $fade $gain
116 $input $output synth $length pinknoise $fade $gain
118 $input $output synth $length brownnoise $fade $gain
132 $input $output synth -j 0 sine %$note $fade $gain
143 $input $output synth sine $freq $fade $gain
152 $input $output synth $length sine $freq 0 25 $fade $gain
165 synth squa amod 0.08333333333333333333 0 $phase2 1 gain -9 \
166 synth $length sine mix $freq gain -h 3 $gain
176 $input $output synth $length sine 9k synth sine mix 10k $fade $gain
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/amplifiers/
H A Dad8366.c3 * AD8366 and similar Gain Amplifiers
4 * This driver supports the following gain amplifiers:
5 * AD8366 Dual-Digital Variable Gain Amplifier (VGA)
6 * ADA4961 BiCMOS RF Digital Gain Amplifier (DGA)
7 * ADL5240 Digitally controlled variable gain amplifier (VGA)
113 int code, gain = 0; in ad8366_read_raw() local
122 gain = code * 253 + 4500; in ad8366_read_raw()
125 gain = 15000 - code * 1000; in ad8366_read_raw()
128 gain = 20000 - 31500 + code * 500; in ad8366_read_raw()
131 gain = -1 * code * 250; in ad8366_read_raw()
[all …]
H A Dhmc425a.c3 * HMC425A and similar Gain Amplifiers
42 u32 gain; member
62 int code, gain = 0; in hmc425a_read_raw() local
68 code = st->gain; in hmc425a_read_raw()
72 gain = ~code * -500; in hmc425a_read_raw()
76 *val = gain / 1000; in hmc425a_read_raw()
77 *val2 = (gain % 1000) * 1000; in hmc425a_read_raw()
95 int code = 0, gain; in hmc425a_write_raw() local
99 gain = (val * 1000) - (val2 / 1000); in hmc425a_write_raw()
101 gain = (val * 1000) + (val2 / 1000); in hmc425a_write_raw()
[all …]
H A DKconfig3 # Gain Amplifiers, etc.
10 tristate "Analog Devices AD8366 and similar Gain Amplifiers"
16 gain amplifiers. This driver supports the following gain amplifiers
18 AD8366 Dual-Digital Variable Gain Amplifier (VGA)
19 ADA4961 BiCMOS RF Digital Gain Amplifier (DGA)
20 ADL5240 Digitally controlled variable gain amplifier (VGA)
27 tristate "Analog Devices HMC425A and similar GPIO Gain Amplifiers"
31 gain amplifiers or step attenuators.
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/isp/kernels/dp/dp_1.0/
H A Dia_css_dp.host.c51 int gain = from->gain; in ia_css_dp_encode() local
62 to->gain = in ia_css_dp_encode()
63 uDIGIT_FITTING(from->gain, 8, SH_CSS_DP_GAIN_SHIFT); in ia_css_dp_encode()
66 uDIGIT_FITTING(gain * gr / r, 8, SH_CSS_DP_GAIN_SHIFT); in ia_css_dp_encode()
68 uDIGIT_FITTING(gain * gb / r, 8, SH_CSS_DP_GAIN_SHIFT); in ia_css_dp_encode()
70 uDIGIT_FITTING(gain * gb / b, 8, SH_CSS_DP_GAIN_SHIFT); in ia_css_dp_encode()
72 uDIGIT_FITTING(gain * gr / b, 8, SH_CSS_DP_GAIN_SHIFT); in ia_css_dp_encode()
74 uDIGIT_FITTING(gain * r / gr, 8, SH_CSS_DP_GAIN_SHIFT); in ia_css_dp_encode()
76 uDIGIT_FITTING(gain * b / gr, 8, SH_CSS_DP_GAIN_SHIFT); in ia_css_dp_encode()
78 uDIGIT_FITTING(gain * b / gb, 8, SH_CSS_DP_GAIN_SHIFT); in ia_css_dp_encode()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/broadcom/b43/
H A Dphy_n.h28 #define B43_NPHY_C1_CGAINI B43_PHY_N(0x01C) /* Core 1 compute gain info */
29 #define B43_NPHY_C1_CGAINI_GAINBKOFF 0x001F /* Gain backoff */
31 #define B43_NPHY_C1_CGAINI_CLIPGBKOFF 0x03E0 /* Clip gain backoff */
33 #define B43_NPHY_C1_CGAINI_GAINSTEP 0x1C00 /* Gain step */
36 #define B43_NPHY_C1_CCK_CGAINI B43_PHY_N(0x01D) /* Core 1 CCK compute gain info */
37 #define B43_NPHY_C1_CCK_CGAINI_GAINBKOFF 0x001F /* Gain backoff */
38 #define B43_NPHY_C1_CCK_CGAINI_CLIPGBKOFF 0x01E0 /* CCK barely clip gain backoff */
39 #define B43_NPHY_C1_MINMAX_GAIN B43_PHY_N(0x01E) /* Core 1 min/max gain */
40 #define B43_NPHY_C1_MINGAIN 0x00FF /* Minimum gain */
42 #define B43_NPHY_C1_MAXGAIN 0xFF00 /* Maximum gain */
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/phy/bb/
H A Dhalbb_hw_cfg.c29 struct bb_gain_info *gain = &bb->bb_gain_i; in halbb_cfg_bb_rpl_ofst() local
37 gain->rpl_ofst_20[band][path] = (s8)data; in halbb_cfg_bb_rpl_ofst()
39 band, path, (20 << bw), rxsc, gain->rpl_ofst_20[band][path]); in halbb_cfg_bb_rpl_ofst()
42 gain->rpl_ofst_40[band][path][0] = (s8)data; in halbb_cfg_bb_rpl_ofst()
45 gain->rpl_ofst_40[band][path][0]); in halbb_cfg_bb_rpl_ofst()
50 gain->rpl_ofst_40[band][path][rxsc] = ofst; in halbb_cfg_bb_rpl_ofst()
53 gain->rpl_ofst_40[band][path][rxsc]); in halbb_cfg_bb_rpl_ofst()
59 gain->rpl_ofst_80[band][path][0] = (s8)data; in halbb_cfg_bb_rpl_ofst()
62 gain->rpl_ofst_80[band][path][0]); in halbb_cfg_bb_rpl_ofst()
67 gain->rpl_ofst_80[band][path][rxsc] = ofst; in halbb_cfg_bb_rpl_ofst()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/phy/bb/
H A Dhalbb_hw_cfg.c29 struct bb_gain_info *gain = &bb->bb_gain_i; in halbb_cfg_bb_rpl_ofst() local
37 gain->rpl_ofst_20[band][path] = (s8)data; in halbb_cfg_bb_rpl_ofst()
39 band, path, (20 << bw), rxsc, gain->rpl_ofst_20[band][path]); in halbb_cfg_bb_rpl_ofst()
42 gain->rpl_ofst_40[band][path][0] = (s8)data; in halbb_cfg_bb_rpl_ofst()
45 gain->rpl_ofst_40[band][path][0]); in halbb_cfg_bb_rpl_ofst()
50 gain->rpl_ofst_40[band][path][rxsc] = ofst; in halbb_cfg_bb_rpl_ofst()
53 gain->rpl_ofst_40[band][path][rxsc]); in halbb_cfg_bb_rpl_ofst()
59 gain->rpl_ofst_80[band][path][0] = (s8)data; in halbb_cfg_bb_rpl_ofst()
62 gain->rpl_ofst_80[band][path][0]); in halbb_cfg_bb_rpl_ofst()
67 gain->rpl_ofst_80[band][path][rxsc] = ofst; in halbb_cfg_bb_rpl_ofst()
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/adc/
H A Dhx711.c24 /* gain to pulse and scale conversion */
29 int gain; member
49 static int hx711_get_gain_to_pulse(int gain) in hx711_get_gain_to_pulse() argument
54 if (hx711_gain_to_scale[i].gain == gain) in hx711_get_gain_to_pulse()
59 static int hx711_get_gain_to_scale(int gain) in hx711_get_gain_to_scale() argument
64 if (hx711_gain_to_scale[i].gain == gain) in hx711_get_gain_to_scale()
75 return hx711_gain_to_scale[i].gain; in hx711_get_scale_to_gain()
84 int gain_set; /* gain set on device */
85 int gain_chan_a; /* gain for channel A */
207 /* after a reset the gain is 128 */ in hx711_reset()
[all …]
H A Dad7780.c65 unsigned int gain; member
122 *val = voltage_uv * st->gain; in ad7780_read_raw()
148 unsigned int full_scale, gain; in ad7780_write_raw() local
160 gain = DIV_ROUND_CLOSEST_ULL(vref, full_scale); in ad7780_write_raw()
161 gain = DIV_ROUND_CLOSEST(gain, val2); in ad7780_write_raw()
162 st->gain = gain; in ad7780_write_raw()
163 if (gain < AD7780_GAIN_MIDPOINT) in ad7780_write_raw()
164 gain = 0; in ad7780_write_raw()
166 gain = 1; in ad7780_write_raw()
167 gpiod_set_value(st->gain_gpio, gain); in ad7780_write_raw()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/mediatek/mt76/mt76x2/
H A Dphy.c15 s8 gain; in mt76x2_adjust_high_lna_gain() local
17 gain = FIELD_GET(MT_BBP_AGC_LNA_HIGH_GAIN, in mt76x2_adjust_high_lna_gain()
19 gain -= offset / 2; in mt76x2_adjust_high_lna_gain()
20 mt76_rmw_field(dev, MT_BBP(AGC, reg), MT_BBP_AGC_LNA_HIGH_GAIN, gain); in mt76x2_adjust_high_lna_gain()
26 s8 gain; in mt76x2_adjust_agc_gain() local
28 gain = FIELD_GET(MT_BBP_AGC_GAIN, mt76_rr(dev, MT_BBP(AGC, reg))); in mt76x2_adjust_agc_gain()
29 gain += offset; in mt76x2_adjust_agc_gain()
30 mt76_rmw_field(dev, MT_BBP(AGC, reg), MT_BBP_AGC_GAIN, gain); in mt76x2_adjust_agc_gain()
144 int base_power, gain; in mt76x2_phy_set_txpower() local
163 gain = min(txp_0, txp_1); in mt76x2_phy_set_txpower()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/comedi/drivers/
H A Ddt2811.c28 * - A/D ranges are not programmable but the gain is. The AI subdevice has
29 * a range_table containing all the possible analog input range/gain
31 * your board configuration and the desired gain to correctly convert
33 * gain.
58 #define DT2811_ADGCR_REG 0x01 /* r/w A/D Gain/Channel */
106 * The gain may be set to 1, 2, 4, or 8 (on the dt2811-pgh) or to
111 BIP_RANGE(5), /* range 0: gain=1 */
112 BIP_RANGE(2.5), /* range 1: gain=2 */
113 BIP_RANGE(1.25), /* range 2: gain=4 */
114 BIP_RANGE(0.625), /* range 3: gain=8 */
[all …]
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkisp_demo/demo/sample/
H A Dsample_awb_module.cpp88 rk_aiq_wb_gain_t gain; in sample_set_mwb_gain() local
89 gain.rgain = 0.5f; in sample_set_mwb_gain()
90 gain.grgain = 0.5f; in sample_set_mwb_gain()
91 gain.gbgain = 0.5f; in sample_set_mwb_gain()
92 gain.bgain = 0.5f; in sample_set_mwb_gain()
93 rk_aiq_uapi2_setMWBGain(ctx, &gain); in sample_set_mwb_gain()
99 rk_aiq_wb_gain_t gain; in sample_get_mwb_gain() local
100 rk_aiq_uapi2_getWBGain(ctx, &gain); in sample_get_mwb_gain()
101 printf("get WBGain=[%f %f %f %f]\n", gain.rgain, gain.grgain, gain.gbgain, gain.bgain); in sample_get_mwb_gain()
253 attr.stManual.para.gain.rgain, in sample_awb_awbv21_getAllAttr()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc_1.0/
H A Dia_css_ctc_types.h25 /* Fractional bits for CTC gain (used only for ISP1).
28 * of gain(=8), but also the bits(=5) to convert chroma
31 * Gain (struct ia_css_ctc_table) : u5.8
34 * Output = (Input * Gain) >> IA_CSS_CTC_COEF_SHIFT
60 u16 y0; /** 1st kneepoint gain.
63 u16 y1; /** 2nd kneepoint gain.
66 u16 y2; /** 3rd kneepoint gain.
69 u16 y3; /** 4th kneepoint gain.
72 u16 y4; /** 5th kneepoint gain.
75 u16 y5; /** 6th kneepoint gain.
[all …]
/OK3568_Linux_fs/kernel/drivers/media/i2c/
H A Dvs6624_regs.h132 #define VS6624_DIRECT_ANAL_GAIN_MSB 0x119D /* analog gain for Direct Mode MSB */
133 #define VS6624_DIRECT_ANAL_GAIN_LSB 0x119E /* analog gain for Direct Mode LSB */
134 #define VS6624_DIRECT_DIGI_GAIN_MSB 0x11A1 /* digital gain for Direct Mode MSB */
135 #define VS6624_DIRECT_DIGI_GAIN_LSB 0x11A2 /* digital gain for Direct Mode LSB */
140 #define VS6624_FLASH_ANAL_GAIN_MSB 0x11AD /* analog gain for Flash Gun Mode MSB */
141 #define VS6624_FLASH_ANAL_GAIN_LSB 0x11AE /* analog gain for Flash Gun Mode LSB */
142 #define VS6624_FLASH_DIGI_GAIN_MSB 0x11B1 /* digital gain for Flash Gun Mode MSB */
143 #define VS6624_FLASH_DIGI_GAIN_LSB 0x11B2 /* digital gain for Flash Gun Mode LSB */
147 #define VS6624_FLASH_AG_THR_MSB 0x11BB /* recommend flash gun analog gain threshold MSB */
148 #define VS6624_FLASH_AG_THR_LSB 0x11BC /* recommend flash gun analog gain threshold LSB */
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/accel/
H A Dst_accel_core.c137 .gain = IIO_G_TO_M_S_2(1000),
142 .gain = IIO_G_TO_M_S_2(2000),
147 .gain = IIO_G_TO_M_S_2(4000),
152 .gain = IIO_G_TO_M_S_2(12000),
216 .gain = IIO_G_TO_M_S_2(1000),
221 .gain = IIO_G_TO_M_S_2(2000),
226 .gain = IIO_G_TO_M_S_2(3900),
300 .gain = IIO_G_TO_M_S_2(61),
305 .gain = IIO_G_TO_M_S_2(122),
310 .gain = IIO_G_TO_M_S_2(183),
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/light/
H A Dus5182d.txt14 - upisemi,upper-dark-gain: 8-bit dark gain compensation factor(4 int and 4
17 - upisemi,lower-dark-gain: 8-bit dark gain compensation factor(4 int and 4
33 There will be no dark-gain compensation by default when ALS > thresh
34 (0 * dark-gain), and a 1.35 compensation factor when ALS < thresh.
43 upisemi,upper-dark-gain = /bits/ 8 <0x00>;
44 upisemi,lower-dark-gain = /bits/ 8 <0x16>;
/OK3568_Linux_fs/kernel/drivers/iio/magnetometer/
H A Dst_magn_core.c139 .gain = 1100,
145 .gain = 855,
151 .gain = 670,
157 .gain = 450,
163 .gain = 400,
169 .gain = 330,
175 .gain = 230,
218 .gain = 909,
224 .gain = 1169,
230 .gain = 1492,
[all …]
/OK3568_Linux_fs/kernel/sound/mips/
H A Dad1843.c37 ad1843_RIG = { 2, 0, 4 }, /* Right ADC Input Gain */
38 ad1843_RMGE = { 2, 4, 1 }, /* Right ADC Mic Gain Enable */
40 ad1843_LIG = { 2, 8, 4 }, /* Left ADC Input Gain */
41 ad1843_LMGE = { 2, 12, 1 }, /* Left ADC Mic Gain Enable */
43 ad1843_RD2M = { 3, 0, 5 }, /* Right DAC 2 Mix Gain/Atten */
45 ad1843_LD2M = { 3, 8, 5 }, /* Left DAC 2 Mix Gain/Atten */
47 ad1843_RX1M = { 4, 0, 5 }, /* Right Aux 1 Mix Gain/Atten */
49 ad1843_LX1M = { 4, 8, 5 }, /* Left Aux 1 Mix Gain/Atten */
51 ad1843_RX2M = { 5, 0, 5 }, /* Right Aux 2 Mix Gain/Atten */
53 ad1843_LX2M = { 5, 8, 5 }, /* Left Aux 2 Mix Gain/Atten */
[all …]

12345678910>>...96