| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/ |
| D | rt5645.txt | 7 - compatible : One of "realtek,rt5645" or "realtek,rt5650". 9 - reg : The I2C address of the device. 11 - interrupts : The CODEC's interrupt output. 13 - avdd-supply: Power supply for AVDD, providing 1.8V. 15 - cpvdd-supply: Power supply for CPVDD, providing 3.5V. 19 - hp-detect-gpios: 20 a GPIO spec for the external headphone detect pin. If jd-mode = 0, 21 we will get the JD status by getting the value of hp-detect-gpios. 23 - realtek,in2-differential 24 Boolean. Indicate MIC2 input are differential, rather than single-ended. [all …]
|
| D | dmic.txt | 1 Device-Tree bindings for Digital microphone (DMIC) codec 6 - compatible: should be "dmic-codec". 9 - dmicen-gpios: GPIO specifier for dmic to control start and stop 10 - num-channels: Number of microphones on this DAI 11 - wakeup-delay-ms: Delay (in ms) after enabling the DMIC 12 - modeswitch-delay-ms: Delay (in ms) to complete DMIC mode switch 16 dmic_codec: dmic@0 { 17 compatible = "dmic-codec"; 18 dmicen-gpios = <&gpio4 3 GPIO_ACTIVE_HIGH>; 19 num-channels = <1>; [all …]
|
| D | mt6359.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Eason Yen <eason.yen@mediatek.com> 11 - Jiaxin Yu <jiaxin.yu@mediatek.com> 12 - Shane Chien <shane.chien@mediatek.com> 20 mediatek,dmic-mode: 26 - 0 # one wire 27 - 1 # two wires 29 mediatek,mic-type-0: [all …]
|
| D | mt6358.txt | 10 - compatible : "mediatek,mt6358-sound". 11 - Avdd-supply : power source of AVDD 14 - mediatek,dmic-mode : Indicates how many data pins are used to transmit two 21 compatible = "mediatek,mt6358-sound"; 22 Avdd-supply = <&mt6358_vaud28_reg>; 23 mediatek,dmic-mode = <0>;
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/ |
| D | rt5645.txt | 7 - compatible : One of "realtek,rt5645" or "realtek,rt5650". 9 - reg : The I2C address of the device. 11 - interrupts : The CODEC's interrupt output. 13 - avdd-supply: Power supply for AVDD, providing 1.8V. 15 - cpvdd-supply: Power supply for CPVDD, providing 3.5V. 19 - hp-detect-gpios: 20 a GPIO spec for the external headphone detect pin. If jd-mode = 0, 21 we will get the JD status by getting the value of hp-detect-gpios. 23 - cbj-sleeve-gpios: 28 - realtek,in2-differential [all …]
|
| 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 …]
|
| D | mt6359.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Eason Yen <eason.yen@mediatek.com> 11 - Jiaxin Yu <jiaxin.yu@mediatek.com> 12 - Shane Chien <shane.chien@mediatek.com> 20 mediatek,dmic-mode: 26 - 0 # two wires 27 - 1 # one wire 29 mediatek,mic-type-0: [all …]
|
| D | mt6358.txt | 10 - compatible - "string" - One of: 11 "mediatek,mt6358-sound" 12 "mediatek,mt6366-sound" 13 - Avdd-supply : power source of AVDD 16 - mediatek,dmic-mode : Indicates how many data pins are used to transmit two 23 compatible = "mediatek,mt6358-sound"; 24 Avdd-supply = <&mt6358_vaud28_reg>; 25 mediatek,dmic-mode = <0>;
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| D | dmic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * dmic.c -- SoC audio for Generic Digital MICs 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() 56 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in dmic_aif_event() [all …]
|
| 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 …]
|
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| D | dmic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * dmic.c -- SoC audio for Generic Digital MICs 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() 56 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in dmic_aif_event() [all …]
|
| 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. 31 #include <linux/mfd/abx500/ab8500-sysctrl.h> 32 #include <linux/mfd/abx500/ab8500-codec.h> 41 #include <sound/soc-dapm.h> 44 #include "ab8500-codec.h" 58 /* Nr of FIR/IIR-coeff banks in ANC-block */ 123 /* Private data for AB8500 device-driver */ [all …]
|
| /kernel/linux/linux-5.10/Documentation/sound/hd-audio/ |
| D | models.rst | 2 HD-Audio Codec-Specific Models 8 3-jack in back and a headphone out 9 3stack-digout 10 3-jack in back, a HP out and a SPDIF out 12 5-jack in back, 2-jack in front 13 5stack-digout 14 5-jack in back, 2-jack in front, a SPDIF out 16 6-jack in back, 2-jack in front 17 6stack-digout 18 6-jack with a SPDIF out [all …]
|
| /kernel/linux/linux-6.6/Documentation/sound/hd-audio/ |
| D | models.rst | 2 HD-Audio Codec-Specific Models 8 3-jack in back and a headphone out 9 3stack-digout 10 3-jack in back, a HP out and a SPDIF out 12 5-jack in back, 2-jack in front 13 5stack-digout 14 5-jack in back, 2-jack in front, a SPDIF out 16 6-jack in back, 2-jack in front 17 6stack-digout 18 6-jack with a SPDIF out [all …]
|
| /kernel/linux/linux-6.6/arch/riscv/boot/dts/allwinner/ |
| D | sun20i-d1-lichee-rv-86-panel.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ or MIT) 4 #include "sun20i-d1-lichee-rv.dts" 12 dmic_codec: dmic-codec { 13 compatible = "dmic-codec"; 14 num-channels = <2>; 15 #sound-dai-cells = <0>; 18 dmic-sound { 19 compatible = "simple-audio-card"; 20 simple-audio-card,name = "DMIC"; 21 #address-cells = <1>; [all …]
|
| /kernel/linux/linux-5.10/sound/soc/ux500/ |
| D | mop500_ab8500.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2012 7 * for ST-Ericsson. 19 #include <sound/soc-dapm.h> 26 #include "../codecs/ab8500-codec.h" 63 /* Private data for machine-part MOP500<->AB8500 */ 90 if (IS_ERR(drvdata->clk_ptr_intclk)) { in mop500_ab8500_set_mclk() 93 return -EIO; in mop500_ab8500_set_mclk() 96 switch (drvdata->mclk_sel) { in mop500_ab8500_set_mclk() 98 clk_ptr = drvdata->clk_ptr_sysclk; in mop500_ab8500_set_mclk() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/ux500/ |
| D | mop500_ab8500.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2012 7 * for ST-Ericsson. 17 #include <sound/soc-dapm.h> 24 #include "../codecs/ab8500-codec.h" 61 /* Private data for machine-part MOP500<->AB8500 */ 88 if (IS_ERR(drvdata->clk_ptr_intclk)) { in mop500_ab8500_set_mclk() 91 return -EIO; in mop500_ab8500_set_mclk() 94 switch (drvdata->mclk_sel) { in mop500_ab8500_set_mclk() 96 clk_ptr = drvdata->clk_ptr_sysclk; in mop500_ab8500_set_mclk() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/mediatek/mt8186/ |
| D | mt8186-dai-adda.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include "mt8186-afe-clk.h" 11 #include "mt8186-afe-common.h" 12 #include "mt8186-afe-gpio.h" 13 #include "mt8186-interconnection.h" 75 struct mt8186_afe_private *afe_priv = afe->platform_priv; in get_adda_priv_by_name() 83 return afe_priv->dai_priv[dai_id]; in get_adda_priv_by_name() 113 dev_dbg(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_dl_rate_transform() 137 dev_dbg(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_ul_rate_transform() 218 return -EINVAL; in mtk_adda_ul_src_dmic() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/mediatek/mt8192/ |
| D | mt8192-dai-adda.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include "mt8192-afe-clk.h" 13 #include "mt8192-afe-common.h" 14 #include "mt8192-afe-gpio.h" 15 #include "mt8192-interconnection.h" 96 dev_warn(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_dl_rate_transform() 119 dev_warn(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_ul_rate_transform() 273 return -EINVAL; in mtk_adda_ul_src_dmic() 276 /* dmic mode, 3.25M*/ in mtk_adda_ul_src_dmic() 277 regmap_update_bits(afe->regmap, reg, in mtk_adda_ul_src_dmic() [all …]
|
| /kernel/linux/linux-6.6/include/sound/sof/ |
| D | dai.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 13 #include <sound/sof/dai-intel.h> 14 #include <sound/sof/dai-imx.h> 15 #include <sound/sof/dai-amd.h> 16 #include <sound/sof/dai-mediatek.h> 24 #define SOF_DAI_FMT_I2S 1 /**< I2S mode */ 25 #define SOF_DAI_FMT_RIGHT_J 2 /**< Right Justified mode */ 26 #define SOF_DAI_FMT_LEFT_J 3 /**< Left Justified mode */ 79 SOF_DAI_INTEL_DMIC, /**< Intel DMIC */ 86 SOF_DAI_AMD_DMIC, /**< AMD ACP DMIC */ [all …]
|
| /kernel/linux/linux-6.6/sound/soc/sunxi/ |
| D | sun50i-dmic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 // This driver supports the DMIC in Allwinner's H6 SoCs. 77 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sun50i_dmic_startup() 81 if (substream->stream != SNDRV_PCM_STREAM_CAPTURE) in sun50i_dmic_startup() 82 return -EINVAL; in sun50i_dmic_startup() 84 regmap_update_bits(host->regmap, SUN50I_DMIC_RXFIFO_CTL, in sun50i_dmic_startup() 87 regmap_write(host->regmap, SUN50I_DMIC_CNT, SUN50I_DMIC_CNT_N); in sun50i_dmic_startup() 100 unsigned int chan_en = (1 << channels) - 1; in sun50i_dmic_hw_params() 103 /* DMIC num is N+1 */ in sun50i_dmic_hw_params() 104 regmap_update_bits(host->regmap, SUN50I_DMIC_CH_NUM, in sun50i_dmic_hw_params() [all …]
|
| /kernel/linux/linux-5.10/include/sound/sof/ |
| D | dai.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 13 #include <sound/sof/dai-intel.h> 14 #include <sound/sof/dai-imx.h> 22 #define SOF_DAI_FMT_I2S 1 /**< I2S mode */ 23 #define SOF_DAI_FMT_RIGHT_J 2 /**< Right Justified mode */ 24 #define SOF_DAI_FMT_LEFT_J 3 /**< Left Justified mode */ 51 SOF_DAI_INTEL_DMIC, /**< Intel DMIC */ 61 uint32_t type; /**< DAI type - enum sof_ipc_dai_type */ 74 struct sof_ipc_dai_dmic_params dmic; member
|
| D | dai-intel.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 52 /* DMIC max. four controllers for eight microphone channels */ 55 /* SSP Configuration Request - SOF_IPC_DAI_SSP_CONFIG */ 87 /* HDA Configuration Request - SOF_IPC_DAI_HDA_CONFIG */ 95 /* ALH Configuration Request - SOF_IPC_DAI_ALH_CONFIG */ 106 /* DMIC Configuration Request - SOF_IPC_DAI_DMIC_CONFIG */ 121 * that delays the sampling time of data by half cycles of DMIC source clock 143 * device driver src/drivers/dmic.c need to match. It is incremented from 149 * range 1.0 - 3.2 MHz is usually supported microphones. Some microphones are 150 * multi-mode capable and there may be denied mic clock frequencies between [all …]
|