Searched refs:gain (Results 1 - 19 of 19) sorted by relevance

/freebsd-13-stable/sys/tools/sound/
H A Dfeeder_eq_mkfilter.awk89 function feedeq_A(gain, A)
92 A = pow(10, gain / 40.0);
94 A = sqrt(pow(10, gain / 20.0));
128 function feedeq_gen_biquad_coeffs(coeffs, rate, gain, \
132 A = feedeq_A(1.0 * gain);
158 coeffs["treble", gain, 0] = feedeq_fx_floor(a0);
159 coeffs["treble", gain, 1] = feedeq_fx_floor(a1);
160 coeffs["treble", gain, 2] = feedeq_fx_floor(a2);
161 coeffs["treble", gain, 3] = feedeq_fx_floor(b0);
162 coeffs["treble", gain,
[all...]
/freebsd-13-stable/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;
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-13-stable/contrib/ntp/ntpd/
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 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 Drefclock_wwv.c71 * 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 Drefclock_chu.c149 * 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-13-stable/sys/dev/rtwn/rtl8188e/
H A Dr88e_chan.c147 r88e_set_gain(struct rtwn_softc *sc, uint8_t gain) argument
151 R92C_OFDM0_AGCCORE1_GAIN_M, gain);
/freebsd-13-stable/sys/dev/sound/pcm/
H A Dfeeder_eq.c115 int gain; member in struct:feed_eq_tone
171 treble = &(info->coeff[info->treble.gain].treble); \
172 bass = &(info->coeff[info->bass.gain].bass); \
366 info->treble.gain = FEEDEQ_L2GAIN(50);
367 info->bass.gain = FEEDEQ_L2GAIN(50);
406 info->treble.gain = FEEDEQ_L2GAIN(value);
408 info->bass.gain = FEEDEQ_L2GAIN(value);
/freebsd-13-stable/sys/dev/rtwn/rtl8192c/
H A Dr92c_chan.c315 r92c_set_gain(struct rtwn_softc *sc, uint8_t gain) argument
319 R92C_OFDM0_AGCCORE1_GAIN_M, gain);
321 R92C_OFDM0_AGCCORE1_GAIN_M, gain);
331 /* Set gain for scanning. */
345 /* Set gain under link. */
/freebsd-13-stable/contrib/ntp/util/
H A Dtg.c336 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 Dtg2.c1039 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-13-stable/usr.sbin/bhyve/
H A Dhda_codec.c793 uint8_t gain = 0; local
815 gain = payload & HDA_CODEC_SET_AMP_GAIN_MUTE_GAIN_MASK;
819 st->left_gain = gain;
821 mute: 0x%x gain: 0x%x", mute, gain);
826 st->right_gain = gain;
828 mute: 0x%x gain: 0x%x", mute, gain);
/freebsd-13-stable/sys/gnu/dev/bwn/phy_n/
H A Dif_bwn_phy_n_core.c671 int16_t gain[2]; local
680 gain[0] = 6;
681 gain[1] = 6;
684 gain[0] = ((tmp >> 13) + ((tmp >> 12) & 1));
686 gain[1] = ((tmp >> 13) + ((tmp >> 12) & 1));
689 gain[0] = 0;
690 gain[1] = 0;
695 data[0] = 19 + gain[i];
696 data[1] = 25 + gain[i];
697 data[2] = 25 + gain[
3298 uint16_t *vmid, *gain; local
3706 uint16_t gain; local
5576 uint16_t gain[2]; local
[all...]
/freebsd-13-stable/sys/dev/bwn/
H A Dif_bwn_phy_lp.c2289 bwn_phy_lp_set_rxgain(struct bwn_mac *mac, uint32_t gain) argument
2296 trsw = gain & 0x1;
2297 lna = (gain & 0xfffc) | ((gain & 0xc) >> 2);
2298 ext_lna = (gain & 2) >> 1;
2307 low_gain = gain & 0xffff;
2308 high_gain = (gain >> 16) & 0xf;
2309 ext_lna = (gain >> 21) & 0x1;
2310 trsw = ~(gain >> 20) & 0x1;
2320 tmp = (gain >>
2717 static const uint16_t gain[] = { local
3665 bwn_phy_lp_set_txgain_pa(struct bwn_mac *mac, uint16_t gain) argument
[all...]
/freebsd-13-stable/sys/dev/sound/pci/
H A Dvibes.c467 u_int8_t neg:1; /* Negative gain */
468 u_int8_t max; /* Max gain */
483 sv_channel_gain(struct sc_info *sc, u_int32_t dev, u_int32_t gain, u_int32_t channel) argument
488 g = mt[dev].max * gain / 100;
495 if (gain == 0) {
/freebsd-13-stable/sys/netinet/tcp_stacks/
H A Dbbr.c179 * How much gain do we need to see to
184 static int32_t bbr_low_start_exit = 25; /* When we are in reduced gain */
227 * is used for both cwnd and hptsi gain's.
257 * hptsi gain and thus drainging the packets
264 * The cwnd_gain is the default cwnd gain applied when
444 bbr_get_pacing_length(struct tcp_bbr *bbr, uint16_t gain,
447 bbr_get_a_state_target(struct tcp_bbr *bbr, uint32_t gain);
456 bbr_get_target_cwnd(struct tcp_bbr *bbr, uint64_t bw, uint32_t gain);
518 bbr_log_pacing_delay_calc(struct tcp_bbr *bbr, uint16_t gain, uint32_t len,
1193 OID_AUTO, "gain", CTLFLAG_R
2471 bbr_log_pacing_delay_calc(struct tcp_bbr *bbr, uint16_t gain, uint32_t len, uint32_t cts, uint32_t usecs, uint64_t bw, uint32_t override, int mod) argument
3438 bbr_get_raw_target_cwnd(struct tcp_bbr *bbr, uint32_t gain, uint64_t bw) argument
3462 bbr_get_target_cwnd(struct tcp_bbr *bbr, uint64_t bw, uint32_t gain) argument
3498 bbr_gain_adjust(struct tcp_bbr *bbr, uint16_t gain) argument
3534 bbr_get_pacing_length(struct tcp_bbr *bbr, uint16_t gain, uint32_t useconds_time, uint64_t bw) argument
3555 bbr_get_pacing_delay(struct tcp_bbr *bbr, uint16_t gain, int32_t len, uint32_t cts, int nolog) argument
10676 bbr_get_a_state_target(struct tcp_bbr *bbr, uint32_t gain) argument
10964 uint64_t btlbw, gain; local
10991 uint64_t btlbw, gain; local
[all...]
H A Drack.c2129 uint64_t gain; local
2131 gain = (uint64_t)rack_get_output_gain(rack, rsm);
2132 bw_est = bw * gain;
4023 * to try to gain back (we include override to
4575 /* There is a full window to gain info from */
5710 /* We gain delay */
8116 * because its too small to gain us anything we
13507 * that often will gain you a context switch, and instead lock
/freebsd-13-stable/sys/dev/usb/wlan/
H A Dif_urtw.c2638 urtw_8225_setgain(struct urtw_softc *sc, int16_t gain) argument
2642 urtw_8187_write_phy_ofdm(sc, 0x0d, urtw_8225_gain[gain * 4]);
2643 urtw_8187_write_phy_ofdm(sc, 0x1b, urtw_8225_gain[gain * 4 + 2]);
2644 urtw_8187_write_phy_ofdm(sc, 0x1d, urtw_8225_gain[gain * 4 + 3]);
2645 urtw_8187_write_phy_ofdm(sc, 0x23, urtw_8225_gain[gain * 4 + 1]);
3138 urtw_8225v2_setgain(struct urtw_softc *sc, int16_t gain) argument
3145 urtw_8187_write_phy_ofdm(sc, 0x0d, gainp[gain * 3]);
3147 urtw_8187_write_phy_ofdm(sc, 0x1b, gainp[gain * 3 + 1]);
3149 urtw_8187_write_phy_ofdm(sc, 0x1d, gainp[gain * 3 + 2]);
/freebsd-13-stable/sys/dev/iwn/
H A Dif_iwn.c2319 printf("chain %d, sample %d: temp=%d gain=%d "
2322 chans[0].samples[c][j].gain,
2330 printf("chain %d, sample %d: temp=%d gain=%d "
2333 chans[1].samples[c][j].gain,
5752 uint8_t power, gain, temp; local
5758 gain = interpolate(chan,
5759 chans[0].num, chans[0].samples[c][1].gain,
5760 chans[1].num, chans[1].samples[c][1].gain, 1);
5765 "%s: Tx chain %d: power=%d gain=%d temp=%d\n",
5766 __func__, c, power, gain, tem
[all...]
H A Dif_iwnreg.h1247 int8_t gain[3]; member in struct:iwn_phy_calib_gain
1949 uint8_t gain; member in struct:iwn4965_eeprom_chan_samples::__anon12544
2060 * RF Tx gain values from highest to lowest power (values obtained from
2090 * DSP pre-DAC gain values from highest to lowest power (values obtained

Completed in 401 milliseconds