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

/freebsd-10-stable/sys/tools/sound/
H A Dfeeder_eq_mkfilter.awk87 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-10-stable/sys/i386/include/
H A Dpcaudioio.h42 unsigned gain; /* volume level: 0 - 255 */ member in struct:audio_prinfo
/freebsd-10-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-10-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-10-stable/contrib/gcc/
H A Drtl-factoring.c68 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 Dloop-invariant.c985 /* 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-10-stable/sys/dev/sound/pcm/
H A Dfeeder_eq.c114 int gain; member in struct:feed_eq_tone
170 treble = &(info->coeff[info->treble.gain].treble); \
171 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-10-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-10-stable/sys/dev/siba/
H A Dsiba_core.c1504 int8_t gain; local
1561 /* antenna gain */
1562 gain = siba_sprom_r123_antgain(out->rev, in, SIBA_SPROM1_AGAIN_BG, 0);
1563 out->again.ghz24.a0 = out->again.ghz24.a1 = gain;
1564 out->again.ghz24.a2 = out->again.ghz24.a3 = gain;
1565 gain = siba_sprom_r123_antgain(out->rev, in, SIBA_SPROM1_AGAIN_A, 8);
1566 out->again.ghz5.a0 = out->again.ghz5.a1 = gain;
1567 out->again.ghz5.a2 = out->again.ghz5.a3 = gain;
1614 /* antenna gain */
1685 /* antenna gain */
1698 uint8_t gain; local
[all...]
/freebsd-10-stable/sys/dev/sound/pci/
H A Dvibes.c465 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-10-stable/sys/dev/iwn/
H A Dif_iwn.c1822 printf("chain %d, sample %d: temp=%d gain=%d "
1825 chans[0].samples[c][j].gain,
1833 printf("chain %d, sample %d: temp=%d gain=%d "
1836 chans[1].samples[c][j].gain,
4604 uint8_t power, gain, temp; local
4610 gain = interpolate(chan,
4611 chans[0].num, chans[0].samples[c][1].gain,
4612 chans[1].num, chans[1].samples[c][1].gain, 1);
4617 "%s: Tx chain %d: power=%d gain=%d temp=%d\n",
4618 __func__, c, power, gain, tem
[all...]
H A Dif_iwnreg.h1163 int8_t gain[3]; member in struct:iwn_phy_calib_gain
1678 uint8_t gain; member in struct:iwn4965_eeprom_chan_samples::__anon9106
1779 * RF Tx gain values from highest to lowest power (values obtained from
1809 * DSP pre-DAC gain values from highest to lowest power (values obtained
/freebsd-10-stable/sys/dev/usb/wlan/
H A Dif_urtw.c2670 urtw_8225_setgain(struct urtw_softc *sc, int16_t gain) argument
2674 urtw_8187_write_phy_ofdm(sc, 0x0d, urtw_8225_gain[gain * 4]);
2675 urtw_8187_write_phy_ofdm(sc, 0x1b, urtw_8225_gain[gain * 4 + 2]);
2676 urtw_8187_write_phy_ofdm(sc, 0x1d, urtw_8225_gain[gain * 4 + 3]);
2677 urtw_8187_write_phy_ofdm(sc, 0x23, urtw_8225_gain[gain * 4 + 1]);
3174 urtw_8225v2_setgain(struct urtw_softc *sc, int16_t gain) argument
3181 urtw_8187_write_phy_ofdm(sc, 0x0d, gainp[gain * 3]);
3183 urtw_8187_write_phy_ofdm(sc, 0x1b, gainp[gain * 3 + 1]);
3185 urtw_8187_write_phy_ofdm(sc, 0x1d, gainp[gain * 3 + 2]);
/freebsd-10-stable/sys/dev/lmc/
H A Dif_lmc.c1714 u_int8_t pulse, lbo, gain; local
1806 if ((gain = sc->config.rx_gain) == CFG_GAIN_AUTO)
1809 gain = CFG_GAIN_EXTEND;
1811 gain = CFG_GAIN_LONG;
1813 gain = CFG_GAIN_MEDIUM;
1815 gain = CFG_GAIN_SHORT;
1818 /* 024:VGA_MAX -- Variable Gain Amplifier Max gain */
1819 write_framer(sc, Bt8370_VGA_MAX, gain);
1822 if (gain == CFG_GAIN_EXTEND)
1827 /* 038-03C:GAINn -- RX Equalizer gain threshold
[all...]
/freebsd-10-stable/sys/gnu/dts/arm/
H A Domap3-n900.dts497 amstaos,cover-comp-gain = <16>;
/freebsd-10-stable/sys/dev/bwn/
H A Dif_bwn.c12657 bwn_phy_lp_set_rxgain(struct bwn_mac *mac, uint32_t gain) argument
12665 trsw = gain & 0x1;
12666 lna = (gain & 0xfffc) | ((gain & 0xc) >> 2);
12667 ext_lna = (gain & 2) >> 1;
12676 low_gain = gain & 0xffff;
12677 high_gain = (gain >> 16) & 0xf;
12678 ext_lna = (gain >> 21) & 0x1;
12679 trsw = ~(gain >> 20) & 0x1;
12689 tmp = (gain >>
13138 static const uint16_t gain[] = { local
14087 bwn_phy_lp_set_txgain_pa(struct bwn_mac *mac, uint16_t gain) argument
[all...]

Completed in 330 milliseconds