/linux/Documentation/devicetree/bindings/sound/ |
H A D | rt5668.txt | 7 - compatible : "realtek,rt5668b" 9 - reg : The I2C address of the device. 13 - interrupts : The CODEC's interrupt output. 15 - realtek,dmic1-data-pin 16 0: dmic1 is not used 17 1: using GPIO2 pin as dmic1 data pin 18 2: using GPIO5 pin as dmic1 data pin 20 - realtek,dmic1-clk-pin 21 0: using GPIO1 pin as dmic1 clock pin 22 1: using GPIO3 pin as dmic1 clock pin [all …]
|
H A D | realtek,rt5682s.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Derek Fang <derek.fang@realtek.com> 13 Rt5682s(ALC5682I-VS) is a rt5682i variant which supports I2C only. 16 - $ref: dai-common.yaml# 30 realtek,dmic1-data-pin: 33 - 0 # dmic1 data is not used 34 - 1 # using GPIO2 pin as dmic1 data pin 35 - 2 # using GPIO5 pin as dmic1 data pin [all …]
|
H A D | realtek,rt5659.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> 40 - $ref: dai-common.yaml# 45 - realtek,rt5659 46 - realtek,rt5658 57 clock-names: 60 realtek,dmic1-data-pin: 63 - 0 # dmic1 is not used [all …]
|
H A D | realtek,rt5645.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> 35 - $ref: dai-common.yaml# 40 - realtek,rt5645 41 - realtek,rt5650 50 avdd-supply: 53 cpvdd-supply: 56 hp-detect-gpios: [all …]
|
H A D | rt5660.txt | 7 - compatible : "realtek,rt5660". 9 - reg : The I2C address of the device. 13 - clocks: The phandle of the master clock to the CODEC 14 - clock-names: Should be "mclk" 16 - realtek,in1-differential 17 - realtek,in3-differential 18 Boolean. Indicate MIC1/3 input are differential, rather than single-ended. 20 - realtek,poweroff-in-suspend 24 - realtek,dmic1-data-pin 25 0: dmic1 is not used [all …]
|
H A D | rt5665.txt | 7 - compatible : One of "realtek,rt5665", "realtek,rt5666". 9 - reg : The I2C address of the device. 11 - interrupts : The CODEC's interrupt output. 15 - realtek,in1-differential 16 - realtek,in2-differential 17 - realtek,in3-differential 18 - realtek,in4-differential 19 Boolean. Indicate MIC1/2/3/4 input are differential, rather than single-ended. 21 - realtek,dmic1-data-pin 22 0: dmic1 is not used [all …]
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | sc7180-trogdor-rt5682s-sku.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 12 pinctrl-names = "default"; 13 pinctrl-0 = <&hp_irq>; 15 #sound-dai-cells = <1>; 17 interrupt-parent = <&tlmm>; 24 AVDD-supply = <&pp1800_alc5682>; 25 DBVDD-supply = <&pp1800_alc5682>; 26 LDO1-IN-supply = <&pp1800_alc5682>; 27 MICVDD-supply = <&pp3300_codec>; 29 realtek,dmic1-data-pin = <1>; [all …]
|
H A D | sc7180-trogdor-rt5682i-sku.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 12 pinctrl-names = "default"; 13 pinctrl-0 = <&hp_irq>; 15 #sound-dai-cells = <1>; 17 interrupt-parent = <&tlmm>; 24 AVDD-supply = <&pp1800_alc5682>; 25 DBVDD-supply = <&pp1800_alc5682>; 26 LDO1-IN-supply = <&pp1800_alc5682>; 27 MICVDD-supply = <&pp3300_codec>; 28 VBAT-supply = <&pp3300_audio>; [all …]
|
H A D | sc7280-herobrine-audio-rt5682-3mic.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 11 /* BOARD-SPECIFIC TOP LEVEL NODES */ 13 compatible = "google,sc7280-herobrine"; 14 model = "sc7280-rt5682-max98360a-3mic"; 16 audio-routing = "VA DMIC0", "vdd-micb", 17 "VA DMIC1", "vdd-micb", 18 "VA DMIC2", "vdd-micb", 19 "VA DMIC3", "vdd-micb", 24 #address-cells = <1>; 25 #size-cells = <0>; [all …]
|
H A D | sc7280-herobrine-audio-rt5682.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 11 /* BOARD-SPECIFIC TOP LEVEL NODES */ 13 compatible = "google,sc7280-herobrine"; 14 model = "sc7280-rt5682-max98360a-1mic"; 16 audio-routing = "Headphone Jack", "HPOL", 19 #address-cells = <1>; 20 #size-cells = <0>; 22 dai-link@0 { 23 link-name = "MAX98360"; 27 sound-dai = <&lpass_cpu MI2S_SECONDARY>; [all …]
|
H A D | sc7180-acer-aspire1.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/sound/qcom,q6asm.h> 7 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 14 /delete-node/ &tz_mem; 15 /delete-node/ &ipa_fw_mem; 20 chassis-type = "laptop"; 30 stdout-path = "serial0:115200n8"; 33 reserved-memory { [all …]
|
H A D | sc7280-idp.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 8 #include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h> 9 #include <dt-bindings/input/linux-event-codes.h> 15 #include "sc7280-chrome-common.dtsi" 16 #include "sc7280-herobrine-lte-sku.dtsi" 25 max98360a: audio-codec-0 { 27 pinctrl-names = "default"; 28 pinctrl-0 = <&_en>; 29 sdmode-gpios = <&tlmm 63 GPIO_ACTIVE_HIGH>; 30 #sound-dai-cells = <0>; [all …]
|
/linux/sound/soc/codecs/ |
H A D | lpass-va-macro.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. 5 #include <linux/clk-provider.h> 16 #include <sound/soc-dapm.h> 19 #include "lpass-macro-common.h" 165 static const DECLARE_TLV_DB_SCALE(digital_gain, -8400, 100, -8400); 454 struct regmap *regmap = va->regmap; in va_clk_rsc_fs_gen_request() 487 struct regmap *regmap = va->regmap; in va_macro_mclk_enable() 503 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in va_macro_mclk_event() 508 return clk_prepare_enable(va->fsgen); in va_macro_mclk_event() [all …]
|
H A D | rt5640.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5640.c -- RT5640/RT5639 ALSA SoC audio codec driver 27 #include <sound/soc-dapm.h> 340 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 341 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0); 342 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 343 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000); 357 /* Interface data select */ 438 SOC_ENUM("ADC IF1 Data Switch", rt5640_if1_adc_enum), 439 SOC_ENUM("DAC IF1 Data Switch", rt5640_if1_dac_enum), [all …]
|
H A D | rt5677.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5677.c -- RT5677 ALSA SoC audio codec driver 29 #include <sound/soc-dapm.h> 35 #include "rt5677-spi.h" 552 * rt5677_dsp_mode_i2c_write_addr - Write value to address on DSP mode. 553 * @rt5677: Private Data. 555 * @value: Address data. 563 struct snd_soc_component *component = rt5677->component; in rt5677_dsp_mode_i2c_write_addr() 566 mutex_lock(&rt5677->dsp_cmd_lock); in rt5677_dsp_mode_i2c_write_addr() 568 ret = regmap_write(rt5677->regmap_physical, RT5677_DSP_I2C_ADDR_MSB, in rt5677_dsp_mode_i2c_write_addr() [all …]
|
H A D | rt721-sdca.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt721-sdca.c -- rt721 SDCA ALSA SoC audio driver 23 #include <sound/soc-dapm.h> 26 #include "rt721-sdca.h" 27 #include "rt-sdw-common.h" 35 if (!rt721->hs_jack) in rt721_sdca_jack_detect_handler() 38 if (!rt721->component->card || !rt721->component->card->instantiated) in rt721_sdca_jack_detect_handler() 42 if (rt721->scp_sdca_stat1 & SDW_SCP_SDCA_INT_SDCA_0) { in rt721_sdca_jack_detect_handler() 43 rt721->jack_type = rt_sdca_headset_detect(rt721->regmap, in rt721_sdca_jack_detect_handler() 45 if (rt721->jack_type < 0) in rt721_sdca_jack_detect_handler() [all …]
|
H A D | rt5514.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5514.c -- RT5514 ALSA SoC audio codec driver 24 #include <sound/soc-dapm.h> 31 #include "rt5514-spi.h" 120 regmap_write(rt5514->i2c_regmap, 0x18002000, 0x000010ec); in rt5514_enable_dsp_prepare() 122 regmap_write(rt5514->i2c_regmap, 0x18002200, 0x00028604); in rt5514_enable_dsp_prepare() 124 regmap_write(rt5514->i2c_regmap, 0xfafafafa, 0x00000001); in rt5514_enable_dsp_prepare() 125 /* mini-core reset */ in rt5514_enable_dsp_prepare() 126 regmap_write(rt5514->i2c_regmap, 0x18002f00, 0x0005514b); in rt5514_enable_dsp_prepare() 127 regmap_write(rt5514->i2c_regmap, 0x18002f00, 0x00055149); in rt5514_enable_dsp_prepare() [all …]
|
H A D | rt5665.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5665.c -- RT5665/RT5658 ALSA SoC audio codec driver 26 #include <sound/soc-dapm.h> 884 static const DECLARE_TLV_DB_SCALE(hp_vol_tlv, -2250, 150, 0); 885 static const DECLARE_TLV_DB_SCALE(mono_vol_tlv, -1400, 150, 0); 886 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 887 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0); 888 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 889 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0); 891 static const DECLARE_TLV_DB_SCALE(in_bst_tlv, -1200, 75, 0); [all …]
|
H A D | rt5645.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5645.c -- RT5645 ALSA SoC audio codec driver 26 #include <sound/soc-dapm.h> 41 static unsigned int quirk = -1; 439 /* Some (package) variants have the headset-mic pin not-connected */ 671 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 672 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -6525, 75, 0); 673 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 674 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -1725, 75, 0); 688 /* {-6, -4.5, -3, -1.5, 0, 0.82, 1.58, 2.28} dB */ [all …]
|
H A D | rt711.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // rt711.c -- rt711 ALSA SoC audio driver 24 #include <sound/soc-dapm.h> 89 struct regmap *regmap = rt711->regmap; in rt711_calibration() 92 mutex_lock(&rt711->calibrate_mutex); in rt711_calibration() 93 regmap_write(rt711->regmap, in rt711_calibration() 113 pr_err("%s, calibration time-out!\n", in rt711_calibration() 115 ret = -ETIMEDOUT; in rt711_calibration() 129 regmap_write(rt711->regmap, in rt711_calibration() 131 mutex_unlock(&rt711->calibrate_mutex); in rt711_calibration() [all …]
|
H A D | rt5668.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5668.c -- RT5668B ALSA SoC audio component driver 26 #include <sound/soc-dapm.h> 746 static const DECLARE_TLV_DB_SCALE(hp_vol_tlv, -2250, 150, 0); 747 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0); 748 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0); 762 /* Interface data select */ 844 * rt5668_headset_detect - Detect headset. 879 rt5668->jack_type = SND_JACK_HEADSET; in rt5668_headset_detect() 883 rt5668->jack_type = SND_JACK_HEADPHONE; in rt5668_headset_detect() [all …]
|
H A D | wcd934x.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/clk-provider.h> 21 #include <sound/soc-dapm.h> 23 #include "wcd-clsh-v2.h" 24 #include "wcd-mbhc-v2.h" 26 #include <dt-bindings/sound/qcom,wcd934x.h> 221 {"DMIC MUX" #id, "DMIC1", "DMIC1"}, \ 433 COMPANDER_5, /* LO3_SE - not used in Tavil */ 434 COMPANDER_6, /* LO4_SE - not used in Tavil */ 505 .name = "WCD9335-IFC-DEV", [all …]
|
/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8186-corsola-squirtle.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 /dts-v1/; 7 #include "mt8186-corsola-voltorb.dtsi" 12 chassis-type = "convertible"; 19 interrupts-extended = <&pio 12 IRQ_TYPE_LEVEL_LOW>; 20 pinctrl-names = "default"; 21 pinctrl-0 = <&touchscreen_pins>; 22 reset-gpios = <&pio 60 GPIO_ACTIVE_LOW>; 23 vcc33-supply = <&pp3300_s3>; 24 status = "fail-needs-probe"; [all …]
|
/linux/arch/arm64/boot/dts/nvidia/ |
H A D | tegra234-p3740-0002+p3701-0008.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/linux-event-codes.h> 5 #include <dt-bindings/input/gpio-keys.h> 6 #include <dt-bindings/sound/rt5640.h> 7 #include "tegra234-p3701-0008.dtsi" 11 compatible = "nvidia,p3740-0002+p3701-0008", "nvidia,p3701-0008", "nvidia,tegra234"; 19 stdout-path = "serial0:115200n8"; 29 dai-format = "i2s"; 30 remote-endpoint = <&rt5640_ep>; [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 …]
|