/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | da7213.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 33 /* -54dB */ 34 0x0, 0x11, TLV_DB_SCALE_ITEM(-5400, 0, 0), 35 /* -52.5dB to 15dB */ 36 0x12, 0x3f, TLV_DB_SCALE_ITEM(-5250, 150, 0) 41 /* -78dB to 12dB */ 42 0x08, 0x7f, TLV_DB_SCALE_ITEM(-7800, 75, 0) 51 static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, -600, 600, 0); 52 static const DECLARE_TLV_DB_SCALE(mixin_gain_tlv, -450, 150, 0); 53 static const DECLARE_TLV_DB_SCALE(eq_gain_tlv, -1050, 150, 0); [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 28 #include <linux/mfd/twl4030-audio.h> 67 u8 ctl_cache[TWL4030_REG_PRECKR_CTL - TWL4030_REG_EAR_CTL + 1]; 79 twl4030->ctl_cache[i - TWL4030_REG_EAR_CTL] = byte; in tw4030_init_ctl_cache() 89 return -EIO; in twl4030_read() 98 value = twl4030->ctl_cache[reg - TWL4030_REG_EAR_CTL]; in twl4030_read() 116 if (twl4030->earpiece_enabled) in twl4030_can_write_to_chip() 120 if (twl4030->predrivel_enabled) in twl4030_can_write_to_chip() 124 if (twl4030->predriver_enabled) in twl4030_can_write_to_chip() 128 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 | 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 | da9055.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 59 /* Input - Gain, Select and Filter Registers */ 72 /* Output - Gain, Select and Filter Registers */ 219 /* MIC bias select bit fields */ 289 0x0, 0x10, TLV_DB_SCALE_ITEM(-5400, 0, 0), 290 /* -54dB to 15dB */ 291 0x11, 0x3f, TLV_DB_SCALE_ITEM(-5400, 150, 0) 296 /* -78dB to 12dB */ 297 0x08, 0x7f, TLV_DB_SCALE_ITEM(-7800, 75, 0) 306 static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, -600, 600, 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> 51 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9600, 50, 1); 52 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9600, 50, 1); 53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_max_gain_tlv, -650, 150, 0); 54 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_min_gain_tlv, -1200, 150, 0); 57 0, 10, TLV_DB_SCALE_ITEM(-1650, 150, 0), 58 11, 11, TLV_DB_SCALE_ITEM(-150, 0, 0), [all …]
|
H A D | wm8971.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8971.c -- WM8971 ALSA SoC Audio driver 104 static const char *wm8971_rline_mux[] = {"Line", "Mic", "NC", "PGA", 107 static const char *wm8971_rpga_sel[] = {"Line", "Mic", "NC", "Differential"}; 159 SOC_ENUM("Treble Cut-off", wm8971_enum[2]), 164 SOC_SINGLE("ALC Max Volume", WM8971_ALC1, 4, 7, 0), 167 SOC_SINGLE("ALC Capture Max Volume", WM8971_ALC1, 4, 7, 0), 180 SOC_ENUM("Playback De-emphasis", wm8971_enum[5]), 184 SOC_DOUBLE_R("Mic Boost", WM8971_LADCIN, WM8971_RADCIN, 4, 3, 0), 254 SND_SOC_DAPM_SUPPLY("Mic Bias", WM8971_PWR1, 1, 0, NULL, 0), [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 | wm8737.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8737.c -- WM8737 ALSA SoC Audio driver 25 #include <sound/soc-dapm.h> 47 { 0, 0x00C3 }, /* R0 - Left PGA volume */ 48 { 1, 0x00C3 }, /* R1 - Right PGA volume */ 49 { 2, 0x0007 }, /* R2 - AUDIO path L */ 50 { 3, 0x0007 }, /* R3 - AUDIO path R */ 51 { 4, 0x0000 }, /* R4 - 3D Enhance */ 52 { 5, 0x0000 }, /* R5 - ADC Control */ 53 { 6, 0x0000 }, /* R6 - Power Management */ [all …]
|
H A D | da7210.c | 1 // SPDX-License-Identifier: GPL-2.0+ 257 * max : 0x3F (+15.0 dB) 259 * min : 0x11 (-54.0 dB) 261 * reserved : 0x00 - 0x0F 267 /* -54 dB to +15 dB */ 268 0x11, 0x3f, TLV_DB_SCALE_ITEM(-5400, 150, 0) 273 /* -54dB to 15dB */ 274 0x11, 0x3f, TLV_DB_SCALE_ITEM(-5400, 150, 0) 278 0x0, 0x2, TLV_DB_SCALE_ITEM(-1800, 0, 1), 279 /* -18dB to 6dB */ [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 …]
|
/openbmc/linux/sound/soc/intel/boards/ |
H A D | bdw-rt5650.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #include <sound/soc-acpi.h> 29 SND_SOC_DAPM_MIC("Headset Mic", NULL), 42 {"IN1P", NULL, "Headset Mic"}, 43 {"IN1N", NULL, "Headset Mic"}, 64 SOC_DAPM_PIN_SWITCH("Headset Mic"), 79 .pin = "Headset Mic", 91 /* The ADSP will convert the FE rate to 48k, max 4-channels */ in broadwell_ssp0_fixup() 92 rate->min = rate->max = 48000; in broadwell_ssp0_fixup() 93 chan->min = 2; in broadwell_ssp0_fixup() [all …]
|
/openbmc/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> 10 #include "rk3399-op1-opp.dtsi" 19 stdout-path = "serial2:115200n8"; 28 * - Rails that only connect to the EC (or devices that the EC talks to) 30 * - Rails _are_ included if the rails go to the AP even if the AP 39 * - The EC controls the enable and the EC always enables a rail as 41 * - The rails are actually connected to each other by a jumper and 46 ppvar_sys: ppvar-sys { [all …]
|
/openbmc/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 …]
|
/openbmc/linux/arch/arm/boot/dts/ti/omap/ |
H A D | omap4-sdp.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/ 5 /dts-v1/; 9 #include "omap4-mcpdm.dtsi" 13 compatible = "ti,omap4-sdp", "ti,omap4430", "ti,omap4"; 26 vdd_eth: fixedregulator-vdd-eth { 27 pinctrl-names = "default"; 28 pinctrl-0 = <&enet_enable_gpio>; 30 compatible = "regulator-fixed"; 31 regulator-name = "VDD_ETH"; [all …]
|
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 …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | sdm845-xiaomi-beryllium-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 5 #include <dt-bindings/leds/common.h> 6 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 7 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 8 #include <dt-bindings/sound/qcom,q6afe.h> 9 #include <dt-bindings/sound/qcom,q6asm.h> 11 #include "sdm845-wcd9340.dtsi" 19 /delete-node/ &tz_mem; 20 /delete-node/ &adsp_mem; [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | rk3288-veyron.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <dt-bindings/clock/rockchip,rk808.h> 9 #include <dt-bindings/input/input.h> 18 stdout-path = &uart2; 22 u-boot,dm-pre-reloc; 23 u-boot,boot0 = &spi_flash; 28 pinctrl-names = "default"; 29 pinctrl-0 = <&fw_wp_ap>; 30 write-protect-gpio = <&gpio7 6 GPIO_ACTIVE_LOW>; 35 compatible = "pwm-backlight"; [all …]
|
/openbmc/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 - WRITE */ 103 0x00, /* [000] -49.5 dB: AKM[000] = -1.#INF dB (mute) */ 104 0x01, /* [001] -49.0 dB: AKM[001] = -48.131 dB (diff=0.86920 dB) */ 105 0x01, /* [002] -48.5 dB: AKM[001] = -48.131 dB (diff=0.36920 dB) */ 106 0x01, /* [003] -48.0 dB: AKM[001] = -48.131 dB (diff=0.13080 dB) */ [all …]
|