Home
last modified time | relevance | path

Searched refs:gain (Results 276 - 300 of 644) sorted by relevance

1...<<11121314151617181920>>...26

/third_party/ffmpeg/libavfilter/
H A Daf_afir.h77 double gain; member
H A Daf_acrossover.c101 { "level", "set input gain", OFFSET(level_in), AV_OPT_TYPE_FLOAT, {.dbl=1}, 0, 1, AF },
102 { "gain", "set output bands gain", OFFSET(gains_str), AV_OPT_TYPE_STRING, {.str="1.f"}, 0, 0, AF },
158 float gain; in parse_gains() local
166 if (av_sscanf(arg, "%f%2s", &gain, c) < 1) { in parse_gains()
167 av_log(ctx, AV_LOG_ERROR, "Invalid syntax for gain[%d].\n", i); in parse_gains()
173 s->gains[i] = expf(gain * M_LN10 / 20.f); in parse_gains()
175 s->gains[i] = gain; in parse_gains()
456 const type gain = s->gains[band] * ((band & 1 && first_order) ? -one : one); \
459 s->fdsp->vector_## ff ##mul_scalar(dst, dst, gain, \
[all...]
/kernel/linux/linux-5.10/drivers/media/i2c/
H A Dmt9m001.c531 dev_dbg(&client->dev, "Setting gain %d\n", data); in mt9m001_s_ctrl()
537 unsigned long gain = ((ctrl->val - (s32)ctrl->default_value - 1) * in mt9m001_s_ctrl() local
540 if (gain <= 32) in mt9m001_s_ctrl()
541 data = gain; in mt9m001_s_ctrl()
542 else if (gain <= 64) in mt9m001_s_ctrl()
543 data = ((gain - 32) * 16 + 16) / 32 + 80; in mt9m001_s_ctrl()
545 data = ((gain - 64) * 7 + 28) / 56 + 96; in mt9m001_s_ctrl()
547 dev_dbg(&client->dev, "Setting gain from %d to %d\n", in mt9m001_s_ctrl()
/kernel/linux/linux-5.10/sound/pci/lola/
H A Dlola_mixer.c209 unsigned short gain, bool on) in lola_mixer_set_src_gain()
222 (gain == readw(&chip->mixer.array->src_gain[id]))) in lola_mixer_set_src_gain()
226 "lola_mixer_set_src_gain (id=%d, gain=%d) enable=%x\n", in lola_mixer_set_src_gain()
227 id, gain, val); in lola_mixer_set_src_gain()
228 writew(gain, &chip->mixer.array->src_gain[id]); in lola_mixer_set_src_gain()
231 /* inform micro-controller about the new source gain */ in lola_mixer_set_src_gain()
270 unsigned short gain, bool on) in lola_mixer_set_mapping_gain()
278 writew(gain, &chip->mixer.array->dest_mix_gain[dest][src]); in lola_mixer_set_mapping_gain()
478 /* set gain value 0dB diagonally in matrix - part INPUT -> CAPTURE */ in init_mixer_values()
483 /* set gain valu in init_mixer_values()
208 lola_mixer_set_src_gain(struct lola *chip, unsigned int id, unsigned short gain, bool on) lola_mixer_set_src_gain() argument
268 lola_mixer_set_mapping_gain(struct lola *chip, unsigned int src, unsigned int dest, unsigned short gain, bool on) lola_mixer_set_mapping_gain() argument
[all...]
/kernel/linux/linux-5.10/sound/pci/echoaudio/
H A Dechoaudio_dsp.c551 /* Set the gain for a single physical output channel (dB). */
552 static int set_output_gain(struct echoaudio *chip, u16 channel, s8 gain) in set_output_gain() argument
561 chip->output_gain[channel] = gain; in set_output_gain()
562 chip->comm_page->line_out_level[channel] = gain; in set_output_gain()
571 s8 gain) in set_monitor_gain()
580 chip->monitor_gain[output][input] = gain; in set_monitor_gain()
581 chip->comm_page->monitors[monitor_index(chip, output, input)] = gain; in set_monitor_gain()
570 set_monitor_gain(struct echoaudio *chip, u16 output, u16 input, s8 gain) set_monitor_gain() argument
/kernel/linux/linux-5.10/drivers/media/usb/gspca/
H A Dpac7302.c39 * as the quality gain is small and the generated JPG-s are
55 * 0x12 Another gain 0-31, unlike 0x10 this one seems to start with an
470 if (gspca_dev->gain->val < 32) { in setgain()
471 reg10 = gspca_dev->gain->val; in setgain()
475 reg12 = gspca_dev->gain->val - 31; in setgain()
581 we are on a valid point of the autogain gain / in sd_s_ctrl()
585 gspca_dev->gain->val = PAC7302_GAIN_DEFAULT; in sd_s_ctrl()
611 if (gspca_dev->gain->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl()
665 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
H A Dni_atmio16d.c292 unsigned int sample_count, tmp, chan, gain; in atmio16d_ai_cmd() local
316 gain = CR_RANGE(cmd->chanlist[i]); in atmio16d_ai_cmd()
318 tmp = chan | (gain << 6); in atmio16d_ai_cmd()
465 int gain; in atmio16d_ai_insn_read() local
469 gain = CR_RANGE(insn->chanspec); in atmio16d_ai_insn_read()
476 /* set the Input MUX gain */ in atmio16d_ai_insn_read()
477 outw(chan | (gain << 6), dev->iobase + MUX_GAIN_REG); in atmio16d_ai_insn_read()
/kernel/linux/linux-6.6/drivers/media/usb/gspca/
H A Dpac7302.c39 * as the quality gain is small and the generated JPG-s are
55 * 0x12 Another gain 0-31, unlike 0x10 this one seems to start with an
470 if (gspca_dev->gain->val < 32) { in setgain()
471 reg10 = gspca_dev->gain->val; in setgain()
475 reg12 = gspca_dev->gain->val - 31; in setgain()
581 we are on a valid point of the autogain gain / in sd_s_ctrl()
585 gspca_dev->gain->val = PAC7302_GAIN_DEFAULT; in sd_s_ctrl()
611 if (gspca_dev->gain->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl()
665 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
/kernel/linux/linux-6.6/drivers/media/i2c/
H A Dmt9m001.c532 dev_dbg(&client->dev, "Setting gain %d\n", data); in mt9m001_s_ctrl()
538 unsigned long gain = ((ctrl->val - (s32)ctrl->default_value - 1) * in mt9m001_s_ctrl() local
541 if (gain <= 32) in mt9m001_s_ctrl()
542 data = gain; in mt9m001_s_ctrl()
543 else if (gain <= 64) in mt9m001_s_ctrl()
544 data = ((gain - 32) * 16 + 16) / 32 + 80; in mt9m001_s_ctrl()
546 data = ((gain - 64) * 7 + 28) / 56 + 96; in mt9m001_s_ctrl()
548 dev_dbg(&client->dev, "Setting gain from %d to %d\n", in mt9m001_s_ctrl()
/kernel/linux/linux-6.6/drivers/comedi/drivers/
H A Dni_atmio16d.c291 unsigned int sample_count, tmp, chan, gain; in atmio16d_ai_cmd() local
315 gain = CR_RANGE(cmd->chanlist[i]); in atmio16d_ai_cmd()
317 tmp = chan | (gain << 6); in atmio16d_ai_cmd()
464 int gain; in atmio16d_ai_insn_read() local
468 gain = CR_RANGE(insn->chanspec); in atmio16d_ai_insn_read()
475 /* set the Input MUX gain */ in atmio16d_ai_insn_read()
476 outw(chan | (gain << 6), dev->iobase + MUX_GAIN_REG); in atmio16d_ai_insn_read()
/kernel/linux/linux-6.6/drivers/iio/proximity/
H A Dsx9324.c748 unsigned int gain, reg; in sx9324_write_gain() local
753 gain = ilog2(val) + 1; in sx9324_write_gain()
754 if (val <= 0 || gain > SX9324_REG_PROX_CTRL0_GAIN_8) in sx9324_write_gain()
757 gain = FIELD_PREP(SX9324_REG_PROX_CTRL0_GAIN_MASK, gain); in sx9324_write_gain()
762 gain); in sx9324_write_gain()
970 "semtech,input-analog-gain", &raw); in sx9324_get_default_reg()
974 * The analog gain has the following setting: in sx9324_get_default_reg()
/kernel/linux/linux-6.6/drivers/iio/light/
H A Dtsl2591.c512 dev_err(&client->dev, "Failed to set als gain & int time\n"); in tsl2591_set_als_gain_int_time()
787 int gain; in tsl2591_write_raw() local
806 gain = tsl2591_multiplier_to_gain(val); in tsl2591_write_raw()
807 if (gain < 0) { in tsl2591_write_raw()
808 ret = gain; in tsl2591_write_raw()
811 ret = tsl2591_compatible_gain(chip, gain); in tsl2591_write_raw()
815 chip->als_settings.als_gain = gain; in tsl2591_write_raw()
/kernel/linux/linux-6.6/drivers/iio/dac/
H A Dad7293.c363 u16 gain) in ad7293_isense_set_scale()
368 gain << (4 * ch)); in ad7293_isense_set_scale()
372 u16 *gain) in ad7293_isense_get_scale()
376 ret = ad7293_spi_read(st, AD7293_REG_ISENSE_GAIN, gain); in ad7293_isense_get_scale()
380 *gain = (*gain >> (4 * ch)) & 0xf; in ad7293_isense_get_scale()
362 ad7293_isense_set_scale(struct ad7293_state *st, unsigned int ch, u16 gain) ad7293_isense_set_scale() argument
371 ad7293_isense_get_scale(struct ad7293_state *st, unsigned int ch, u16 *gain) ad7293_isense_get_scale() argument
/kernel/linux/linux-6.6/sound/pci/lola/
H A Dlola_mixer.c211 unsigned short gain, bool on) in lola_mixer_set_src_gain()
224 (gain == readw(&chip->mixer.array->src_gain[id]))) in lola_mixer_set_src_gain()
228 "lola_mixer_set_src_gain (id=%d, gain=%d) enable=%x\n", in lola_mixer_set_src_gain()
229 id, gain, val); in lola_mixer_set_src_gain()
230 writew(gain, &chip->mixer.array->src_gain[id]); in lola_mixer_set_src_gain()
233 /* inform micro-controller about the new source gain */ in lola_mixer_set_src_gain()
272 unsigned short gain, bool on) in lola_mixer_set_mapping_gain()
280 writew(gain, &chip->mixer.array->dest_mix_gain[dest][src]); in lola_mixer_set_mapping_gain()
480 /* set gain value 0dB diagonally in matrix - part INPUT -> CAPTURE */ in init_mixer_values()
485 /* set gain valu in init_mixer_values()
210 lola_mixer_set_src_gain(struct lola *chip, unsigned int id, unsigned short gain, bool on) lola_mixer_set_src_gain() argument
270 lola_mixer_set_mapping_gain(struct lola *chip, unsigned int src, unsigned int dest, unsigned short gain, bool on) lola_mixer_set_mapping_gain() argument
[all...]
/kernel/linux/linux-6.6/sound/pci/echoaudio/
H A Dechoaudio_dsp.c554 /* Set the gain for a single physical output channel (dB). */
555 static int set_output_gain(struct echoaudio *chip, u16 channel, s8 gain) in set_output_gain() argument
564 chip->output_gain[channel] = gain; in set_output_gain()
565 chip->comm_page->line_out_level[channel] = gain; in set_output_gain()
574 s8 gain) in set_monitor_gain()
583 chip->monitor_gain[output][input] = gain; in set_monitor_gain()
584 chip->comm_page->monitors[monitor_index(chip, output, input)] = gain; in set_monitor_gain()
573 set_monitor_gain(struct echoaudio *chip, u16 output, u16 input, s8 gain) set_monitor_gain() argument
/third_party/ffmpeg/libavcodec/
H A Datrac3.c409 * Decode gain parameters for the coded bands
420 AtracGainInfo *gain = block->g_block; in decode_gain_control() local
423 gain[b].num_points = get_bits(gb, 3); in decode_gain_control()
424 level = gain[b].lev_code; in decode_gain_control()
425 loc = gain[b].loc_code; in decode_gain_control()
427 for (j = 0; j < gain[b].num_points; j++) { in decode_gain_control()
437 gain[b].num_points = 0; in decode_gain_control()
631 /* gain compensation and overlapping */ in decode_channel_sound_unit()
638 /* Swap the gain control buffers for the next frame. */ in decode_channel_sound_unit()
H A Dopusenc.c287 float gain = f->pf_gain; in celt_enc_quant_pfilter() local
303 txval = FFMIN(((int)(gain / 0.09375f)) - 1, 7); in celt_enc_quant_pfilter()
305 gain = 0.09375f * (txval + 1); in celt_enc_quant_pfilter()
316 block->pf_gains_new[0] = gain * ff_celt_postfilter_taps[tapset][0]; in celt_enc_quant_pfilter()
317 block->pf_gains_new[1] = gain * ff_celt_postfilter_taps[tapset][1]; in celt_enc_quant_pfilter()
318 block->pf_gains_new[2] = gain * ff_celt_postfilter_taps[tapset][2]; in celt_enc_quant_pfilter()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/api/
H A Dpower.h519 * @gain: table of antenna gain values per chain and sub-band
525 s8 gain[IWL_NUM_CHAIN_LIMITS][IWL_NUM_SUB_BANDS]; member
530 s8 gain[IWL_NUM_CHAIN_LIMITS][IWL_NUM_SUB_BANDS_V2]; member
/kernel/linux/linux-5.10/include/media/davinci/
H A Disif.h361 struct isif_gain gain; member
494 struct isif_gain gain; member
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/
H A DcinergyT2-fe.c155 if (0xffff - le16_to_cpu(state->status.gain) > 30) in cinergyt2_fe_read_status()
194 *strength = (0xffff - le16_to_cpu(state->status.gain)); in cinergyt2_fe_read_signal_strength()
/kernel/linux/linux-6.6/drivers/media/usb/dvb-usb/
H A DcinergyT2-fe.c155 if (0xffff - le16_to_cpu(state->status.gain) > 30) in cinergyt2_fe_read_status()
194 *strength = (0xffff - le16_to_cpu(state->status.gain)); in cinergyt2_fe_read_signal_strength()
/third_party/backends/backend/
H A Dumax_pp_mid.c334 int gain, int offset, int *rbpp, int *rtw, in sanei_umax_pp_start()
364 (x + sanei_umax_pp_getLeft (), y, width, height, dpi, col, gain, in sanei_umax_pp_start()
332 sanei_umax_pp_start(int x, int y, int width, int height, int dpi, int color, int autoset, int gain, int offset, int *rbpp, int *rtw, int *rth) sanei_umax_pp_start() argument
/third_party/pulseaudio/src/modules/echo-cancel/
H A Dadrian-aec.h301 REAL gain; // Mic signal amplify member
373 a->gain = gain_; in AEC_setgain()
/third_party/skia/gm/
H A Dimagefiltersgraph.cpp117 SkScalar gain = 1.0f, bias = 0; variable
121 kernelSize, kernel, gain, bias, kernelOffset, SkTileMode::kClamp, convolveAlpha,
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dmadera.c3424 int gain; /* main gain */ member
3425 int alt_gain; /* alternate integer gain */
3610 cfg->gain = gains[i].gain; in madera_find_fll_gain()
3616 madera_fll_err(fll, "Unable to find gain for fref=%uHz\n", fref); in madera_find_fll_gain()
3709 madera_fll_dbg(fll, "GAIN=0x%x(%d)\n", cfg->gain, 1 << cfg->gain); in madera_calc_fll()
3716 bool sync, int gain) in madera_write_fll()
3750 gain << MADERA_FLL1_GAIN_SHIF in madera_write_fll()
3714 madera_write_fll(struct madera *madera, unsigned int base, struct madera_fll_cfg *cfg, int source, bool sync, int gain) madera_write_fll() argument
3955 int gain, ret; madera_enable_fll() local
[all...]

Completed in 31 milliseconds

1...<<11121314151617181920>>...26