/Linux-v5.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>;
|
/Linux-v5.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 …]
|
D | rt5670.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5670.c -- RT5670 ALSA SoC audio codec driver 25 #include <sound/soc-dapm.h> 31 #include "rt5670-dsp.h" 50 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); 422 * rt5670_headset_detect - Detect headset. 457 rt5670->jack_type = SND_JACK_HEADSET; in rt5670_headset_detect() 464 rt5670->jack_type = SND_JACK_HEADPHONE; in rt5670_headset_detect() 471 rt5670->jack_type = 0; in rt5670_headset_detect() 476 return rt5670->jack_type; in rt5670_headset_detect() [all …]
|
D | tscs454.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // tscs454.c -- TSCS454 ALSA SoC Audio driver 21 #include <sound/soc-dapm.h> 50 pll->id = id; in pll_init() 51 mutex_init(&pll->lock); in pll_init() 66 aif->id = id; in aif_init() 85 cache[((norm_addrs[i] + 1) * COEFF_SIZE) - 1] = 0x40; in init_coeff_ram_cache() 90 init_coeff_ram_cache(ram->cache); in coeff_ram_init() 91 mutex_init(&ram->lock); in coeff_ram_init() 103 status->streams |= mask; in set_aif_status_active() [all …]
|
D | rt5677.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5677.c -- RT5677 ALSA SoC audio codec driver 31 #include <sound/soc-dapm.h> 37 #include "rt5677-spi.h" 554 * rt5677_dsp_mode_i2c_write_addr - Write value to address on DSP mode. 565 struct snd_soc_component *component = rt5677->component; in rt5677_dsp_mode_i2c_write_addr() 568 mutex_lock(&rt5677->dsp_cmd_lock); in rt5677_dsp_mode_i2c_write_addr() 570 ret = regmap_write(rt5677->regmap_physical, RT5677_DSP_I2C_ADDR_MSB, in rt5677_dsp_mode_i2c_write_addr() 573 dev_err(component->dev, "Failed to set addr msb value: %d\n", ret); in rt5677_dsp_mode_i2c_write_addr() 577 ret = regmap_write(rt5677->regmap_physical, RT5677_DSP_I2C_ADDR_LSB, in rt5677_dsp_mode_i2c_write_addr() [all …]
|
D | adau1761.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2011-2013 Analog Devices Inc. 6 * Author: Lars-Peter Clausen <lars@metafoo.de> 125 static const DECLARE_TLV_DB_SCALE(adau1761_sing_in_tlv, -1500, 300, 1); 126 static const DECLARE_TLV_DB_SCALE(adau1761_diff_in_tlv, -1200, 75, 0); 127 static const DECLARE_TLV_DB_SCALE(adau1761_out_tlv, -5700, 100, 0); 128 static const DECLARE_TLV_DB_SCALE(adau1761_sidetone_tlv, -1800, 300, 1); 129 static const DECLARE_TLV_DB_SCALE(adau1761_boost_tlv, -600, 600, 1); 130 static const DECLARE_TLV_DB_SCALE(adau1761_pga_boost_tlv, -2000, 2000, 1); 132 static const DECLARE_TLV_DB_SCALE(adau1761_alc_max_gain_tlv, -1200, 600, 0); [all …]
|
D | max9867.c | 1 // SPDX-License-Identifier: GPL-2.0 5 // Copyright 2013-2015 Maxim Integrated Products 6 // Copyright 2018 Ladislav Michl <ladis@linux-mips.org> 40 "Butterworth/8-24" 53 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max9867_adc_dac_event() 57 if (!strcmp(w->name, "ADCL")) in max9867_adc_dac_event() 59 else if (!strcmp(w->name, "ADCR")) in max9867_adc_dac_event() 61 else if (!strcmp(w->name, "DACL")) in max9867_adc_dac_event() 63 else if (!strcmp(w->name, "DACR")) in max9867_adc_dac_event() 69 max9867->adc_dac_active |= BIT(adc_dac); in max9867_adc_dac_event() [all …]
|
D | rt5665.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5665.c -- RT5665/RT5658 ALSA SoC audio codec driver 27 #include <sound/soc-dapm.h> 888 static const DECLARE_TLV_DB_SCALE(hp_vol_tlv, -2250, 150, 0); 889 static const DECLARE_TLV_DB_SCALE(mono_vol_tlv, -1400, 150, 0); 890 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 891 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0); 892 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 893 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0); 895 static const DECLARE_TLV_DB_SCALE(in_bst_tlv, -1200, 75, 0); [all …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.10/include/sound/sof/ |
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 …]
|
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
|
/Linux-v5.10/sound/soc/intel/boards/ |
D | kbl_da7219_max98357a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright(c) 2017-18 Intel Corporation. 22 #include "../../codecs/da7219-aad.h" 24 #define KBL_DIALOG_CODEC_DAI "da7219-hifi" 56 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control() 57 struct snd_soc_card *card = dapm->card; in platform_clock_control() 63 dev_err(card->dev, "Codec dai not found; Unable to set/unset codec pll\n"); in platform_clock_control() 64 return -EIO; in platform_clock_control() 71 dev_err(card->dev, "failed to stop PLL: %d\n", ret); in platform_clock_control() 76 dev_err(card->dev, "failed to start PLL: %d\n", ret); in platform_clock_control() [all …]
|
D | skl_nau88l25_max98357a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 #include <sound/soc-acpi.h> 20 #define SKL_NUVOTON_CODEC_DAI "nau8825-hifi" 22 #define DMIC_CH(p) p->list[p->count-1] 52 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control() 53 struct snd_soc_card *card = dapm->card; in platform_clock_control() 59 dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); in platform_clock_control() 60 return -EIO; in platform_clock_control() 67 dev_err(card->dev, "set sysclk err = %d\n", ret); in platform_clock_control() 68 return -EIO; in platform_clock_control() [all …]
|
D | glk_rt5682_max98357a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include <sound/soc-acpi.h> 27 #define GLK_REALTEK_CODEC_DAI "rt5682-aif1" 70 SND_SOC_DAPM_MIC("SoC DMIC", NULL), 77 /* HP jack connectors - unknown if we have jack detection */ 88 { "DMic", NULL, "SoC DMIC" }, 100 { "HDMI1", NULL, "hif5-0 Output" }, 101 { "HDMI2", NULL, "hif6-0 Output" }, 102 { "HDMI2", NULL, "hif7-0 Output" }, 111 /* DMIC */ [all …]
|
D | skl_nau88l25_ssm4567.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 #include <sound/soc-acpi.h> 24 #define SKL_NUVOTON_CODEC_DAI "nau8825-hifi" 25 #define SKL_SSM_CODEC_DAI "ssm4567-hifi" 26 #define DMIC_CH(p) p->list[p->count-1] 62 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control() 63 struct snd_soc_card *card = dapm->card; in platform_clock_control() 69 dev_err(card->dev, "Codec dai not found\n"); in platform_clock_control() 70 return -EIO; in platform_clock_control() 77 dev_err(card->dev, "set sysclk err = %d\n", ret); in platform_clock_control() [all …]
|
D | bxt_da7219_max98357a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Intel Broxton-P I2S Machine Driver 19 #include <sound/soc-acpi.h> 22 #include "../../codecs/da7219-aad.h" 23 #include "../common/soc-intel-quirks.h" 26 #define BXT_DIALOG_CODEC_DAI "da7219-hifi" 28 #define MAX98390_DEV0_NAME "i2c-MX98390:00" 29 #define MAX98390_DEV1_NAME "i2c-MX98390:01" 66 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control() 67 struct snd_soc_card *card = dapm->card; in platform_clock_control() [all …]
|
/Linux-v5.10/sound/soc/rockchip/ |
D | rk3399_gru_sound.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 #include "../codecs/da7219-aad.h" 27 #define DRV_NAME "rk3399-gru-sound" 75 dev_err(rtd->card->dev, "%s() error setting sysclk to %u: %d\n", in rockchip_sound_max98357a_hw_params() 97 dev_err(rtd->card->dev, "Can't set cpu clock out %d\n", ret); in rockchip_sound_rt5514_hw_params() 104 dev_err(rtd->card->dev, "%s() error setting sysclk to %u: %d\n", in rockchip_sound_rt5514_hw_params() 109 /* Wait for DMIC stable */ in rockchip_sound_rt5514_hw_params() 123 /* in bypass mode, the mclk has to be one of the frequencies below */ in rockchip_sound_da7219_hw_params() 141 return -EINVAL; in rockchip_sound_da7219_hw_params() 147 dev_err(codec_dai->dev, "Can't set cpu clock out %d\n", ret); in rockchip_sound_da7219_hw_params() [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/arm/tegra/ |
D | nvidia,tegra186-pmc.txt | 4 - compatible: Should contain one of the following: 5 - "nvidia,tegra186-pmc": for Tegra186 6 - "nvidia,tegra194-pmc": for Tegra194 7 - "nvidia,tegra234-pmc": for Tegra234 8 - reg: Must contain an (offset, length) pair of the register set for each 9 entry in reg-names. 10 - reg-names: Must include the following entries: 11 - "pmc" 12 - "wake" 13 - "aotag" [all …]
|
/Linux-v5.10/sound/soc/mediatek/mt8183/ |
D | mt8183-dai-adda.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include "mt8183-afe-common.h" 11 #include "mt8183-interconnection.h" 12 #include "mt8183-reg.h" 77 dev_warn(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_dl_rate_transform() 100 dev_warn(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_ul_rate_transform() 146 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mtk_adda_ul_event() 148 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_adda_ul_event() 150 dev_dbg(afe->dev, "%s(), name %s, event 0x%x\n", in mtk_adda_ul_event() 151 __func__, w->name, event); in mtk_adda_ul_event() [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/iio/adc/ |
D | st,stm32-dfsdm-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/st,stm32-dfsdm-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Fabrice Gasnier <fabrice.gasnier@st.com> 11 - Olivier Moysan <olivier.moysan@st.com> 14 STM32 DFSDM ADC is a sigma delta analog-to-digital converter dedicated to 17 - Sigma delta modulators (motor control, metering...) 18 - PDM microphones (audio digital microphone) 28 - st,stm32h7-dfsdm [all …]
|