HomeSort by: relevance | last modified time | path
    Searched refs:gain (Results 1 - 25 of 46) sorted by relevancy

1 2

  /src/usr.bin/audiocfg/
dtmf.c 60 float gain; local
65 gain = 1.0 * i / attack;
67 gain = 1.0 * (sample_count - i) / decay;
69 gain = 1.0;
76 ) * gain * 16383;
  /src/external/bsd/ntp/dist/libntp/
audio.c 222 * only), preset the gain and set the input port. It assumes that the
361 info.play.gain = AUDIO_MAX_GAIN;
384 int gain, /* volume level (gain) 0-255 */
385 int mongain, /* input to output mix (monitor gain) 0-255 */
400 r = l = 100 * gain / 255; /* Normalize to 0-100 */
403 printf("audio_gain: gain %d/%d\n", gain, l);
470 info.record.gain = gain;
    [all...]
  /src/usr.bin/audio/record/
record.c 64 static int gain; variable
184 decode_int(optarg, &gain);
185 if (gain < 0 || gain > 255)
247 * what the old monitor gain value is, so that we can reset it later.
280 SETINFO2 (gain, gain)
  /src/lib/libossaudio/
oss_dsp.c 393 INTARG = get_vol(tmpinfo.play.gain, tmpinfo.play.balance);
402 INTARG = get_vol(tmpinfo.record.gain, tmpinfo.record.balance);
455 get_vol(u_int gain, u_char balance)
460 l = r = gain;
462 l = gain;
463 r = (balance * gain) / AUDIO_MID_BALANCE;
465 r = gain;
466 l = ((AUDIO_RIGHT_BALANCE - balance) * gain)
487 prinfo->gain = lgain;
490 prinfo->gain = rgain
    [all...]
  /src/sys/dev/isa/
essvar.h 146 u_char gain[ESS_MAX_NDEVS][2]; /* kept in input levels */ member in struct:ess_softc
sbdsp.c 273 printf("gain:");
275 printf(" %u,%u", sc->gain[i][SB_LEFT], sc->gain[i][SB_RIGHT]);
426 sc->gain[i][SB_LEFT] = sc->gain[i][SB_RIGHT] = v;
1685 int src, gain; local
1694 gain = SB_1335_GAIN(sc->gain[port][SB_LEFT]);
1707 gain = SB_1335_MASTER_GAIN(sc->gain[port][SB_LEFT])
    [all...]
ess.c 292 printf("gain:");
294 printf(" %u,%u", sc->gain[i][ESS_LEFT], sc->gain[i][ESS_RIGHT]);
984 * setting the gain of the unused sources to zero. (See
995 * Set gain on each mixer device to a sensible value.
1025 sc->gain[i][ESS_LEFT] = sc->gain[i][ESS_RIGHT] = v;
1588 * single-channel gain value passed in, then we duplicate it
1617 sc->gain[cp->dev][ESS_LEFT] = lgain;
1618 sc->gain[cp->dev][ESS_RIGHT] = rgain
2239 int gain, left, right; local
    [all...]
sbdspvar.h 120 u_char gain[SB_NDEVS][2]; /* kept in input levels */ member in struct:sbdsp_softc
  /src/external/bsd/ntp/dist/ntpd/
refclock_irig.c 67 * An automatic gain control feature provides protection against
92 * these fields are the carrier amplitude (0-3000), codec gain (0-255),
141 * the monitor gain is set t a default value. Fudgetime2 is used as a
232 int gain; /* codec gain */ member in struct:irigunit
233 int mongain; /* codec monitor gain */
359 up->gain = 127;
466 * Once each second, determine the IRIG format and gain.
484 * Set the input port and monitor gain for the next buffer.
951 up->maxsignal, up->gain, up->modndx
    [all...]
refclock_wwv.c 73 * the monitor gain is set to a default value.
116 #define DGAIN 5. /* subcarrier gain */
505 int gain; /* audio gain */ member in struct:chan
530 int gain; /* codec gain */ member in struct:wwvunit
531 int mongain; /* codec monitor gain */
854 * Set the input port and monitor gain for the next buffer.
1242 * not in minute sync, fiddle the codec gain. Note the SNR is
1358 up->status, up->gain, sp->refid
    [all...]
refclock_chu.c 151 * the audio driver is compiled, the current gain (0-255) and relative
153 * should be set so that the gain is somewhere near the middle of the
170 * agc audio gain (0 - 255)
186 * monitoring of the input signal. For this purpose, the monitor gain is
235 #define AGAIN 6. /* baseband gain */
360 int gain; /* codec gain (modem only) */ member in struct:chuunit
377 int mongain; /* codec monitor gain */
546 up->gain = 127;
683 * increase the gain a tad; if the clips are too high,
    [all...]
  /src/external/gpl3/gcc/dist/gcc/
fwprop.cc 143 int gain; local
148 gain = address_cost (XEXP (mem, 0), GET_MODE (mem),
151 gain -= address_cost (XEXP (mem, 0), GET_MODE (mem),
158 if (gain == 0)
160 gain = set_src_cost (XEXP (mem, 0), VOIDmode, speed);
162 gain -= set_src_cost (XEXP (mem, 0), VOIDmode, speed);
166 return (gain > 0);
loop-invariant.cc 996 gain much in practice. */
1455 /* Calculates gain for eliminating invariant INV. REGS_USED is the number
1537 /* Finds invariant with best gain for moving. Returns the gain, stores
1549 int i, gain = 0, again; local
1563 if (again > gain)
1565 gain = again;
1578 return gain;
1584 set_move_mark (unsigned invno, int gain)
1598 if (gain >= 0
1617 int gain; local
    [all...]
  /src/external/gpl3/gcc.old/dist/gcc/
fwprop.cc 143 int gain; local
148 gain = address_cost (XEXP (mem, 0), GET_MODE (mem),
151 gain -= address_cost (XEXP (mem, 0), GET_MODE (mem),
158 if (gain == 0)
160 gain = set_src_cost (XEXP (mem, 0), VOIDmode, speed);
162 gain -= set_src_cost (XEXP (mem, 0), VOIDmode, speed);
166 return (gain > 0);
loop-invariant.cc 996 gain much in practice. */
1455 /* Calculates gain for eliminating invariant INV. REGS_USED is the number
1537 /* Finds invariant with best gain for moving. Returns the gain, stores
1549 int i, gain = 0, again; local
1563 if (again > gain)
1565 gain = again;
1578 return gain;
1584 set_move_mark (unsigned invno, int gain)
1598 if (gain >= 0
1617 int gain; local
    [all...]
  /src/sys/dev/i2c/
tsllux.c 268 /* Auto-gain is a software feature; no need for I2C. */
426 SYSCTL_DESCR("auto-gain algorithm enabled"),
433 CTLFLAG_PERMANENT|CTLFLAG_READWRITE, CTLTYPE_INT, "gain",
434 SYSCTL_DESCR("sensor gain"), tsllux_sysctl_gain, 0,
579 tsllux_set_gain0(struct tsllux_softc *sc, uint8_t gain)
584 sc->sc_itime | gain)) != 0)
587 sc->sc_gain = gain;
592 tsllux_set_gain(struct tsllux_softc *sc, uint8_t gain)
596 switch (gain) {
608 if ((error = tsllux_set_gain0(sc, gain)) != 0
    [all...]
  /src/sys/arch/mvme68k/stand/sboot/
oc_cksum.s 87 | it would clearly be a gain to "inline" this routine -- the
89 | However, in absolute terms, inlining would only gain 10us per
91 | enough gain to be worth the effort.
  /src/sys/compat/sunos/
sunos.h 132 u_int gain; member in struct:sunos_audio_prinfo
  /src/sys/arch/m68k/m68k/
oc_cksum.s 83 | it would clearly be a gain to "inline" this routine -- the
85 | However, in absolute terms, inlining would only gain 10us per
87 | enough gain to be worth the effort.
  /src/tests/dev/audio/
audiotest.c 1540 /* gain */
1558 /* gain */
1628 /* gain */
1646 /* gain */
5503 * Check whether gain can be obtained/set.
5504 * And the gain should work with rich mixer.
5514 int gain; local
5551 /* Check ai.play.gain */
5554 XP_EQ(master, ai.play.gain);
5559 gain = 255
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/i2c/
ch7006_mode.c 211 int gain; local
217 gain = 76;
221 gain = 71;
226 black_level = round_fixed(norm->black_level*26625)/gain;
  /src/external/lgpl3/gmp/dist/mpn/x86/k6/
divrem_1.asm 52 C so it seems there's nothing to gain by rearranging the loop. Pairing the
53 C mov and loop instructions was found to gain nothing.
  /src/external/bsd/ntp/dist/util/
tg.c 338 info.play.gain = level;
343 printf("port %d gain %d rate %d chan %d prec %d encode %d\n",
344 info.play.port, info.play.gain, info.play.sample_rate,
  /src/sys/dev/ic/
ad1848.c 564 u_char reg, gain; local
570 gain = (gp->left * (GAIN_22_5 + 1)) / (AUDIO_MAX_GAIN + 1);
573 ad_write(sc, SP_LEFT_INPUT_CONTROL, (gain & 0x0f) | reg);
575 gain = (gp->right * (GAIN_22_5 + 1)) / (AUDIO_MAX_GAIN + 1);
578 ad_write(sc, SP_RIGHT_INPUT_CONTROL, (gain & 0x0f) | reg);
  /src/sys/dev/audio/
audio.c 5644 /* If there are multiple tracks, do auto gain control */
5714 * Do auto gain control.
7146 * ai.{play,record}.gain (R/W)
7148 * It is historical reason that the gain is connected to HW mixer.
7159 * It specifies the recording monitor gain(?) of HW mixer.
7296 if (SPECIFIED(ai->play.gain))
7297 SPRINTF(buf, ",play.gain=%d", ai->play.gain);
7298 if (SPECIFIED(ai->record.gain))
7299 SPRINTF(buf, ",record.gain=%d", ai->record.gain)
7808 int gain; local
9143 u_int gain; local
9174 u_int gain, newgain; local
9199 u_int gain, newgain; local
    [all...]

Completed in 45 milliseconds

1 2