/freebsd-11-stable/sys/tools/sound/ |
H A D | feeder_eq_mkfilter.awk | 87 function feedeq_A(gain, A) 90 A = pow(10, gain / 40.0); 92 A = sqrt(pow(10, gain / 20.0)); 126 function feedeq_gen_biquad_coeffs(coeffs, rate, gain, \ 130 A = feedeq_A(1.0 * gain); 156 coeffs["treble", gain, 0] = feedeq_fx_floor(a0); 157 coeffs["treble", gain, 1] = feedeq_fx_floor(a1); 158 coeffs["treble", gain, 2] = feedeq_fx_floor(a2); 159 coeffs["treble", gain, 3] = feedeq_fx_floor(b0); 160 coeffs["treble", gain, [all...] |
/freebsd-11-stable/sys/i386/include/ |
H A D | pcaudioio.h | 42 unsigned gain; /* volume level: 0 - 255 */ member in struct:audio_prinfo
|
/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | audio.c | 220 * only), preset the gain and set the input port. It assumes that the 359 info.play.gain = AUDIO_MAX_GAIN; 382 int gain, /* volume level (gain) 0-255 */ 383 int mongain, /* input to output mix (monitor gain) 0-255 */ 398 r = l = 100 * gain / 255; /* Normalize to 0-100 */ 401 printf("audio_gain: gain %d/%d\n", gain, l); 468 info.record.gain = gain; 381 audio_gain( int gain, int mongain, int port ) argument [all...] |
/freebsd-11-stable/contrib/ntp/ntpd/ |
H A D | refclock_irig.c | 65 * 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 in struct:irigunit 231 int mongain; /* codec monitor gain */ 357 up->gain = 127; 464 * Once each second, determine the IRIG format and gain. 482 * Set the input port and monitor gain for the next buffer. 949 up->maxsignal, up->gain, u [all...] |
H A D | refclock_wwv.c | 71 * the monitor gain is set to a default value. 114 #define DGAIN 5. /* subcarrier gain */ 503 int gain; /* audio gain */ member in struct:chan 528 int gain; /* codec gain */ member in struct:wwvunit 529 int mongain; /* codec monitor gain */ 852 * Set the input port and monitor gain for the next buffer. 1240 * not in minute sync, fiddle the codec gain. Note the SNR is 1356 up->status, up->gain, s [all...] |
H A D | refclock_chu.c | 149 * the audio driver is compiled, the current gain (0-255) and relative 151 * should be set so that the gain is somewhere near the middle of the 168 * agc audio gain (0 - 255) 184 * monitoring of the input signal. For this purpose, the monitor gain is 233 #define AGAIN 6. /* baseband gain */ 358 int gain; /* codec gain (modem only) */ member in struct:chuunit 375 int mongain; /* codec monitor gain */ 544 up->gain = 127; 681 * increase the gain [all...] |
/freebsd-11-stable/contrib/gcc/ |
H A D | rtl-factoring.c | 68 gain computation 69 This part computes the gain of abstraction which could be archived when 74 RECOMPUTE_GAIN does the gain computation. The sequences with the maximum 75 gain is on the top of PATTERN_SEQS. 193 /* The gain of transforming the pattern sequence into a pseudo-function and 195 int gain; member in struct:pattern_seq_def 388 if it is too small to produce any gain. */ 402 pseq->gain = 0; /* Set to zero to force recomputing. */ 576 /* Computes the gain of turning PSEQ into a pseudo-function and its matching 594 pseq->gain [all...] |
H A D | loop-invariant.c | 985 /* Calculates gain for eliminating invariant INV. REGS_USED is the number 1007 /* Finds invariant with best gain for moving. Returns the gain, stores 1019 int gain = 0, again; local 1033 if (again > gain) 1035 gain = again; 1041 return gain;
|
/freebsd-11-stable/sys/dev/sound/pcm/ |
H A D | feeder_eq.c | 113 int gain; member in struct:feed_eq_tone 169 treble = &(info->coeff[info->treble.gain].treble); \ 170 bass = &(info->coeff[info->bass.gain].bass); \ 365 info->treble.gain = FEEDEQ_L2GAIN(50); 366 info->bass.gain = FEEDEQ_L2GAIN(50); 405 info->treble.gain = FEEDEQ_L2GAIN(value); 407 info->bass.gain = FEEDEQ_L2GAIN(value);
|
/freebsd-11-stable/contrib/ntp/util/ |
H A D | tg.c | 336 info.play.gain = level; 341 printf("port %d gain %d rate %d chan %d prec %d encode %d\n", 342 info.play.port, info.play.gain, info.play.sample_rate,
|
H A D | tg2.c | 1039 info.play.gain = level; 1044 printf("\nport %d gain %d rate %d chan %d prec %d encode %d\n", 1045 info.play.port, info.play.gain, info.play.sample_rate,
|
/freebsd-11-stable/sys/gnu/dev/bwn/phy_n/ |
H A D | if_bwn_phy_n_core.c | 666 int16_t gain[2]; local 675 gain[0] = 6; 676 gain[1] = 6; 679 gain[0] = ((tmp >> 13) + ((tmp >> 12) & 1)); 681 gain[1] = ((tmp >> 13) + ((tmp >> 12) & 1)); 684 gain[0] = 0; 685 gain[1] = 0; 690 data[0] = 19 + gain[i]; 691 data[1] = 25 + gain[i]; 692 data[2] = 25 + gain[ 3291 uint16_t *vmid, *gain; local 3678 uint16_t gain; local 5529 uint16_t gain[2]; local [all...] |
/freebsd-11-stable/sys/dev/siba/ |
H A D | siba_core.c | 1551 int8_t gain; local 1608 /* antenna gain */ 1609 gain = siba_sprom_r123_antgain(out->rev, in, SIBA_SPROM1_AGAIN_BG, 0); 1610 out->again.ghz24.a0 = out->again.ghz24.a1 = gain; 1611 out->again.ghz24.a2 = out->again.ghz24.a3 = gain; 1612 gain = siba_sprom_r123_antgain(out->rev, in, SIBA_SPROM1_AGAIN_A, 8); 1613 out->again.ghz5.a0 = out->again.ghz5.a1 = gain; 1614 out->again.ghz5.a2 = out->again.ghz5.a3 = gain; 1706 /* antenna gain */ 1821 /* antenna gain */ 1894 uint8_t gain; local [all...] |
/freebsd-11-stable/sys/dev/bwn/ |
H A D | if_bwn_phy_lp.c | 2192 bwn_phy_lp_set_rxgain(struct bwn_mac *mac, uint32_t gain) argument 2199 trsw = gain & 0x1; 2200 lna = (gain & 0xfffc) | ((gain & 0xc) >> 2); 2201 ext_lna = (gain & 2) >> 1; 2210 low_gain = gain & 0xffff; 2211 high_gain = (gain >> 16) & 0xf; 2212 ext_lna = (gain >> 21) & 0x1; 2213 trsw = ~(gain >> 20) & 0x1; 2223 tmp = (gain >> 2620 static const uint16_t gain[] = { local 3568 bwn_phy_lp_set_txgain_pa(struct bwn_mac *mac, uint16_t gain) argument [all...] |
/freebsd-11-stable/sys/dev/sound/pci/ |
H A D | vibes.c | 465 u_int8_t neg:1; /* Negative gain */ 466 u_int8_t max; /* Max gain */ 481 sv_channel_gain(struct sc_info *sc, u_int32_t dev, u_int32_t gain, u_int32_t channel) argument 486 g = mt[dev].max * gain / 100; 493 if (gain == 0) {
|
/freebsd-11-stable/sys/dev/lmc/ |
H A D | if_lmc.c | 1536 u_int8_t pulse, lbo, gain; local 1628 if ((gain = sc->config.rx_gain) == CFG_GAIN_AUTO) 1631 gain = CFG_GAIN_EXTEND; 1633 gain = CFG_GAIN_LONG; 1635 gain = CFG_GAIN_MEDIUM; 1637 gain = CFG_GAIN_SHORT; 1640 /* 024:VGA_MAX -- Variable Gain Amplifier Max gain */ 1641 write_framer(sc, Bt8370_VGA_MAX, gain); 1644 if (gain == CFG_GAIN_EXTEND) 1649 /* 038-03C:GAINn -- RX Equalizer gain threshold [all...] |
/freebsd-11-stable/sys/dev/usb/wlan/ |
H A D | if_urtw.c | 2646 urtw_8225_setgain(struct urtw_softc *sc, int16_t gain) argument 2650 urtw_8187_write_phy_ofdm(sc, 0x0d, urtw_8225_gain[gain * 4]); 2651 urtw_8187_write_phy_ofdm(sc, 0x1b, urtw_8225_gain[gain * 4 + 2]); 2652 urtw_8187_write_phy_ofdm(sc, 0x1d, urtw_8225_gain[gain * 4 + 3]); 2653 urtw_8187_write_phy_ofdm(sc, 0x23, urtw_8225_gain[gain * 4 + 1]); 3148 urtw_8225v2_setgain(struct urtw_softc *sc, int16_t gain) argument 3155 urtw_8187_write_phy_ofdm(sc, 0x0d, gainp[gain * 3]); 3157 urtw_8187_write_phy_ofdm(sc, 0x1b, gainp[gain * 3 + 1]); 3159 urtw_8187_write_phy_ofdm(sc, 0x1d, gainp[gain * 3 + 2]);
|
/freebsd-11-stable/sys/dev/iwn/ |
H A D | if_iwn.c | 2271 printf("chain %d, sample %d: temp=%d gain=%d " 2274 chans[0].samples[c][j].gain, 2282 printf("chain %d, sample %d: temp=%d gain=%d " 2285 chans[1].samples[c][j].gain, 5581 uint8_t power, gain, temp; local 5587 gain = interpolate(chan, 5588 chans[0].num, chans[0].samples[c][1].gain, 5589 chans[1].num, chans[1].samples[c][1].gain, 1); 5594 "%s: Tx chain %d: power=%d gain=%d temp=%d\n", 5595 __func__, c, power, gain, tem [all...] |
H A D | if_iwnreg.h | 1213 int8_t gain[3]; member in struct:iwn_phy_calib_gain 1908 uint8_t gain; member in struct:iwn4965_eeprom_chan_samples::__anon10559 2019 * RF Tx gain values from highest to lowest power (values obtained from 2049 * DSP pre-DAC gain values from highest to lowest power (values obtained
|
/freebsd-11-stable/share/mk/ |
H A D | src.opts.mk | 543 # that since it creates too much confusion for too little gain.
|
/freebsd-11-stable/sys/dev/rtwn/ |
H A D | if_rtwn.c | 1393 /* CCK gain is smaller than OFDM/MCS gain. */ 2696 rtwn_set_gain(struct rtwn_softc *sc, uint8_t gain) argument 2701 reg = RW(reg, R92C_OFDM0_AGCCORE1_GAIN, gain); 2705 reg = RW(reg, R92C_OFDM0_AGCCORE1_GAIN, gain); 2717 /* Set gain for scanning. */ 2730 /* Set gain under link. */
|
/freebsd-11-stable/sys/dev/urtwn/ |
H A D | if_urtwn.c | 2792 /* CCK gain is smaller than OFDM/MCS gain. */ 4770 urtwn_set_gain(struct urtwn_softc *sc, uint8_t gain) argument 4775 reg = RW(reg, R92C_OFDM0_AGCCORE1_GAIN, gain); 4780 reg = RW(reg, R92C_OFDM0_AGCCORE1_GAIN, gain); 4796 /* Set gain for scanning. */ 4813 /* Set gain under link. */
|