| /kernel/linux/linux-5.10/sound/soc/ti/ |
| D | omap-dmic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * omap-dmic.c -- OMAP ASoC DMIC DAI driver 5 * Copyright (C) 2010 - 2011 Texas Instruments 30 #include "omap-dmic.h" 31 #include "sdma-pcm.h" 51 static inline void omap_dmic_write(struct omap_dmic *dmic, u16 reg, u32 val) in omap_dmic_write() argument 53 writel_relaxed(val, dmic->io_base + reg); in omap_dmic_write() 56 static inline int omap_dmic_read(struct omap_dmic *dmic, u16 reg) in omap_dmic_read() argument 58 return readl_relaxed(dmic->io_base + reg); in omap_dmic_read() 61 static inline void omap_dmic_start(struct omap_dmic *dmic) in omap_dmic_start() argument [all …]
|
| D | omap-abe-twl6040.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * omap-abe-twl6040.c -- SoC audio for TI OMAP based boards with ABE and 20 #include "omap-dmic.h" 21 #include "omap-mcpdm.h" 26 DAILINK_COMP_ARRAY(COMP_CODEC("twl6040-codec", 27 "twl6040-legacy")), 32 DAILINK_COMP_ARRAY(COMP_CODEC("dmic-codec", 33 "dmic-hifi")), 50 struct snd_soc_card *card = rtd->card; in omap_abe_hw_params() 52 int clk_id, freq; in omap_abe_hw_params() local [all …]
|
| /kernel/linux/linux-6.6/sound/soc/ti/ |
| D | omap-dmic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * omap-dmic.c -- OMAP ASoC DMIC DAI driver 5 * Copyright (C) 2010 - 2011 Texas Instruments 30 #include "omap-dmic.h" 31 #include "sdma-pcm.h" 51 static inline void omap_dmic_write(struct omap_dmic *dmic, u16 reg, u32 val) in omap_dmic_write() argument 53 writel_relaxed(val, dmic->io_base + reg); in omap_dmic_write() 56 static inline int omap_dmic_read(struct omap_dmic *dmic, u16 reg) in omap_dmic_read() argument 58 return readl_relaxed(dmic->io_base + reg); in omap_dmic_read() 61 static inline void omap_dmic_start(struct omap_dmic *dmic) in omap_dmic_start() argument [all …]
|
| D | omap-abe-twl6040.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * omap-abe-twl6040.c -- SoC audio for TI OMAP based boards with ABE and 20 #include "omap-dmic.h" 21 #include "omap-mcpdm.h" 26 DAILINK_COMP_ARRAY(COMP_CODEC("twl6040-codec", 27 "twl6040-legacy")), 32 DAILINK_COMP_ARRAY(COMP_CODEC("dmic-codec", 33 "dmic-hifi")), 50 struct snd_soc_card *card = rtd->card; in omap_abe_hw_params() 52 int clk_id, freq; in omap_abe_hw_params() local [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/ |
| D | omap-abe-twl6040.txt | 4 - compatible: "ti,abe-twl6040" 5 - ti,model: Name of the sound card ( for example "SDP4430") 6 - ti,mclk-freq: MCLK frequency for HPPLL operation 7 - ti,mcpdm: phandle for the McPDM node 8 - ti,twl6040: phandle for the twl6040 core node 9 - ti,audio-routing: List of connections between audio components. 14 - ti,dmic: phandle for the OMAP dmic node if the machine have it connected 15 - ti,jack-detection: Need to be present if the board capable to detect jack 18 Available audio endpoints for the audio-routing table: 54 * DMic [all …]
|
| D | maxim,max98090.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 18 - $ref: dai-common.yaml# 23 - maxim,max98090 24 - maxim,max98091 31 - description: master clock 33 clock-names: 35 - const: mclk [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/ |
| D | omap-abe-twl6040.txt | 4 - compatible: "ti,abe-twl6040" 5 - ti,model: Name of the sound card ( for example "SDP4430") 6 - ti,mclk-freq: MCLK frequency for HPPLL operation 7 - ti,mcpdm: phandle for the McPDM node 8 - ti,twl6040: phandle for the twl6040 core node 9 - ti,audio-routing: List of connections between audio components. 14 - ti,dmic: phandle for the OMAP dmic node if the machine have it connected 15 - ti,jack-detection: Need to be present if the board capable to detect jack 18 Available audio endpoints for the audio-routing table: 54 * DMic [all …]
|
| D | max98090.txt | 7 - compatible : "maxim,max98090" or "maxim,max98091". 9 - reg : The I2C address of the device. 11 - interrupts : The CODEC's interrupt output. 15 - clocks: The phandle of the master clock to the CODEC 17 - clock-names: Should be "mclk" 19 - #sound-dai-cells : should be 0. 21 - maxim,dmic-freq: Frequency at which to clock DMIC 23 - maxim,micbias: Micbias voltage applies to the analog mic, valid voltages value are: 24 0 - 2.2v 25 1 - 2.55v [all …]
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| 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> 42 "Butterworth/8-24" 55 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max9867_adc_dac_event() 59 if (!strcmp(w->name, "ADCL")) in max9867_adc_dac_event() 61 else if (!strcmp(w->name, "ADCR")) in max9867_adc_dac_event() 63 else if (!strcmp(w->name, "DACL")) in max9867_adc_dac_event() 65 else if (!strcmp(w->name, "DACR")) in max9867_adc_dac_event() 71 max9867->adc_dac_active |= BIT(adc_dac); in max9867_adc_dac_event() [all …]
|
| 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 …]
|
| 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 279 /* Reset the codec by writing to this write-only reset register */ in max98090_reset() 280 ret = regmap_write(max98090->regmap, M98090_REG_SOFTWARE_RESET, in max98090_reset() 283 dev_err(max98090->component->dev, in max98090_reset() 300 -600, 600, 0); 303 0, 3, TLV_DB_SCALE_ITEM(-600, 300, 0), 308 static const DECLARE_TLV_DB_SCALE(max98090_av_tlv, -1200, 100, 0); 311 static const DECLARE_TLV_DB_SCALE(max98090_dv_tlv, -1500, 100, 0); [all …]
|
| D | rt5660.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5660.c -- RT5660 ALSA SoC audio codec driver 24 #include <sound/soc-dapm.h> 296 static const DECLARE_TLV_DB_SCALE(rt5660_out_vol_tlv, -4650, 150, 0); 297 static const DECLARE_TLV_DB_SCALE(rt5660_dac_vol_tlv, -6525, 75, 0); 298 static const DECLARE_TLV_DB_SCALE(rt5660_adc_vol_tlv, -1725, 75, 0); 300 static const DECLARE_TLV_DB_SCALE(rt5660_bst_tlv, -1200, 75, 0); 342 * rt5660_set_dmic_clk - Set parameter of dmic. 352 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in rt5660_set_dmic_clk() 356 rate = rt5660->sysclk / rl6231_get_pre_div(rt5660->regmap, in rt5660_set_dmic_clk() [all …]
|
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| 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 | 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 280 /* Reset the codec by writing to this write-only reset register */ in max98090_reset() 281 ret = regmap_write(max98090->regmap, M98090_REG_SOFTWARE_RESET, in max98090_reset() 284 dev_err(max98090->component->dev, in max98090_reset() 301 -600, 600, 0); 304 0, 3, TLV_DB_SCALE_ITEM(-600, 300, 0), 309 static const DECLARE_TLV_DB_SCALE(max98090_av_tlv, -1200, 100, 0); 312 static const DECLARE_TLV_DB_SCALE(max98090_dv_tlv, -1500, 100, 0); [all …]
|
| D | rt5514.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5514.c -- RT5514 ALSA SoC audio codec driver 25 #include <sound/soc-dapm.h> 32 #include "rt5514-spi.h" 121 regmap_write(rt5514->i2c_regmap, 0x18002000, 0x000010ec); in rt5514_enable_dsp_prepare() 123 regmap_write(rt5514->i2c_regmap, 0x18002200, 0x00028604); in rt5514_enable_dsp_prepare() 125 regmap_write(rt5514->i2c_regmap, 0xfafafafa, 0x00000001); in rt5514_enable_dsp_prepare() 126 /* mini-core reset */ in rt5514_enable_dsp_prepare() 127 regmap_write(rt5514->i2c_regmap, 0x18002f00, 0x0005514b); in rt5514_enable_dsp_prepare() 128 regmap_write(rt5514->i2c_regmap, 0x18002f00, 0x00055149); in rt5514_enable_dsp_prepare() [all …]
|
| D | rt5660.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5660.c -- RT5660 ALSA SoC audio codec driver 26 #include <sound/soc-dapm.h> 298 static const DECLARE_TLV_DB_SCALE(rt5660_out_vol_tlv, -4650, 150, 0); 299 static const DECLARE_TLV_DB_SCALE(rt5660_dac_vol_tlv, -6525, 75, 0); 300 static const DECLARE_TLV_DB_SCALE(rt5660_adc_vol_tlv, -1725, 75, 0); 302 static const DECLARE_TLV_DB_SCALE(rt5660_bst_tlv, -1200, 75, 0); 344 * rt5660_set_dmic_clk - Set parameter of dmic. 354 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in rt5660_set_dmic_clk() 358 rate = rt5660->sysclk / rl6231_get_pre_div(rt5660->regmap, in rt5660_set_dmic_clk() [all …]
|
| 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 …]
|
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/sound/soc/intel/boards/ |
| D | bdw-rt5650.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #include <sound/soc-acpi.h> 30 SND_SOC_DAPM_MIC("DMIC Pair1", NULL), 31 SND_SOC_DAPM_MIC("DMIC Pair2", NULL), 46 * DMIC Pair1 are the two DMICs connected on the DMICN1 connector. 47 * DMIC Pair2 are the two DMICs connected on the DMICN2 connector. 48 * Facing the camera, DMIC Pair1 are on the left side, DMIC Pair2 51 {"DMIC L1", NULL, "DMIC Pair1"}, 52 {"DMIC R1", NULL, "DMIC Pair1"}, 53 {"DMIC L2", NULL, "DMIC Pair2"}, [all …]
|
| D | sof_cs42l42.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 #include <sound/soc-acpi.h> 21 #include <dt-bindings/sound/cs42l42.h> 23 #include "../common/soc-intel-quirks.h" 90 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_hdmi_init() 94 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_hdmi_init() 96 return -ENOMEM; in sof_hdmi_init() 99 pcm->device = rtd->dai_link->id; in sof_hdmi_init() 100 pcm->codec_dai = dai; in sof_hdmi_init() 102 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in sof_hdmi_init() [all …]
|
| D | sof_nau8825.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 #include <sound/soc-acpi.h> 22 #include "../common/soc-intel-quirks.h" 69 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_hdmi_init() 73 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_hdmi_init() 75 return -ENOMEM; in sof_hdmi_init() 78 pcm->device = rtd->dai_link->id; in sof_hdmi_init() 79 pcm->codec_dai = dai; in sof_hdmi_init() 81 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in sof_hdmi_init() 99 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_nau8825_codec_init() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/intel/boards/ |
| D | bdw-rt5650.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #include <sound/soc-acpi.h> 30 SND_SOC_DAPM_MIC("DMIC Pair1", NULL), 31 SND_SOC_DAPM_MIC("DMIC Pair2", NULL), 46 * DMIC Pair1 are the two DMICs connected on the DMICN1 connector. 47 * DMIC Pair2 are the two DMICs connected on the DMICN2 connector. 48 * Facing the camera, DMIC Pair1 are on the left side, DMIC Pair2 51 {"DMIC L1", NULL, "DMIC Pair1"}, 52 {"DMIC R1", NULL, "DMIC Pair1"}, 53 {"DMIC L2", NULL, "DMIC Pair2"}, [all …]
|