| /linux/Documentation/devicetree/bindings/sound/ |
| H A D | atmel,sama5d2-pdmic.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/sound/atmel,sama5d2-pdmic.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Claudiu Beznea <claudiu.beznea@microchip.com> 20 const: atmel,sama5d2-pdmic 30 - description: peripheral clock 31 - description: generated clock 33 clock-names: 35 - const: pclk [all …]
|
| /linux/sound/soc/atmel/ |
| H A D | atmel-pdmic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #include "atmel-pdmic.h" 40 .compatible = "atmel,sama5d2-pdmic", 52 struct device_node *np = dev->of_node; in atmel_pdmic_dt_init() 57 return ERR_PTR(-EINVAL); in atmel_pdmic_dt_init() 62 return ERR_PTR(-ENOMEM); in atmel_pdmic_dt_init() 64 if (of_property_read_string(np, "atmel,model", &pdata->card_name)) in atmel_pdmic_dt_init() 65 pdata->card_name = "PDMIC"; in atmel_pdmic_dt_init() 67 if (of_property_read_u32(np, "atmel,mic-min-freq", in atmel_pdmic_dt_init() 68 &pdata->mic_min_freq)) { in atmel_pdmic_dt_init() [all …]
|
| /linux/arch/arm/boot/dts/samsung/ |
| H A D | exynos4412-n710x.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 3 #include "exynos4412-midas.dtsi" 7 model = "Samsung Galaxy Note 2 (GT-N7100, GT-N7105) based on Exynos4412"; 8 chassis-type = "handset"; 17 cam_vdda_reg: voltage-regulator-10 { 18 compatible = "regulator-fixed"; 19 regulator-name = "CAM_SENSOR_CORE_1.2V"; 20 regulator-min-microvolt = <1200000>; 21 regulator-max-microvolt = <1200000>; [all …]
|
| H A D | exynos4412-itop-elite.dts | 1 // SPDX-License-Identifier: GPL-2.0 13 /dts-v1/; 14 #include <dt-bindings/leds/common.h> 15 #include <dt-bindings/pwm/pwm.h> 16 #include <dt-bindings/sound/samsung-i2s.h> 17 #include "exynos4412-itop-scp-core.dtsi" 21 compatible = "topeet,itop4412-elite", "samsung,exynos4412", "samsung,exynos4"; 29 stdout-path = "serial2:115200n8"; 33 compatible = "gpio-leds"; 39 default-state = "off"; [all …]
|
| H A D | exynos4212-tab3.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 11 #include "exynos4412-ppmu-common.dtsi" 12 #include "exynos-mfc-reserved-memory.dtsi" 13 #include <dt-bindings/clock/samsung,s2mps11.h> 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/leds/common.h> 16 #include <dt-bindings/input/gpio-keys.h> 17 #include <dt-bindings/input/input.h> 18 #include <dt-bindings/interrupt-controller/irq.h> [all …]
|
| /linux/sound/soc/codecs/ |
| 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 | 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 /* -7 1551 da7213_set_component_sysclk(struct snd_soc_component * component,int clk_id,int source,unsigned int freq,int dir) da7213_set_component_sysclk() argument [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 …]
|
| H A D | max98090.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * max98090.c -- MAX98090 ALSA SoC Audio driver 5 * Copyright 2011-2012 Maxim Integrated Products 33 { 0x08, 0x00 }, /* 08 Mic/Direct to ADC Quick */ 35 { 0x0A, 0x00 }, /* 0A Analog Mic Loop Quick */ 44 { 0x12, 0x00 }, /* 12 Mic Bias Voltage */ 45 { 0x13, 0x00 }, /* 13 Digital Mic Config */ 46 { 0x14, 0x00 }, /* 14 Digital Mic Mode */ 226 { 0xBE, 0x00 }, /* BE Digital Mic 3 Volume */ 227 { 0xBF, 0x00 }, /* BF Digital Mic 4 Volume */ [all …]
|
| H A D | twl4030.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/mfd/twl4030-audio.h> 64 u8 ctl_cache[TWL4030_REG_PRECKR_CTL - TWL4030_REG_EAR_CTL + 1]; 76 twl4030->ctl_cache[i - TWL4030_REG_EAR_CTL] = byte; in tw4030_init_ctl_cache() 86 return -EIO; in twl4030_read() 95 value = twl4030->ctl_cache[reg - TWL4030_REG_EAR_CTL]; in twl4030_read() 113 if (twl4030->earpiece_enabled) in twl4030_can_write_to_chip() 117 if (twl4030->predrivel_enabled) in twl4030_can_write_to_chip() 121 if (twl4030->predriver_enabled) in twl4030_can_write_to_chip() 125 if (twl4030->carkitl_enabled) in twl4030_can_write_to_chip() [all …]
|
| H A D | da7219.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * da7219.c - DA7219 ALSA SoC Codec Driver 13 #include <linux/clk-provider.h> 26 #include <sound/soc-dapm.h> 33 #include "da7219-aad.h" 41 static const DECLARE_TLV_DB_SCALE(da7219_mic_gain_tlv, -600, 600, 0); 42 static const DECLARE_TLV_DB_SCALE(da7219_mixin_gain_tlv, -450, 150, 0); 43 static const DECLARE_TLV_DB_SCALE(da7219_adc_dig_gain_tlv, -8325, 75, 0); 44 static const DECLARE_TLV_DB_SCALE(da7219_alc_threshold_tlv, -9450, 150, 0); 47 static const DECLARE_TLV_DB_SCALE(da7219_sidetone_gain_tlv, -4200, 300, 0); [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> 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), 59 11, 11, TLV_DB_SCALE_ITEM(-150, 0, 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"}; 90 SOC_SINGLE_TLV("ALC Max Input Volume", ML26124_ALC_MAXMIN_GAIN, 4, 94 SOC_SINGLE_TLV("Playback Limiter Max Input Volume", [all …]
|
| H A D | tscs42xx.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // tscs42xx.c -- TSCS42xx ALSA SoC Audio driver 19 #include <sound/soc-dapm.h> 108 dev_err(component->dev, in plls_locked() 115 } while (count--); in plls_locked() 135 return -EINVAL; in sample_rate_to_pll_freq_out() 153 dev_err(component->dev, in write_coeff_ram() 162 ret = -EIO; in write_coeff_ram() 163 dev_err(component->dev, in write_coeff_ram() 168 ret = regmap_write(tscs42xx->regmap, R_DACCRADDR, addr); in write_coeff_ram() [all …]
|
| H A D | tlv320aic23.c | 1 // SPDX-License-Identifier: GPL-2.0-only 61 static const char *rec_src_text[] = { "Line", "Mic" }; 73 static const DECLARE_TLV_DB_SCALE(out_gain_tlv, -12100, 100, 0); 74 static const DECLARE_TLV_DB_SCALE(input_gain_tlv, -1725, 75, 0); 75 static const DECLARE_TLV_DB_SCALE(sidetone_vol_tlv, -1800, 300, 0); 83 val = (ucontrol->value.integer.value[0] & 0x07); in snd_soc_tlv320aic23_put_volsw() 86 * 000 = -6db in snd_soc_tlv320aic23_put_volsw() 87 * 001 = -9db in snd_soc_tlv320aic23_put_volsw() 88 * 010 = -12db in snd_soc_tlv320aic23_put_volsw() 89 * 011 = -18db (Min) in snd_soc_tlv320aic23_put_volsw() [all …]
|
| H A D | ak4619.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ak4619.c -- Asahi Kasei ALSA SoC Audio driver 33 #define MIC_AMP1 0x04 /* MIC AMP Gain 1 */ 34 #define MIC_AMP2 0x05 /* MIC AMP Gain 2 */ 47 #define DAC_DEMP 0x13 /* DAC De-Emphasis Setting */ 86 /* MIC AMP Gain */ 126 /* DAC De-Emphasis Setting */ 163 * max : 0x00 : +12.0 dB 165 * min : 0xFE : -115.0 dB 168 static const DECLARE_TLV_DB_SCALE(dac_tlv, -11550, 50, 1); [all …]
|
| H A D | wm8940.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8940.c -- WM8940 ALSA Soc Audio driver 155 static const char *wm8940_companding[] = { "Off", "NC", "u-law", "A-law" }; 173 static DECLARE_TLV_DB_SCALE(wm8940_spk_vol_tlv, -5700, 100, 1); 174 static DECLARE_TLV_DB_SCALE(wm8940_att_tlv, -1000, 1000, 0); 175 static DECLARE_TLV_DB_SCALE(wm8940_pga_vol_tlv, -1200, 75, 0); 176 static DECLARE_TLV_DB_SCALE(wm8940_alc_min_tlv, -1200, 600, 0); 178 static DECLARE_TLV_DB_SCALE(wm8940_alc_tar_tlv, -2250, 50, 0); 180 static DECLARE_TLV_DB_SCALE(wm8940_lim_thresh_tlv, -600, 100, 0); 181 static DECLARE_TLV_DB_SCALE(wm8940_adc_tlv, -12750, 50, 1); [all …]
|
| H A D | ak4642.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // ak4642.c -- AK4642/AK4643 ALSA Soc Audio driver 23 #include <linux/clk-provider.h> 79 #define PMADL (1 << 0) /* MIC Amp Lch and ADC Lch Power Management */ 93 #define PMADR (1 << 0) /* MIC L / ADC R Power Management */ 99 #define MGAIN0 (1 << 0) /* MIC amp gain*/ 102 #define LOPS (1 << 6) /* Stero Line-out Power Save Mode */ 151 * max : 0x00 : +12.0 dB 153 * min : 0xFE : -115.0 dB 156 static const DECLARE_TLV_DB_SCALE(out_tlv, -11550, 50, 1); [all …]
|
| H A D | cs42l73.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cs42l73.c -- CS42L73 ALSA Soc Audio driver 26 #include <sound/soc-dapm.h> 54 { 6, 0xF1 }, /* r06 - Power Ctl 1 */ 55 { 7, 0xDF }, /* r07 - Power Ctl 2 */ 56 { 8, 0x3F }, /* r08 - Power Ctl 3 */ 57 { 9, 0x50 }, /* r09 - Charge Pump Freq */ 58 { 10, 0x53 }, /* r0A - Output Load MicBias Short Detect */ 59 { 11, 0x00 }, /* r0B - DMIC Master Clock Ctl */ 60 { 12, 0x00 }, /* r0C - Aux PCM Ctl */ [all …]
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3399-gru.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 5 * Copyright 2016-2017 Google, Inc 8 #include <dt-bindings/input/input.h> 9 #include "rk3399-op1.dtsi" 18 stdout-path = "serial2:115200n8"; 27 * - Rails that only connect to the EC (or devices that the EC talks to) 29 * - Rails _are_ included if the rails go to the AP even if the AP 38 * - The EC controls the enable and the EC always enables a rail as 40 * - The rails are actually connected to each other by a jumper and 45 ppvar_sys: regulator-ppvar-sys { [all …]
|
| /linux/arch/arm/boot/dts/nxp/imx/ |
| H A D | imx6ul-isiot.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 OR X11 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/input/input.h> 18 stdout-path = &uart1; 22 compatible = "pwm-backlight"; 24 brightness-levels = < 0 1 2 3 4 5 6 7 8 9 35 default-brightness-level = <100>; 38 reg_1p8v: regulator-1p8v { 39 compatible = "regulator-fixed"; 40 regulator-name = "1P8V"; [all …]
|
| /linux/sound/pci/pcxhr/ |
| H A D | pcxhr_mix22.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 36 #define PCXHR_INPB(mgr, x) inb((mgr)->port[PCXHR_DSP] + (x)) 37 #define PCXHR_OUTPB(mgr, x, data) outb((data), (mgr)->port[PCXHR_DSP] + (x)) 72 /* values for PCHR_XLX_STATUS register - READ */ 78 /* values for PCHR_XLX_STATUS register - WRITE */ 96 /* values for PCXHR_XLX_SELMIC register - WRIT 310 hr222_pll_freq_register(unsigned int freq,unsigned int * pllreg,unsigned int * realfreq) hr222_pll_freq_register() argument [all...] |
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | omap4-duovero.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include "omap4-mcpdm.dtsi" 11 compatible = "gumstix,omap4-duovero", "ti,omap4430", "ti,omap4"; 14 stdout-path = &uart3; 23 compatible = "ti,abe-twl6040"; 26 ti,mclk-freq = <38400000>; 33 ti,audio-routing = 36 "HSMIC", "Headset Mic", 37 "Headset Mic", "Headset Mic Bias"; 42 compatible = "usb-nop-xceiv"; [all …]
|
| H A D | omap5-board-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/interrupt-controller/arm-gic.h> 15 stdout-path = &uart3; 18 vmain: fixedregulator-vmain { 19 compatible = "regulator-fixed"; 20 regulator-name = "vmain"; 21 regulator-min-microvolt = <5000000>; 22 regulator-max-microvolt = <5000000>; [all …]
|
| /linux/sound/soc/intel/boards/ |
| H A D | sof_rt5682.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright(c) 2019-2020 Intel Corporation. 22 #include <sound/soc-acpi.h> 26 #include "../common/soc-intel-quirks.h" 31 /* Driver-specific board quirks: from bit 0 to 7 */ 40 sof_rt5682_quirk = (unsigned long)id->driver_data; in sof_rt5682_quirk_cb() 49 DMI_MATCH(DMI_PRODUCT_NAME, "Minnowboard Max"), 57 DMI_MATCH(DMI_PRODUCT_NAME, "UP-CHT01"), 74 DMI_MATCH(DMI_OEM_STRING, "AUDIO-MAX98373_ALC5682I_I2S_UP4"), 86 DMI_MATCH(DMI_OEM_STRING, "AUDIO-ADL_MAX98373_ALC5682I_I2S"), [all …]
|