/freebsd/lib/libmixer/ |
H A D | mixer.3 | 1 .\"- 2 .\" Copyright (c) 2021-2022 Christos Margiolis <christos@FreeBSD.org> 51 Mixer library (libmixer, -lmixer) 57 .Fn mixer_close "struct mixer *m" 59 .Fn mixer_get_dev "struct mixer *m" "int devno" 61 .Fn mixer_get_dev_byname "struct mixer *m" "name" 75 .Fn mixer_set_vol "struct mixer *m" "mix_volume_t vol" 77 .Fn mixer_set_mute "struct mixer *m" "int opt" 79 .Fn mixer_mod_recsrc "struct mixer *m" "int opt" 83 .Fn mixer_set_dunit "struct mixer *m" "int unit" [all …]
|
H A D | mixer.c | 1 /*- 34 #include "mixer.h" 36 #define BASEPATH "/dev/mixer" 48 if (ioctl(dev->parent_mixer->fd, MIXER_READ(dev->devno), &v) < 0) in _mixer_readvol() 49 return (-1); in _mixer_readvol() 50 dev->vol.left = MIX_VOLNORM(v & 0x00ff); in _mixer_readvol() 51 dev->vol.right = MIX_VOLNORM((v >> 8) & 0x00ff); in _mixer_readvol() 57 * Open a mixer device in `/dev/mixerN`, where N is the number of the mixer. 59 * mixer for pcm0, and so on. 61 * @param name path to mixer device. NULL or "/dev/mixer" for the [all …]
|
H A D | mixer.h | 1 /*- 33 #define MIX_ISDEV(m,n) MIX_ISSET(n, (m)->devmask) 34 #define MIX_ISMUTE(m,n) MIX_ISSET(n, (m)->mutemask) 35 #define MIX_ISREC(m,n) MIX_ISSET(n, (m)->recmask) 36 #define MIX_ISRECSRC(m,n) MIX_ISSET(n, (m)->recsrc) 39 struct mixer; 45 /* User-defined controls */ 56 struct mixer *parent_mixer; /* parent mixer */ 72 struct mixer { struct 75 oss_mixerinfo mi; /* mixer info */ argument [all …]
|
/freebsd/usr.sbin/mixer/ |
H A D | mixer.8 | 1 .\"- 26 .Nm mixer 27 .Nd manipulate soundcard mixer controls 31 .Op Fl d Ar pcmN | N Op Fl V Ar voss_device:mode 43 utility is used to set and display soundcard mixer device controls. 46 .Bl -tag -width "-V voss_device:mode" 48 Print the values for all mixer devices available in the system 58 There is also the possibility of hot-swapping to the new default device if 64 Hot-swapping generally cannot happen with plain 70 mid-track. [all …]
|
H A D | mixer.c | 1 /*- 28 #include <mixer.h> 41 static void initctls(struct mixer *); 42 static void printall(struct mixer *, int); 43 static void printminfo(struct mixer *, int); 44 static void printdev(struct mixer *, int); 45 static void printrecsrc(struct mixer *, int); /* XXX: change name */ 46 static int set_dunit(struct mixer *, int, char *); 58 struct mixer *m; in main() 66 while ((ch = getopt(argc, argv, "ad:f:hosV:")) != -1) { in main() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/iio/frequency/ |
H A D | adi,admfm2000.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Kim Seer Paller <kimseer.paller@analog.com> 16 It consists of a LNA, mixer, IF filter, DSA, and IF amplifier for each down 22 - adi,admfm2000 24 '#address-cells': 27 '#size-cells': 31 "^channel@[0-1]$": 44 adi,mixer-mode: [all …]
|
H A D | adi,admv1014.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schema [all...] |
/freebsd/sys/dev/sound/pcm/ |
H A D | mixer.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org> 5 * Portions Copyright (c) Ryan Beasley <ryan.beasley@gmail.com> - GSoC 2006 40 static MALLOC_DEFINE(M_MIXER, "mixer", "mixer"); 45 "control channel pcm/rec volume, bypassing real mixer device"); 70 * mixer's controls. A change in value indicates that persistent 71 * mixer applications should update their displays. 105 .d_name = "mixer", 117 return snddev->mixer_dev; in mixer_get_devt() [all …]
|
H A D | feeder_chain.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2008-2009 Ariff Abdullah <ariff@FreeBSD.org> 54 int mode; /* chain mode */ member 82 /* 'Lean' mode, signed 16 or 32 bit native endian. */ 130 "feeder chain mode " 144 desc = &(cdesc->desc); in feeder_build_format() 145 desc->type = FEEDER_FORMAT; in feeder_build_format() 146 desc->in = 0; in feeder_build_format() 147 desc->out = 0; in feeder_build_format() [all …]
|
H A D | sound.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org> 5 * Portions Copyright (c) Ryan Beasley <ryan.beasley@gmail.com> - GSoC 2006 9 * Copyright (c) 2024-2025 The FreeBSD Foundation 51 int snd_unit = -1; 53 static int snd_unit_auto = -1; 105 d->flags |= SD_F_MPSAFE; in snd_setup_intr() 118 if (error == 0 && req->newptr != NULL) { in sysctl_hw_snd_default_unit() 144 device_printf(d->dev, "chn_init(%s, %d, %p) failed\n", in pcm_addchan() [all …]
|
H A D | dsp.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org> 5 * Portions Copyright (c) Ryan Beasley <ryan.beasley@gmail.com> - GSoC 2006 8 * Copyright (c) 2024-2025 The FreeBSD Foundation 61 "linux mmap compatibility (-1=force disable 0=auto 1=force enable)"); 68 #define DSP_REGISTERED(x) (PCM_REGISTERED(x) && (x)->dsp_dev != NULL) 125 err = make_dev_s(&devargs, &sc->dsp_dev, "dsp%d", unit); in dsp_make_dev() 141 destroy_dev(d->dsp_dev); in dsp_destroy_dev() 147 if (priv->rdch != NULL && (prio & SD_F_PRIO_RD)) in dsp_lock_chans() [all …]
|
/freebsd/share/man/man4/ |
H A D | snd_emu10kx.4 | 2 .\" Copyright (c) 2003-2007 Yuriy Tsibizov 35 .Bd -ragged -offset indent 43 .Bd -literal -offset indent 60 for details), and MPU401-compatible MIDI I/O controller, which is accessible 68 .Bl -bullet -compact 94 .Bl -bullet -compact 96 Creative Sound Blaster Live!\& 24-Bit, identified by 104 .Qq Li "CA0106-DAT Audigy LS" . 106 All other Creative sound cards with -DAT chipsets. 108 All Creative X-Fi series sound cards. [all …]
|
H A D | pcm.4 | 2 .\" Copyright (c) 2009-2011 Joel Dahl <joel@FreeBSD.org> 39 .Bd -ragged -offset indent 60 driver are: multichannel audio, per-application 74 .Bl -bullet -compact 118 .Xr snd_uaudio 4 (auto-loaded on device plug) 145 .Bl -tag -width ".Va snd_driver_load" -offset indent 164 To define default values for the different mixer channels, 177 re-routing of channels. 198 Commonly used for ear-candy or frequency compensation due to the vast 232 .Bl -tag -width indent [all …]
|
H A D | acpi_ibm.4 | 36 .Bd -ragged -offset indent 43 .Bd -literal -offset indent 80 .Bl -tag -width "subsystem" -offset indent -compact 95 .Bl -tag -width "subsystem" -offset indent -compact 158 .Bl -tag -width indent 160 (read-only) 165 (read-only) 186 .Bl -tag -width indent-two -compact 237 (read-only) 242 .Bl -tag -width indent-two -compact [all …]
|
/freebsd/sys/dev/sound/pci/ |
H A D | envy24.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 29 /* -------------------------------------------------------------------- */ 40 #define PCIR_MT 0x1c /* Professional Multi-Track I/O Base Address */ 48 #define PCIM_LAC_MPU401 0x0008 /* MPU-401 I/O enable */ 60 #define PCIM_LCC_MPUBASE 0x0006 /* MPU-401 base 300h-330h */ 68 #define PCIM_SCFG_MPU 0x20 /* 1(0)/2(1) MPU-401 UART(s) */ 71 #define PCIM_SCFG_ADC 0x0c /* 1-4 stereo ADC connected */ 72 #define PCIM_SCFG_DAC 0x03 /* 1-4 stereo DAC connected */ 74 #define PCIR_ACL 0x61 /* AC-Link Configuration Register */ [all …]
|
H A D | als4000.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 30 * als4000.c - driver for the Avance Logic ALS 4000 chipset. 59 /* ------------------------------------------------------------------------- */ 104 /* ------------------------------------------------------------------------- */ 110 bus_space_write_1(sc->st, sc->sh, ALS_GCR_INDEX, index); in als_gcr_rd() 111 return bus_space_read_4(sc->st, sc->sh, ALS_GCR_DATA); in als_gcr_rd() 117 bus_space_write_1(sc->st, sc->sh, ALS_GCR_INDEX, index); in als_gcr_wr() 118 bus_space_write_4(sc->st, sc->sh, ALS_GCR_DATA, data); in als_gcr_wr() 124 return bus_space_read_1(sc->st, sc->sh, ALS_SB_MPU_IRQ); in als_intr_rd() [all …]
|
H A D | vibes.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 47 /* ------------------------------------------------------------------------- */ 59 /* ------------------------------------------------------------------------- */ 115 /* ------------------------------------------------------------------------- */ 123 return bus_space_read_1(sc->enh_st, sc->enh_sh, reg); in sv_direct_get() 130 bus_space_write_1(sc->enh_st, sc->enh_sh, reg, val); in _sv_direct_set() 134 …device_printf(sc->dev, "sv_direct_set register 0x%02x %d != %d from line %d\n", reg, n, val, line); in _sv_direct_set() 144 bus_space_write_1(sc->enh_st, sc->enh_sh, SV_CM_INDEX, reg); in sv_indirect_get() 145 return bus_space_read_1(sc->enh_st, sc->enh_sh, SV_CM_DATA); in sv_indirect_get() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/sound/ |
H A D | renesas,rsnd.txt | 1 Renesas R-Car sound 7 Renesas R-Car and RZ/G sound is constructed from below modules 11 - SRC : Sampling Rate Converter 12 - CMD 13 - CTU : Channel Transfer Unit 14 - MIX : Mixer 15 - DVC : Digital Volume and Mute Function 25 Multi channel is supported by Multi-SSI, or TDM-SS [all...] |
/freebsd/sys/sys/ |
H A D | soundcard.h | 5 /*- 6 * SPDX-License-Identifier: BSD-2-Clause 8 * Copyright by Hannu Savolainen 1993 / 4Front Technologies 1993-2006 55 * snd-sdk-doc-0.1.ps.gz (gzipped postscript). It contains 122 * number of bytes for a write operation to be non-blocking. 125 * from a character device (default) to a block device. In block mode, 126 * (not to be confused with blocking mode) the main difference for the 128 * block can be read/written to the device, whereas in character mode 130 * devices, character mode makes select almost useless since one byte 133 * Use a size of 0 or 1 to return to character mode. [all …]
|
/freebsd/sys/arm/allwinner/ |
H A D | a10_codec.c | 1 /*- 2 * Copyright (c) 2014-2016 Jared D. McNeill <jmcneill@invisible.ca> 58 /* mixer class */ 84 #define AC_DAC_DPC(_sc) ((_sc)->cfg->DPC) 86 #define AC_DAC_FIFOC(_sc) ((_sc)->cfg->DAC_FIFOC) 110 #define AC_DAC_FIFOS(_sc) ((_sc)->cfg->DAC_FIFOS) 111 #define AC_DAC_TXDATA(_sc) ((_sc)->cfg->DAC_TXDATA) 112 #define AC_ADC_FIFOC(_sc) ((_sc)->cfg->ADC_FIFOC) 124 #define AC_ADC_FIFOS(_sc) ((_sc)->cfg->ADC_FIFOS) 125 #define AC_ADC_RXDATA(_sc) ((_sc)->cfg->ADC_RXDATA) [all …]
|
/freebsd/sys/dev/sound/isa/ |
H A D | sb.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 66 #define DSP_CMD_DAC8 0x14 /* single cycle 8-bit dma out */ 67 #define DSP_CMD_ADC8 0x24 /* single cycle 8-bit dma in */ 70 #define DSP_CMD_DAC8_AUTO 0x1c /* auto 8-bit dma out */ 71 #define DSP_CMD_ADC8_AUTO 0x2c /* auto 8-bit dma out */ 82 #define DSP_CMD_DAC2 0x16 /* 2-bit adpcm dma out (cont) */ 83 #define DSP_CMD_DAC2S 0x17 /* 2-bit adpcm dma out (start) */ 85 #define DSP_CMD_DAC2S_AUTO 0x1f /* auto 2-bit adpcm dma out (start) */ 123 * cmd, mode, len_low, len_high. [all …]
|
/freebsd/sys/arm/allwinner/a64/ |
H A D | sun50i_a64_acodec.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 120 { "allwinner,sun50i-a64-codec-analog", 1}, 131 #define A64CODEC_LOCK(sc) mtx_lock(&(sc)->mtx) 132 #define A64CODEC_UNLOCK(sc) mtx_unlock(&(sc)->mtx) 133 #define A64CODEC_READ(sc, reg) bus_read_4((sc)->res, (reg)) 134 #define A64CODEC_WRITE(sc, reg, val) bus_write_4((sc)->res, (reg), (val)) 148 /* De-assert reset */ in a64_acodec_pr_read() 152 /* Read mode */ in a64_acodec_pr_read() 174 /* De-assert reset */ in a64_acodec_pr_write() [all …]
|
/freebsd/sys/dev/sound/macio/ |
H A D | snapper.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause AND BSD-3-Clause 27 /*- 133 #define SNAPPER_IICADDR 0x6a /* Hard-coded I2C slave addr */ 141 #define SNAPPER_MIXER_L 0x07 /* Mixer left gain (9bytes) */ 142 #define SNAPPER_MIXER_R 0x08 /* Mixer right gain (9bytes) */ 167 #define SNAPPER_MCR1_SM 0x30 /* Output serial port mode */ 177 #define SNAPPER_MCR2_AP 0x02 /* All pass mode */ 178 #define SNAPPER_ACR_ADM 0x80 /* ADC output mode */ 180 #define SNAPPER_ACR_DM 0x0c /* De-emphasis control */ [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/devfreq/ |
H A D | exynos-bus.txt | 4 and sub-blocks in SoC. Most Exynos SoCs share the common architecture 9 is able to measure the current load of sub-blocks. 11 The Exynos SoC includes the various sub-blocks which have the each AXI bus. 13 power line. The power line might be shared among one more sub-blocks. 14 So, we can divide into two type of device as the role of each sub-block. 16 - parent bus device 17 - passive bus device 26 VDD_xxx |--- A block (parent) 27 |--- B block (passive) 28 |--- C block (passive) [all …]
|
/freebsd/libexec/rc/rc.d/ |
H A D | Makefile | 48 mixer \ 69 os-release \ 256 CONSOLEPACKAGE= console-tools 308 CONFS+= ftp-proxy 362 ${fg}MODE?= ${BINMODE}
|