/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | dmic-codec.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/sound/dmic-codec.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Generic PDM Digital microphone (DMIC) codec 10 - Arnaud Pouliquen <arnaud.pouliquen@foss.st.com> 13 - $ref: dai-common.yaml# 17 const: dmic-codec 19 '#sound-dai-cells': 22 dmicen-gpios: [all …]
|
H A D | rockchip,rk3399-gru-sound.txt | 4 - compatible: "rockchip,rk3399-gru-sound" 5 - rockchip,cpu: The phandle of the Rockchip I2S controller that's 7 - rockchip,codec: The phandle of the audio codecs 10 - dmic-wakeup-delay-ms : specify delay time (ms) for DMIC ready. 11 If this option is specified, which means it's required dmic need 12 delay for DMIC to ready so that rt5514 can avoid recording before 13 DMIC send valid data 18 compatible = "rockchip,rk3399-gru-sound"; 21 dmic-wakeup-delay-ms = <20>;
|
H A D | rt5682.txt | 7 - compatible : "realtek,rt5682" or "realtek,rt5682i" 9 - reg : The I2C address of the device. 11 - AVDD-supply: phandle to the regulator supplying analog power through the 14 - MICVDD-supply: phandle to the regulator supplying power for the microphone 17 - VBAT-supply: phandle to the regulator supplying battery power through the 20 - DBVDD-supply: phandle to the regulator supplying I/O power through the DBVDD 23 - LDO1-IN-supply: phandle to the regulator supplying power to the digital core 28 - interrupts : The CODEC's interrupt output. 30 - realtek,dmic1-data-pin 35 - realtek,dmic1-clk-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 | rt5514.txt | 7 - compatible : "realtek,rt5514". 9 - reg : the I2C address of the device for I2C, the chip select 14 - clocks: The phandle of the master clock to the CODEC 15 - clock-names: Should be "mclk" 17 - interrupts: The interrupt number to the cpu. The interrupt specifier format 20 - realtek,dmic-init-delay-ms 21 Set the DMIC initial delay (ms) to wait it ready for I2C.
|
/openbmc/linux/sound/soc/codecs/ |
H A D | dmic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * dmic.c -- SoC audio for Generic Digital MICs 8 #include <linux/delay.h> 17 #include <sound/soc-dapm.h> 26 struct dmic { struct 29 /* Delay after DMIC mode switch */ 36 struct snd_soc_component *component = dai->component; in dmic_daiops_trigger() 37 struct dmic *dmic = snd_soc_component_get_drvdata(component); in dmic_daiops_trigger() argument 41 if (dmic->modeswitch_delay) in dmic_daiops_trigger() 42 mdelay(dmic->modeswitch_delay); in dmic_daiops_trigger() [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. 23 #include <linux/delay.h> 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 */ [all …]
|
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 25 * --------------------------------------- 34 #include <linux/delay.h> [all …]
|
H A D | cs42l73.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cs42l73.c -- CS42L73 ALSA Soc Audio driver 15 #include <linux/delay.h> 25 #include <sound/soc-dapm.h> 47 { 6, 0xF1 }, /* r06 - Power Ctl 1 */ 48 { 7, 0xDF }, /* r07 - Power Ctl 2 */ 49 { 8, 0x3F }, /* r08 - Power Ctl 3 */ 50 { 9, 0x50 }, /* r09 - Charge Pump Freq */ 51 { 10, 0x53 }, /* r0A - Output Load MicBias Short Detect */ 52 { 11, 0x00 }, /* r0B - DMIC Master Clock Ctl */ [all …]
|
H A D | lpass-tx-macro.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. 12 #include <sound/soc-dapm.h> 15 #include <linux/clk-provider.h> 17 #include "lpass-macro-common.h" 199 #define TX_ADC_TO_DMIC(n) ((n - TX_ADC_MAX)/2) 281 static const DECLARE_TLV_DB_SCALE(digital_gain, -8400, 100, -8400); 604 struct regmap *regmap = tx->regmap; in tx_macro_mclk_enable() 607 if (tx->tx_mclk_users == 0) { in tx_macro_mclk_enable() 619 tx->tx_mclk_users++; in tx_macro_mclk_enable() [all …]
|
H A D | wcd934x.c | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <linux/clk-provider.h> 21 #include <sound/soc-dapm.h> 23 #include "wcd-clsh-v2.h" 24 #include "wcd-mbhc-v2.h" 216 {"ADC MUX" #id, "DMIC", "DMIC MUX" #id }, \ 218 {"DMIC MUX" #id, "DMIC0", "DMIC0"}, \ 219 {"DMIC MUX" #id, "DMIC1", "DMIC1"}, \ 220 {"DMIC MUX" #id, "DMIC2", "DMIC2"}, \ 221 {"DMIC MUX" #id, "DMIC3", "DMIC3"}, \ [all …]
|
H A D | rt5514.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5514.c -- RT5514 ALSA SoC audio codec driver 14 #include <linux/delay.h> 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() [all …]
|
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); 443 struct regmap *regmap = va->regmap; in va_clk_rsc_fs_gen_request() 476 struct regmap *regmap = va->regmap; in va_macro_mclk_enable() 492 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in va_macro_mclk_event() 497 return clk_prepare_enable(va->fsgen); in va_macro_mclk_event() [all …]
|
H A D | rt5682s.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt5682s.c -- RT5682I-VS ALSA SoC audio component driver 12 #include <linux/delay.h> 25 #include <sound/soc-dapm.h> 38 .dai_clk_names[RT5682S_DAI_WCLK_IDX] = "rt5682-dai-wclk", 39 .dai_clk_names[RT5682S_DAI_BCLK_IDX] = "rt5682-dai-bclk", 46 [RT5682S_SUPPLY_LDO1_IN] = "LDO1-IN", 69 ret = regmap_multi_reg_write(rt5682s->regmap, patch_list, ARRAY_SIZE(patch_list)); in rt5682s_apply_patch_list() 624 regmap_write(rt5682s->regmap, RT5682S_RESET, 0); in rt5682s_reset() 634 dev_dbg(component->dev, "%s btn_type=%x\n", __func__, btn_type); in rt5682s_button_detect() [all …]
|
H A D | wcd9335.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. 3 // Copyright (c) 2017-2018, Linaro Limited 13 #include <linux/delay.h> 18 #include <sound/soc-dapm.h> 25 #include "wcd-clsh-v2.h" 27 #include <dt-bindings/sound/qcom,wcd9335.h> 98 #define WCD9335_CALCULATE_VOUT_D(req_mv) (((req_mv - 650) * 10) / 25) 146 {"ADC MUX" #id, "DMIC", "DMIC MUX" #id}, \ 148 {"DMIC MUX" #id, "DMIC0", "DMIC0"}, \ [all …]
|
/openbmc/linux/sound/soc/rockchip/ |
H A D | rk3399_gru_sound.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/delay.h> 26 #define DRV_NAME "rk3399-gru-sound" 79 dev_err(rtd->card->dev, "%s() error setting sysclk to %u: %d\n", in rockchip_sound_max98357a_hw_params() 101 dev_err(rtd->card->dev, "Can't set cpu clock out %d\n", ret); in rockchip_sound_rt5514_hw_params() 108 dev_err(rtd->card->dev, "%s() error setting sysclk to %u: %d\n", in rockchip_sound_rt5514_hw_params() 113 /* Wait for DMIC stable */ in rockchip_sound_rt5514_hw_params() 145 return -EINVAL; in rockchip_sound_da7219_hw_params() 151 dev_err(codec_dai->dev, "Can't set cpu clock out %d\n", ret); in rockchip_sound_da7219_hw_params() 158 dev_err(codec_dai->dev, "Can't set codec clock in %d\n", ret); in rockchip_sound_da7219_hw_params() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8183-kukui-jacuzzi-burnet.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 /dts-v1/; 7 #include "mt8183-kukui-jacuzzi.dtsi" 8 #include "mt8183-kukui-audio-ts3a227e-max98357a.dtsi" 12 chassis-type = "convertible"; 17 mediatek,dmic-mode = <1>; /* one-wire */ 22 compatible = "hid-over-i2c"; 24 pinctrl-names = "default"; 25 pinctrl-0 = <&touchscreen_pins>; 26 interrupts-extended = <&pio 155 IRQ_TYPE_LEVEL_LOW>; [all …]
|
H A D | mt8183-kukui-jacuzzi-damu.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 /dts-v1/; 7 #include "mt8183-kukui-jacuzzi.dtsi" 8 #include "mt8183-kukui-audio-da7219-max98357a.dtsi" 12 chassis-type = "convertible"; 19 compatible = "hid-over-i2c"; 21 interrupt-parent = <&pio>; 23 pinctrl-names = "default"; 24 pinctrl-0 = <&touchscreen_pins>; 26 post-power-on-delay-ms = <10>; [all …]
|
H A D | mt8195-cherry.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/spmi/spmi.h> 25 backlight_lcd0: backlight-lcd0 { 26 compatible = "pwm-backlight"; 27 brightness-levels = <0 1023>; 28 default-brightness-level = <576>; 29 enable-gpios = <&pio 82 GPIO_ACTIVE_HIGH>; 30 num-interpolated-steps = <1023>; 32 power-supply = <&ppvar_sys>; [all …]
|
H A D | mt8192-asurada.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/spmi/spmi.h> 25 stdout-path = "serial0:115200n8"; 33 backlight_lcd0: backlight-lcd0 { 34 compatible = "pwm-backlight"; 36 power-supply = <&ppvar_sys>; 37 enable-gpios = <&pio 152 0>; 38 brightness-levels = <0 1023>; [all …]
|
/openbmc/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3399-gru-scarlet.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Google Gru-scarlet board device tree source 8 #include "rk3399-gru.dtsi" 11 chassis-type = "tablet"; 16 pp1250_s3: pp1250-s3 { 17 compatible = "regulator-fixed"; 18 regulator-name = "pp1250_s3"; 21 regulator-always-on; 22 regulator-boot-on; 23 regulator-min-microvolt = <1250000>; [all …]
|
H A D | rk3399-gru-chromebook.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Google Gru-Chromebook shared properties 8 #include "rk3399-gru.dtsi" 11 pp900_ap: pp900-ap { 12 compatible = "regulator-fixed"; 13 regulator-name = "pp900_ap"; 16 regulator-always-on; 17 regulator-boot-on; 18 regulator-min-microvolt = <900000>; 19 regulator-max-microvolt = <900000>; [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | sc7180-trogdor-pompom.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 #include "sc7180-trogdor.dtsi" 9 /* Must come after sc7180-trogdor.dtsi to modify cros_ec */ 10 #include <arm/cros-ec-keyboard.dtsi> 11 #include "sc7180-trogdor-ti-sn65dsi86.dtsi" 14 thermal-zones { 15 choke-5v-thermal { 16 thermal-sensors = <&pm6150_adc_tm 1>; 19 choke-5v-crit { 30 realtek,dmic-clk-driving-high; [all …]
|
H A D | sc7180-trogdor-coachz.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 #include "sc7180-trogdor.dtsi" 9 #include "sc7180-trogdor-ti-sn65dsi86.dtsi" 11 /* Deleted nodes from sc7180-trogdor.dtsi */ 13 /delete-node/ &alc5682; 14 /delete-node/ &pp3300_codec; 17 /* BOARD-SPECIFIC TOP LEVEL NODES */ 19 adau7002: audio-codec-1 { 21 IOVDD-supply = <&pp1800_l15a>; 22 wakeup-delay-ms = <80>; [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | rk3399-gru-chromebook.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Google Gru-Chromebook shared properties 8 #include "rk3399-gru.dtsi" 11 pp900_ap: pp900-ap { 12 compatible = "regulator-fixed"; 13 regulator-name = "pp900_ap"; 16 regulator-always-on; 17 regulator-boot-on; 18 regulator-min-microvolt = <900000>; 19 regulator-max-microvolt = <900000>; [all …]
|