Home
last modified time | relevance | path

Searched refs:gain (Results 1 – 25 of 105) sorted by relevance

12345

/freebsd/sys/tools/sound/
H A Dfeeder_eq_mkfilter.awk88 function feedeq_A(gain, A)
91 A = pow(10, gain / 40.0);
93 A = sqrt(pow(10, gain / 20.0));
127 function feedeq_gen_biquad_coeffs(coeffs, rate, gain, \
131 A = feedeq_A(1.0 * gain);
157 coeffs["treble", gain, 0] = feedeq_fx_floor(a0);
158 coeffs["treble", gain, 1] = feedeq_fx_floor(a1);
159 coeffs["treble", gain, 2] = feedeq_fx_floor(a2);
160 coeffs["treble", gain, 3] = feedeq_fx_floor(b0);
161 coeffs["treble", gain, 4] = feedeq_fx_floor(b1);
[all …]
/freebsd/sys/contrib/dev/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 …]
H A Dmcu.c75 int mt76x2_mcu_init_gain(struct mt76x02_dev *dev, u8 channel, u32 gain, in mt76x2_mcu_init_gain() argument
83 .gain_val = cpu_to_le32(gain), in mt76x2_mcu_init_gain()
/freebsd/sys/contrib/device-tree/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>;
/freebsd/sys/contrib/device-tree/Bindings/iio/afe/
H A Dcurrent-sense-amplifier.txt15 - sense-gain-mult: Amplifier gain multiplier. The default is <1>.
16 - sense-gain-div: Amplifier gain divider. The default is <1>.
25 sense-gain-mul = <50>;
/freebsd/usr.bin/beep/
H A Dbeep.c61 static int gain = GAIN_DEF; variable
183 gain = strtol(optarg, NULL, 10); in main()
184 if (gain < GAIN_MIN || in main()
185 gain > GAIN_MAX) in main()
236 a = powf(65536.0f, (float)gain / (float)GAIN_MAX) / 65536.0f; in main()
/freebsd/sys/contrib/device-tree/Bindings/regulator/
H A Dmax1586-regulator.txt6 - v3-gain: integer specifying the V3 gain as per datasheet
16 v3-gain = <1000000>;
/freebsd/sys/contrib/device-tree/Bindings/iio/adc/
H A Dads1015.txt18 - pga is the programmable gain amplifier (values are full scale)
64 - ti,gain : the programmable gain amplifier setting
71 ti,gain = <3>;
/freebsd/sys/contrib/dev/rtw89/
H A Drtw8852b.c615 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; rtw8852b_efuse_parsing_gain_offset() local
806 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; rtw8852b_phycap_parsing_gain_comp() local
972 const struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain; rtw8852b_set_gain_error() local
1070 const struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain; rtw8852b_set_rxsc_rpl_comp() local
1412 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; rtw8852b_bb_sethw() local
H A Drtw8851b.c499 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; in rtw8851b_read_efuse()
503 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_2G_CCK], in rtw8851b_read_efuse()
506 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_2G_OFDM], in rtw8851b_read_efuse()
509 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_5G_LOW], in rtw8851b_read_efuse()
512 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_5G_MID], in rtw8851b_read_efuse()
515 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_5G_HIGH], in rtw8851b_read_efuse()
518 gain->offset_valid = valid; in rtw8851b_read_efuse()
680 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; in rtw8851b_read_phycap()
693 &gain->comp[path][i]); in rtw8851b_set_bb_gpio()
696 gain in rtw8851b_set_bb_gpio()
477 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; rtw8851b_efuse_parsing_gain_offset() local
657 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; rtw8851b_phycap_parsing_gain_comp() local
885 const struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain; rtw8851b_set_gain_error() local
971 const struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain; rtw8851b_set_rxsc_rpl_comp() local
1438 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; rtw8851b_bb_sethw() local
[all...]
/freebsd/contrib/ntp/libntp/
H A Daudio.c220 * only), preset the gain and set the input port. It assumes that the
359 info.play.gain = AUDIO_MAX_GAIN; in audio_init()
382 int gain, /* volume level (gain) 0-255 */ in audio_gain() argument
383 int mongain, /* input to output mix (monitor gain) 0-255 */ in audio_gain()
398 r = l = 100 * gain / 255; /* Normalize to 0-100 */ in audio_gain()
401 printf("audio_gain: gain %d/%d\n", gain, l); in audio_gain()
468 info.record.gain = gain; in audio_gain()
[all...]
/freebsd/sys/contrib/device-tree/Bindings/input/
H A Dcap11xx.txt24 microchip,sensor-gain: Defines the gain of the sensor circuitry. This
29 By default, a gain of 1 is set.
50 microchip,sensor-gain = <2>;
/freebsd/contrib/ntp/ntpd/
H A Drefclock_wwv.c71 * the monitor gain is set to a default value.
114 #define DGAIN 5. /* subcarrier gain */
503 int gain; /* audio gain */ member
528 int gain; /* codec gain */ member
529 int mongain; /* codec monitor gain */
852 * Set the input port and monitor gain for the next buffer. in wwv_receive()
1240 * not in minute sync, fiddle the codec gain. Note the SNR is in wwv_rf()
1356 up->status, up->gain, s in wwv_qrz()
[all...]
H A Drefclock_irig.c65 * An automatic gain control feature provides protection against
90 * these fields are the carrier amplitude (0-3000), codec gain (0-255),
139 * the monitor gain is set t a default value. Fudgetime2 is used as a
230 int gain; /* codec gain */ member
231 int mongain; /* codec monitor gain */
357 up->gain = 127; in irig_start()
464 * Once each second, determine the IRIG format and gain. in irig_receive()
482 * Set the input port and monitor gain for the next buffer. in irig_receive()
949 up->maxsignal, up->gain, u in irig_decode()
[all...]
H A Drefclock_chu.c358 int gain; /* codec gain (modem only) */ member
544 up->gain = 127; in chu_start()
1383 pp->second, leapchar, up->dst, up->dut, minset, up->gain, in chu_second()
1663 up->gain += 4; in chu_gain()
1664 if (up->gain > MAXGAIN) in chu_gain()
1665 up->gain = MAXGAIN; in chu_gain()
1667 up->gain -= 4; in chu_gain()
1668 if (up->gain < 0) in chu_gain()
1669 up->gain = 0; in chu_gain()
1671 audio_gain(up->gain, up->mongain, up->port); in chu_gain()
/freebsd/sys/contrib/device-tree/src/arm/nxp/imx/
H A Dimx6dl-prtrvt.dts87 ti,gain = <3>;
94 ti,gain = <3>;
101 ti,gain = <3>;
108 ti,gain = <3>;
H A Dimx6q-prtwd2.dts89 ti,gain = <1>;
96 ti,gain = <1>;
103 ti,gain = <1>;
110 ti,gain = <1>;
H A Dimx6ul-prti6g.dts138 ti,gain = <3>;
144 ti,gain = <3>;
150 ti,gain = <3>;
156 ti,gain = <3>;
/freebsd/sys/contrib/device-tree/Bindings/iio/potentiostat/
H A Dlmp91000.txt14 - ti,external-tia-resistor: if the property ti,tia-gain-ohm is not defined this
19 - ti,tia-gain-ohm: ohm value of the internal resistor for the transimpedance
30 ti,tia-gain-ohm = <7500>;
/freebsd/sys/contrib/device-tree/src/arm/microchip/
H A Dat91-natte.dtsi222 ti,gain = <2>;
228 ti,gain = <2>;
234 ti,gain = <1>;
240 ti,gain = <3>;
/freebsd/sys/contrib/device-tree/Bindings/sound/
H A Dmaxim,max9759.txt8 - gain-gpios : the 2 gpios connected to the g1 and g2 pins
16 gain-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>,
/freebsd/sys/dev/sound/pcm/
H A Dfeeder_eq.c113 int gain; member
164 treble = &(info->coeff[info->treble.gain].treble); in feed_eq_biquad()
165 bass = &(info->coeff[info->bass.gain].bass); in feed_eq_biquad()
290 info->treble.gain = FEEDEQ_L2GAIN(50); in feed_eq_init()
291 info->bass.gain = FEEDEQ_L2GAIN(50); in feed_eq_init()
328 info->treble.gain = FEEDEQ_L2GAIN(value); in feed_eq_set()
330 info->bass.gain = FEEDEQ_L2GAIN(value); in feed_eq_set()
/freebsd/tools/tools/ath/athprom/
H A Deeprom-1441 | xlna gain Chain 0 $xlnaGainCh0 |
42 | xlna gain Chain 1 $xlnaGainCh1 |
43 | xlna gain Chain 2 $xlnaGainCh2 |
/freebsd/sys/dev/rtwn/rtl8188e/
H A Dr88e_chan.c171 r88e_set_gain(struct rtwn_softc *sc, uint8_t gain) in r88e_set_gain() argument
175 R92C_OFDM0_AGCCORE1_GAIN_M, gain); in r88e_set_gain()
/freebsd/usr.sbin/bhyve/
H A Dhda_codec.c792 uint8_t gain = 0; in hda_codec_audio_inout_nid() local
814 gain = payload & HDA_CODEC_SET_AMP_GAIN_MUTE_GAIN_MASK; in hda_codec_audio_inout_nid()
818 st->left_gain = gain; in hda_codec_audio_inout_nid()
820 mute: 0x%x gain: 0x%x", mute, gain); in hda_codec_audio_inout_nid()
825 st->right_gain = gain; in hda_codec_audio_inout_nid()
827 mute: 0x%x gain: 0x%x", mute, gain); in hda_codec_audio_inout_nid()

12345