/linux/Documentation/devicetree/bindings/sound/ |
H A D | realtek,rt5677.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Animesh Agarwal <animeshagarwal28@gmail.com> 30 - $ref: dai-common.yaml# 42 gpio-controller: true 44 '#gpio-cells': 47 realtek,pow-ldo2-gpio: 51 realtek,reset-gpio: 55 realtek,gpio-config: [all …]
|
H A D | dialog,da7219.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - David Rau <David.Rau.opensource@dm.renesas.com> 13 The DA7219 is an ultra low-power audio codec with 14 in-built advanced accessory detection (AAD) for mobile 16 sample rates up to 96 kHz at 24-bit resolution. 28 VDD-supply: 32 VDDMIC-supply: 36 VDDIO-supply: [all …]
|
H A D | cirrus,cs48l32.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - patches@opensource.cirrus.com 13 The CS48L32 is a high-performance low-power audio DSP for smartphones and 15 DSP with a variety of power-efficient fixed-function audio processors. 19 include/dt-bindings/sound/cs48l32.yaml 22 - $ref: /schemas/spi/spi-peripheral-props.yaml# 23 - $ref: dai-common.yaml# 28 - cirrus,cs48l32 [all …]
|
/linux/sound/soc/codecs/ |
H A D | tlv320aic3x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * --------------------------------------- 17 * MONO_LOUT -> N/A | MONO_LOUT -> N/A 18 * | IN1L -> LINE1L 19 * | IN1R -> LINE1R 20 * | IN2L -> LINE2L 21 * | IN2R -> LINE2R 22 * | MIC3L/R -> N/A 23 * truncated internal functionality in 25 * --------------------------------------- [all …]
|
H A D | es8316.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * es8316.c -- es8316 ALSA SoC audio driver 6 * Authors: David Yang <yangxiaohua@everest-semi.com>, 21 #include <sound/soc-dapm.h> 26 /* In slave mode at single speed, the codec is documented as accepting 5 52 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9600, 50, 1); 53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9600, 50, 1); 54 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_max_gain_tlv, -650, 150, 0); 55 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_min_gain_tlv, -1200, 150, 0); 58 0, 10, TLV_DB_SCALE_ITEM(-1650, 150, 0), [all …]
|
H A D | es8311.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * es8311.c -- es8311 ALSA SoC audio driver 38 static const DECLARE_TLV_DB_SCALE(es8311_adc_vol_tlv, -9550, 50, 0); 68 0, 1, TLV_DB_SCALE_ITEM(-3010, 600, 0), 69 2, 3, TLV_DB_SCALE_ITEM(-2060, 250, 0), 70 4, 5, TLV_DB_SCALE_ITEM(-1610, 160, 0), 71 6, 7, TLV_DB_SCALE_ITEM(-1320, 120, 0), 72 8, 9, TLV_DB_SCALE_ITEM(-1100, 90, 0), 73 10, 11, TLV_DB_SCALE_ITEM(-930, 80, 0), 74 12, 15, TLV_DB_SCALE_ITEM(-780, 60, 0), [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"}; 117 SOC_DAPM_SINGLE("Line in loopback Switch", ML26124_SPK_AMP_OUT, 3, 1, 123 static const char * const ml26124_input_select[] = {"Analog MIC SingleEnded in", [all …]
|
H A D | jz4725b.c | 1 // SPDX-License-Identifier: GPL-2.0 167 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(jz4725b_dac_tlv, -2250, 150, 0); 169 0, 11, TLV_DB_SCALE_ITEM(-2250, 0, 0), 170 12, 31, TLV_DB_SCALE_ITEM(-2250, 150, 0), 174 0, 11, TLV_DB_SCALE_ITEM(-3350, 200, 0), 175 12, 23, TLV_DB_SCALE_ITEM(-1050, 100, 0), 181 "Single Ended", "Differential", 199 SOC_DOUBLE_R_TLV("Mixer Line In Bypass Playback Volume", 204 SOC_DOUBLE_R_TLV("Mixer Mic 1 Bypass Playback Volume", 209 SOC_DOUBLE_R_TLV("Mixer Mic 2 Bypass Playback Volume", [all …]
|
H A D | wm8903.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8903.c -- WM8903 ALSA SoC Audio driver 5 * Copyright 2008-12 Wolfson Microelectronics 6 * Copyright 2011-2012 NVIDIA, Inc. 11 * - TDM mode configuration. 41 { 4, 0x0018 }, /* R4 - Bias Control 0 */ 42 { 5, 0x0000 }, /* R5 - VMID Control 0 */ 43 { 6, 0x0000 }, /* R6 - Mic Bias Control 0 */ 44 { 8, 0x0001 }, /* R8 - Analogue DAC 0 */ 45 { 10, 0x0001 }, /* R10 - Analogue ADC 0 */ [all …]
|
H A D | da7213.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 34 /* -54dB */ 35 0x0, 0x11, TLV_DB_SCALE_ITEM(-5400, 0, 0), 36 /* -52.5dB to 15dB */ 37 0x12, 0x3f, TLV_DB_SCALE_ITEM(-5250, 150, 0) 42 /* -78dB to 12dB */ 43 0x08, 0x7f, TLV_DB_SCALE_ITEM(-7800, 75, 0) 52 static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, -600, 600, 0); 53 static const DECLARE_TLV_DB_SCALE(mixin_gain_tlv, -450, 150, 0); 54 static const DECLARE_TLV_DB_SCALE(eq_gain_tlv, -1050, 150, 0); [all …]
|
H A D | tlv320adcx140.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ 40 "ti,gpo-config-1", 41 "ti,gpo-config-2", 42 "ti,gpo-config-3", 43 "ti,gpo-config-4", 162 /* Digital Volume control. From -100 to 27 dB in 0.5 dB steps */ 163 static DECLARE_TLV_DB_SCALE(dig_vol_tlv, -10050, 50, 0); 165 /* ADC gain. From 0 to 42 dB in 1 dB steps */ 168 /* DRE Level. From -12 dB to -66 dB in 1 dB steps */ [all …]
|
H A D | ab8500-codec.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2012 8 * for ST-Ericsson. 14 * for ST-Ericsson. 29 #include <linux/mfd/abx500/ab8500-sysctrl.h> 30 #include <linux/mfd/abx500/ab8500-codec.h> 39 #include <sound/soc-dapm.h> 42 #include "ab8500-codec.h" 56 /* Nr of FIR/IIR-coeff banks in ANC-block */ 114 /* Private data for AB8500 device-driver */ [all …]
|
H A D | da7218.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * da7218.c - DA7218 ALSA SoC Codec Driver 22 #include <sound/soc-dapm.h> 37 static const DECLARE_TLV_DB_SCALE(da7218_mic_gain_tlv, -600, 600, 0); 38 static const DECLARE_TLV_DB_SCALE(da7218_mixin_gain_tlv, -450, 150, 0); 39 static const DECLARE_TLV_DB_SCALE(da7218_in_dig_gain_tlv, -8325, 75, 0); 40 static const DECLARE_TLV_DB_SCALE(da7218_ags_trigger_tlv, -9000, 600, 0); 42 static const DECLARE_TLV_DB_SCALE(da7218_alc_threshold_tlv, -9450, 150, 0); 47 static const DECLARE_TLV_DB_SCALE(da7218_dmix_gain_tlv, -4200, 150, 0); 50 static const DECLARE_TLV_DB_SCALE(da7218_dgs_trigger_tlv, -9450, 150, 0); [all …]
|
/linux/include/linux/platform_data/ |
H A D | adau17x1.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright 2011-2014 Analog Devices Inc. 6 * Author: Lars-Peter Clausen <lars@metafoo.de> 13 * enum adau17x1_micbias_voltage - Microphone bias voltage 23 * enum adau1761_digmic_jackdet_pin_mode - Configuration of the JACKDET/MICIN pin 37 * adau1761_jackdetect_debounce_time - Jack insertion detection debounce time 51 * enum adau1761_output_mode - Output mode configuration 63 * struct adau1761_platform_data - ADAU1761 Codec driver platform data 64 * @input_differential: If true the input pins will be configured in 65 * differential mode. [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | rockchip,rk817.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chris Zhong <zyw@rock-chips.com> 11 - Zhang Qing <zhangqing@rock-chips.com> 21 - rockchip,rk809 22 - rockchip,rk817 30 '#clock-cells': 32 See <dt-bindings/clock/rockchip,rk808.h> for clock IDs. 39 clock-names: [all …]
|
/linux/sound/soc/sunxi/ |
H A D | sun50i-codec-analog.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * found in Allwinner's A64 SoC. 6 * Copyright (C) 2016 Chen-Yu Tsai <wens@csie.org> 10 * Based on sun8i-codec-analog.c 22 #include <sound/soc-dapm.h> 25 #include "sun8i-adda-pr-regmap.h" 139 SOC_DAPM_DOUBLE_R("Line In Playback Switch", 163 SOC_DAPM_DOUBLE_R("Line In Capture Switch", 178 -450, 150, 0); 184 static const DECLARE_TLV_DB_SCALE(sun50i_codec_hp_vol_scale, -6300, 100, 1); [all …]
|
H A D | sun8i-codec-analog.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * found in Allwinner's A31s, A23, A33 and H3 SoCs. 6 * Copyright 2016 Chen-Yu Tsai <wens@csie.org> 17 #include <sound/soc-dapm.h> 20 #include "sun8i-adda-pr-regmap.h" 125 SOC_DAPM_DOUBLE_R("Line In Playback Switch", 165 SOC_DAPM_DOUBLE_R("Line In Capture Switch", 197 -450, 150, 0); 204 /* Mixer pre-gain */ 241 /* Mic input path */ [all …]
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3326-anbernic-rg351m.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/pinctrl/rockchip.h> 21 stdout-path = "serial2:115200n8"; 25 compatible = "pwm-backlight"; 26 power-supply = <&vcc_bl>; 31 * LED is a tri-state. Driven high it is red, driven low it is [all …]
|
H A D | rk3326-odroid-go.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/pinctrl/rockchip.h> 21 stdout-path = "serial2:115200n8"; 25 compatible = "pwm-backlight"; 26 power-supply = <&vcc_bl>; 30 builtin_gamepad: gpio-keys { [all …]
|
H A D | rk3399-firefly.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 7 #include <dt-bindings/input/linux-event-codes.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/pwm/pwm.h> 10 #include <dt-bindings/usb/pd.h> 14 model = "Firefly-RK3399 Board"; 15 compatible = "firefly,firefly-rk3399", "rockchip,rk3399"; 25 stdout-path = "serial2:1500000n8"; 29 compatible = "pwm-backlight"; [all …]
|
H A D | rk3588s-coolpi-4b.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 5 * https://cool-pi.com/topic/130/coolpi-4b-product-spec-introduction 9 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/leds/common.h> 13 #include <dt-bindings/pinctrl/rockchip.h> 14 #include <dt-bindings/soc/rockchip,vop2.h> 19 compatible = "coolpi,pi-4b", "rockchip,rk3588s"; 27 analog-sound { 28 compatible = "audio-graph-card"; [all …]
|
/linux/sound/soc/intel/boards/ |
H A D | bytcr_rt5640.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * byt_cr_dpcm_rt5640.c - ASoc Machine driver for Intel Byt CR platform 30 #include <sound/soc-acpi.h> 31 #include <dt-bindings/sound/rt5640.h> 33 #include "../atom/sst-atom-controls.h" 34 #include "../common/soc-intel-quirks.h" 36 #define BYT_RT5640_FALLBACK_CODEC_DEV_NAME "i2c-rt5640" 77 #define BYT_RT5640_DIFF_MIC BIT(18) /* default is single-ended */ 98 /* in-diff or dmic-pin + jdsrc + ovcd-th + -sf + jd-inv + terminating entry */ 112 static int quirk_override = -1; [all …]
|
/linux/sound/hda/codecs/cirrus/ |
H A D | cs420x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Cirrus Logic CS420x HD-audio codec 52 /* Vendor-specific processing widget */ 65 * 1 = digital immediate, analog zero-cross 66 * 2 = digtail & analog soft-ramp 67 * 3 = digital soft-ramp, analog zero-cross 70 #define CS_COEF_ADC_MIC_SZC_MODE (3 << 0) /* SZC setup for mic */ 71 #define CS_COEF_ADC_LI_SZC_MODE (3 << 0) /* SZC setup for line-in */ 72 /* PGA mode: 0 = differential, 1 = signle-ended */ 73 #define CS_COEF_ADC_MIC_PGA_MODE (1 << 5) /* PGA setup for mic */ [all …]
|
H A D | cs421x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Cirrus Logic CS421x HD-audio codec 45 /* Vendor-specific processing widget */ 57 * 1 = digital immediate, analog zero-cross 58 * 2 = digtail & analog soft-ramp 59 * 3 = digital soft-ramp, analog zero-cross 62 #define CS_COEF_ADC_MIC_SZC_MODE (3 << 0) /* SZC setup for mic */ 63 #define CS_COEF_ADC_LI_SZC_MODE (3 << 0) /* SZC setup for line-in */ 64 /* PGA mode: 0 = differential, 1 = signle-ended */ 65 #define CS_COEF_ADC_MIC_PGA_MODE (1 << 5) /* PGA setup for mic */ [all …]
|
/linux/sound/pci/ac97/ |
H A D | ac97_patch.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 33 err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&controls[idx], ac97)); in patch_build_controls() 46 kctl = snd_ctl_find_id_mixer(ac97->bus->card, name); in reset_tlv() 47 if (kctl && kctl->tlv.p) in reset_tlv() 48 kctl->tlv.p = tlv; in reset_tlv() 57 mutex_lock(&ac97->page_mutex); in ac97_update_bits_page() 62 mutex_unlock(&ac97->page_mutex); /* unlock paging */ in ac97_update_bits_page() 67 * shared line-in/mic controls 80 ucontrol->value.enumerated.item[0] = ac97->indep_surround; in ac97_surround_jack_mode_get() 87 unsigned char indep = !!ucontrol->value.enumerated.item[0]; in ac97_surround_jack_mode_put() [all …]
|