/openbmc/linux/sound/soc/codecs/ |
H A D | tlv320adcx140.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ 41 "ti,gpo-config-1", 42 "ti,gpo-config-2", 43 "ti,gpo-config-3", 44 "ti,gpo-config-4", 163 /* Digital Volume control. From -100 to 27 dB in 0.5 dB steps */ 164 static DECLARE_TLV_DB_SCALE(dig_vol_tlv, -10050, 50, 0); 166 /* ADC gain. From 0 to 42 dB in 1 dB steps */ 169 /* DRE Level. From -12 dB to -66 dB in 1 dB steps */ [all …]
|
H A D | ml26124.c | 1 // SPDX-License-Identifier: GPL-2.0-only 53 static const DECLARE_TLV_DB_SCALE(digital_tlv, -7150, 50, 0); 55 static const DECLARE_TLV_DB_SCALE(alclvl, -2250, 150, 0); 56 static const DECLARE_TLV_DB_SCALE(mingain, -1200, 600, 0); 57 static const DECLARE_TLV_DB_SCALE(maxgain, -675, 600, 0); 58 static const DECLARE_TLV_DB_SCALE(boost_vol, -1200, 75, 0); 60 static const char * const ml26124_companding[] = {"16bit PCM", "u-law", 61 "A-law"}; 88 SOC_SINGLE_TLV("ALC Min Input Volume", ML26124_ALC_MAXMIN_GAIN, 0, 90 SOC_SINGLE_TLV("ALC Max Input Volume", ML26124_ALC_MAXMIN_GAIN, 4, [all …]
|
H A D | ssm2602.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 * Author: Cliff Cai <Cliff.Cai@analog.com> 9 * Copyright 2008 Analog Devices Inc. 51 #define LINVOL_LIN_ENABLE_MUTE 0x080 /* Left Channel Input Mute … 52 #define LINVOL_LRIN_BOTH 0x100 /* Left Channel Line Input Volume update … 56 #define RINVOL_RIN_ENABLE_MUTE 0x080 /* Right Channel Input Mute … 57 #define RINVOL_RLIN_BOTH 0x100 /* Right Channel Line Input Volume update … 70 #define APANA_ENABLE_MIC_BOOST 0x001 /* Primary Microphone Amplifier gain booster contr… 73 #define APANA_ENABLE_BYPASS 0x008 /* Line input bypass to line output … 77 #define APANA_ENABLE_MIC_BOOST2 0x100 /* Secondary Microphone Amplifier gain booster con… [all …]
|
H A D | idt821034.c | 1 // SPDX-License-Identifier: GPL-2.0 21 u16 gain; member 28 u8 spi_tx_buf; /* Cannot use stack area for SPI (dma-safe memory) */ 29 u8 spi_rx_buf; /* Cannot use stack area for SPI (dma-safe memory) */ 55 .tx_buf = &idt821034->spi_tx_buf, in idt821034_8bit_write() 59 .tx_buf = &idt821034->spi_tx_buf, in idt821034_8bit_write() 64 idt821034->spi_tx_buf = val; in idt821034_8bit_write() 66 dev_vdbg(&idt821034->spi->dev, "spi xfer wr 0x%x\n", val); in idt821034_8bit_write() 68 return spi_sync_transfer(idt821034->spi, xfer, 2); in idt821034_8bit_write() 85 .tx_buf = &idt821034->spi_tx_buf, in idt821034_8bit_read() [all …]
|
/openbmc/linux/drivers/comedi/drivers/ |
H A D | dt2811.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * COMEDI - Linux Control and Measurement Device Interface 13 * Devices: [Data Translation] DT2811-PGL (dt2811-pgl), DT2811-PGH (dt2811-pgh) 17 * [0] - I/O port base address 18 * [1] - IRQ (optional, needed for async command support) 19 * [2] - A/D reference (# of analog inputs) 20 * 0 = single-ended (16 channels) 22 * 2 = pseudo-differential (16 channels) 23 * [3] - A/D range (deprecated, see below) 24 * [4] - D/A 0 range (deprecated, see below) [all …]
|
H A D | ii_pci20kc.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Driver for Intelligent Instruments PCI-20001C carrier board and modules. 6 * Copyright (C) 2000 Markus Kempf <kempf@matsci.uni-sb.de> 12 * Description: Intelligent Instruments PCI-20001C carrier board 13 * Devices: [Intelligent Instrumentation] PCI-20001C (ii_pci20kc) 14 * Author: Markus Kempf <kempf@matsci.uni-sb.de> 17 * Supports the PCI-20001C-1a and PCI-20001C-2a carrier boards. The 18 * -2a version has 32 on-board DIO channels. Three add-on modules 21 * Supported add-on modules: 22 * PCI-20006M-1 1 channel, 16-bit analog output module [all …]
|
H A D | das1800.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Comedi driver for Keithley DAS-1700/DAS-1800 series boards 6 * COMEDI - Linux Control and Measurement Device Interface 14 * Devices: [Keithley Metrabyte] DAS-1701ST (das-1701st), 15 * DAS-1701ST-DA (das-1701st-da), DAS-1701/AO (das-1701ao), 16 * DAS-1702ST (das-1702st), DAS-1702ST-DA (das-1702st-da), 17 * DAS-1702HR (das-1702hr), DAS-1702HR-DA (das-1702hr-da), 18 * DAS-1702/AO (das-1702ao), DAS-1801ST (das-1801st), 19 * DAS-1801ST-DA (das-1801st-da), DAS-1801HC (das-1801hc), 20 * DAS-1801AO (das-1801ao), DAS-1802ST (das-1802st), [all …]
|
H A D | das08.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * COMEDI - Linux Control and Measurement Device Interface 27 * SIGN==0 for negative input, SIGN==1 for positive input. 29 * complete, MSB[7] is an "over-range" bit. 38 * input (which may be jumpered to the pacer output). It is cleared by 41 #define DAS08_STATUS_IRQ BIT(3) /* latched interrupt input */ 56 * (R/W) programmable AI gain ("PGx" and "AOx" boards): 57 * + bits 3..0 (R/W) show/set the gain for the current AI mux channel 65 /* (W) analog output l.s.b. registers for 2 channels ("JR" boards) */ 67 /* (W) analog output m.s.b. registers for 2 channels ("JR" boards) */ [all …]
|
H A D | ni_atmio16d.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Comedi driver for National Instruments AT-MIO16D board 9 * Description: National Instruments AT-MIO-16D 12 * Devices: [National Instruments] AT-MIO-16 (atmio16), AT-MIO-16D (atmio16d) 15 * [0] - I/O port 16 * [1] - MIO irq (0 == no irq; or 3,4,5,6,7,9,10,11,12,14,15) 17 * [2] - DIO irq (0 == no irq; or 3,4,5,6,7,9) 18 * [3] - DMA1 channel (0 == no DMA; or 5,6,7) 19 * [4] - DMA2 channel (0 == no DMA; or 5,6,7) 20 * [5] - a/d mux (0=differential; 1=single) [all …]
|
H A D | rtd520.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * COMEDI - Linux Control and Measurement Device Interface 13 * Devices: [Real Time Devices] DM7520HR-1 (DM7520), DM7520HR-8, 14 * PCI4520 (PCI4520), PCI4520-8 16 * Status: Works. Only tested on DM7520-8. Not SMP safe. 24 * The PCI4520 is a PCI card. The DM7520 is a PC/104-plus card. 26 * 8/16 12 bit ADC with FIFO and channel gain table 31 * 2 bits input 38 * The DM7520 has slightly fewer features (fewer gain steps). 40 * These boards can support external multiplexors and multi-board [all …]
|
/openbmc/linux/sound/mips/ |
H A D | ad1843.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2003 Vivien Chappelier <vivien.chappelier@linux-mips.org> 35 ad1843_PDNO = { 0, 14, 1 }, /* Converter Power-Down Flag */ 37 ad1843_RIG = { 2, 0, 4 }, /* Right ADC Input Gain */ 38 ad1843_RMGE = { 2, 4, 1 }, /* Right ADC Mic Gain Enable */ 40 ad1843_LIG = { 2, 8, 4 }, /* Left ADC Input Gain */ 41 ad1843_LMGE = { 2, 12, 1 }, /* Left ADC Mic Gain Enable */ 43 ad1843_RD2M = { 3, 0, 5 }, /* Right DAC 2 Mix Gain/Atten */ 45 ad1843_LD2M = { 3, 8, 5 }, /* Left DAC 2 Mix Gain/Atten */ 47 ad1843_RX1M = { 4, 0, 5 }, /* Right Aux 1 Mix Gain/Atten */ [all …]
|
/openbmc/linux/sound/soc/sunxi/ |
H A D | sun50i-codec-analog.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * This driver supports the analog controls for the internal codec 6 * Copyright (C) 2016 Chen-Yu Tsai <wens@csie.org> 10 * Based on sun8i-codec-analog.c 23 #include <sound/soc-dapm.h> 26 #include "sun8i-adda-pr-regmap.h" 28 /* Codec analog control register offsets and bit fields */ 172 -450, 150, 0); 178 static const DECLARE_TLV_DB_SCALE(sun50i_codec_hp_vol_scale, -6300, 100, 1); 182 2, 31, TLV_DB_SCALE_ITEM(-4350, 150, 0), [all …]
|
H A D | sun8i-codec-analog.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * This driver supports the analog controls for the internal codec 6 * Copyright 2016 Chen-Yu Tsai <wens@csie.org> 18 #include <sound/soc-dapm.h> 21 #include "sun8i-adda-pr-regmap.h" 23 /* Codec analog control register offsets and bit fields */ 198 -450, 150, 0); 205 /* Mixer pre-gain */ 210 /* Microphone Amp boost gain */ 216 SOC_SINGLE_TLV("ADC Gain Capture Volume", SUN8I_ADDA_ADC_AP_EN, [all …]
|
/openbmc/linux/drivers/media/i2c/ |
H A D | saa711x_regs.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * saa711x - Philips SAA711x video decoder register specifications 10 /* Video Decoder - Frontend part */ 16 /* Video Decoder - Decoder part */ 196 /* SAA7113 bit-masks */ 230 /* Video Decoder - Frontend part: R_01_INC_DELAY to R_05_INPUT_CNTL_4 */ 234 "Analog input control 1"}, 236 "Analog input control 2"}, 238 "Analog input control 3"}, 240 "Analog input control 4"}, [all …]
|
H A D | adv7183_regs.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * adv7183 - Analog Devices ADV7183 video decoder registers 5 * Copyright (c) 2011 Analog Devices Inc. 11 #define ADV7183_IN_CTRL 0x00 /* Input control */ 27 #define ADV7183_ANAL_CLAMP_CTRL 0x14 /* Analog clamp control */ 34 #define ADV7183_MISC_GAIN_CTRL 0x2B /* Misc gain control */ 36 #define ADV7183_CHRO_GAIN_CTRL_1 0x2D /* Chroma gain control 1 */ 37 #define ADV7183_CHRO_GAIN_CTRL_2 0x2E /* Chroma gain control 2 */ 38 #define ADV7183_LUMA_GAIN_CTRL_1 0x2F /* Luma gain control 1 */ 39 #define ADV7183_LUMA_GAIN_CTRL_2 0x30 /* Luma gain control 2 */ [all …]
|
H A D | imx274.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * imx274.c - IMX274 CMOS Image Sensor driver 23 #include <linux/v4l2-mediabus.h> 26 #include <media/v4l2-ctrls.h> 27 #include <media/v4l2-device.h> 28 #include <media/v4l2-fwnode.h> 29 #include <media/v4l2-subdev.h> 44 * The input gain is shifted by IMX274_GAIN_SHIFT to get 45 * decimal number. The real gain is 49 #define IMX274_GAIN_SHIFT_MASK ((1 << IMX274_GAIN_SHIFT) - 1) [all …]
|
/openbmc/linux/drivers/media/i2c/ccs/ |
H A D | ccs-quirk.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/media/i2c/ccs/ccs-quirk.c 8 * Copyright (C) 2011--2012 Nokia Corporation 15 #include "ccs-limits.h" 20 struct i2c_client *client = v4l2_get_subdevdata(&sensor->src->sd); in ccs_write_addr_8s() 23 for (; len > 0; len--, regs++) { in ccs_write_addr_8s() 24 rval = ccs_write_addr(sensor, regs->reg, regs->val); in ccs_write_addr_8s() 26 dev_err(&client->dev, in ccs_write_addr_8s() 28 rval, regs->reg, regs->val); in ccs_write_addr_8s() 38 if (sensor->minfo.revision_number < 0x0300) in jt8ew9_limits() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/frequency/ |
H A D | adi,adrf6780.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Antoniu Miclaus <antoniu.miclaus@analog.com> 16 https://www.analog.com/en/products/adrf6780.html 21 - adi,adrf6780 26 spi-max-frequency: 34 clock-names: 36 - const: lo_in 38 clock-output-names: [all …]
|
/openbmc/linux/drivers/iio/addac/ |
H A D | stx104.c | 1 // SPDX-License-Identifier: GPL-2.0-only 87 * struct stx104_iio - IIO device private data structure 89 * @aio_data_map: Regmap for analog I/O data 90 * @aio_ctl_map: Regmap for analog I/O control 182 err = regmap_read(priv->aio_ctl_map, STX104_ADC_CONFIGURATION, &adc_config); in stx104_read_raw() 189 if (chan->output) { in stx104_read_raw() 190 err = regmap_read(priv->aio_data_map, STX104_DAC_OFFSET(chan->channel), in stx104_read_raw() 198 mutex_lock(&priv->lock); in stx104_read_raw() 201 err = regmap_write(priv->aio_ctl_map, STX104_ADC_CHANNEL, in stx104_read_raw() 202 STX104_SINGLE_CHANNEL(chan->channel)); in stx104_read_raw() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | ti,ads131e08.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Texas Instruments ADS131E0x 4-, 6- and 8-Channel ADCs 10 - Jonathan Cameron <jic23@kernel.org> 14 24-bit, delta-sigma, analog-to-digital converters (ADCs) with a 15 built-in programmable gain amplifier (PGA), internal reference 24 - ti,ads131e04 25 - ti,ads131e06 26 - ti,ads131e08 [all …]
|
H A D | adi,max11410.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 # Copyright 2022 Analog Devices Inc. 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Analog Devices MAX11410 ADC device driver 11 - Ibrahim Tilki <Ibrahim.Tilki@analog.com> 14 Bindings for the Analog Devices MAX11410 ADC device. Datasheet can be 21 - adi,max11410 30 interrupt-names: 34 - enum: [gpio0, gpio1] [all …]
|
/openbmc/linux/Documentation/sound/designs/ |
H A D | control-names.rst | 8 --------------- 63 Phone Input 68 Headset Mic mic part of combined headset jack - 4-pin 70 Headphone Mic mic part of either/or - 3-pin headphone or mic 71 Line input only, use "Line Out" for output 79 Analog Loopback D/A -> A/D loopback 80 Digital Loopback playback -> capture loopback - 81 without analog path 98 ----------------------- 102 [Analogue|Digital] Capture Switch aka input gain switch [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/proximity/ |
H A D | semtech,sx9324.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Gwendal Grignou <gwendal@chromium.org> 11 - Daniel Campello <campello@chromium.org> 17 - $ref: /schemas/iio/iio.yaml# 32 vdd-supply: 35 svdd-supply: 38 "#io-channel-cells": 41 semtech,ph0-pin: [all …]
|
/openbmc/linux/sound/pci/echoaudio/ |
H A D | echoaudio.h | 3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 22 MA 02111-1307, USA. 26 Translation from C++ and adaptation for use in ALSA-Driver 34 +-----------+ 35 record | |<-------------------- Inputs 36 <-------| | | 39 ------->| | +-------+ 40 play | |--->|monitor|-------> Outputs 41 +-----------+ | mixer | [all …]
|
/openbmc/linux/sound/pci/lola/ |
H A D | lola_mixer.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Support for Digigram Lola PCI-e boards 24 pin->nid = nid; in lola_init_pin() 27 dev_err(chip->card->dev, "Can't read wcaps for 0x%x\n", nid); in lola_init_pin() 32 pin->is_analog = false; in lola_init_pin() 34 pin->is_analog = true; in lola_init_pin() 36 pin->is_analog = true; in lola_init_pin() 38 dev_err(chip->card->dev, "Invalid wcaps 0x%x for 0x%x\n", val, nid); in lola_init_pin() 39 return -EINVAL; in lola_init_pin() 42 /* analog parameters only following, so continue in case of Digital pin in lola_init_pin() [all …]
|