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

1 2

  /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/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/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);
arn9003.c 2509 * 3) Force Tx gain to that of training signal
2610 /* Save Tx gain table. */
2666 /* Compute desired Tx gain. */
2705 int gain; local
2708 * Get desired gain for training signal power (take into account
2711 gain = ar9003_get_desired_txgain(sc, chain, sc->sc_trainpow);
2714 if ((int)MS(sc->sc_txgain[i], AR_PHY_TXGAIN_INDEX) >= gain)
2743 /* Set gain of training signal. */
2824 sc->sc_gain1[chain] = G; /* Save low signal gain. */
3103 /* Make sure forced gain is disabled. *
    [all...]
atw.c 1530 uint16_t gain; local
1563 /* Set the phase-locked loop gain. If RF2 N > 2047, then
1569 gain = __SHIFTIN(((mhz - 374) > 2047) ? 1 : 0, SI4126_GAIN_KP2_MASK);
1571 atw_si4126_write(sc, SI4126_GAIN, gain);
  /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...]
  /src/usr.bin/audio/ctl/
ctl.c 108 { "play.gain", &info.play.gain, UINT, 0 },
127 { "record.gain", &info.record.gain, UINT, 0 },
  /src/sys/sys/
audioio.h 55 u_int gain; /* volume level */ member in struct:audio_prinfo
  /src/sys/dev/pci/
yds.c 1349 const u_int gain = 0x40000000; local
1413 psb->eggainend = htole32(gain);
1417 psb->eggain = htole32(gain);
1429 psb->lchgain = psb->lchgainend = htole32(gain);
1432 psb->rchgain = psb->rchgainend = htole32(gain);
1437 psb->lchgain = psb->rchgain = htole32(gain);
1438 psb->lchgainend = psb->rchgainend = htole32(gain);
if_iwn.c 1732 aprint_normal("chain %d, sample %d: temp=%d gain=%d "
1735 chans[0].samples[c][j].gain,
1743 aprint_normal("chain %d, sample %d: temp=%d gain=%d "
1746 chans[1].samples[c][j].gain,
2430 * XXX Differential gain calibration makes the 6005 firmware
3779 uint8_t power, gain, temp; local
3785 gain = interpolate(chan,
3786 chans[0].num, chans[0].samples[c][1].gain,
3787 chans[1].num, chans[1].samples[c][1].gain, 1);
3791 DPRINTF(("TX chain %d: power=%d gain=%d temp=%d\n"
    [all...]
if_iwnreg.h 1113 int8_t gain[3]; member in struct:iwn_phy_calib_gain
1626 uint8_t gain; member in struct:iwn4965_eeprom_chan_samples::__anon3374
1712 * RF Tx gain values from highest to lowest power (values obtained from
1742 * DSP pre-DAC gain values from highest to lowest power (values obtained
  /src/sys/ufs/lfs/
lfs_vfsops.c 2528 int sbbytes, csbbytes, gain, cgain; local
2691 gain = (newnsegs - oldnsegs);
2694 lfs_sb_addsize(fs, gain * lfs_btofsb(fs, lfs_sb_getssize(fs)));
2695 lfs_sb_adddsize(fs, gain * lfs_btofsb(fs, lfs_sb_getssize(fs))
2697 lfs_sb_addbfree(fs, gain * lfs_btofsb(fs, lfs_sb_getssize(fs))
2700 - gain * lfs_btofsb(fs, lfs_sb_getbsize(fs) / 2)
2704 if (gain > 0) {
2705 lfs_sb_addnclean(fs, gain);
2706 lfs_sb_addavail(fs, gain * lfs_btofsb(fs, lfs_sb_getssize(fs)));
  /src/usr.bin/audio/play/
play.c 529 info.play.gain = volume;
  /src/sys/dev/usb/
if_urtw.c 2775 urtw_8225_setgain(struct urtw_softc *sc, int16_t gain)
2779 urtw_8187_write_phy_ofdm(sc, 0x0d, urtw_8225_gain[gain * 4]);
2780 urtw_8187_write_phy_ofdm(sc, 0x1b, urtw_8225_gain[gain * 4 + 2]);
2781 urtw_8187_write_phy_ofdm(sc, 0x1d, urtw_8225_gain[gain * 4 + 3]);
2782 urtw_8187_write_phy_ofdm(sc, 0x23, urtw_8225_gain[gain * 4 + 1]);
3180 urtw_8225v2_setgain(struct urtw_softc *sc, int16_t gain)
3187 urtw_8187_write_phy_ofdm(sc, 0x0d, gainp[gain * 3]);
3189 urtw_8187_write_phy_ofdm(sc, 0x1b, gainp[gain * 3 + 1]);
3191 urtw_8187_write_phy_ofdm(sc, 0x1d, gainp[gain * 3 + 2]);
  /src/usr.sbin/sysinst/
msg.mi.en 214 the sizes. On most disks, there is little to gain from

Completed in 57 milliseconds

1 2