/linux/sound/soc/mediatek/mt8365/ |
H A D | mt8365-dai-dmic.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * MediaTek 8365 ALSA SoC Audio DAI DMIC Control 13 #include "mt8365-afe-clk.h" 14 #include "mt8365-afe-common.h" 46 return -EINVAL; in get_chan_reg() 55 regmap_update_bits(afe->regmap, AFE_ADDA_UL_DL_CON0, in audio_dmic_adda_enable() 62 regmap_update_bits(afe->regmap, AFE_ADDA_UL_DL_CON0, in audio_dmic_adda_disable() 72 struct mt8365_afe_private *afe_priv = afe->platform_priv; in mt8365_dai_enable_dmic() 73 struct mt8365_dmic_data *dmic_data = afe_priv->dai_priv[MT8365_AFE_IO_DMIC]; in mt8365_dai_enable_dmic() 75 int reg = get_chan_reg(dmic_data->dmic_channel); in mt8365_dai_enable_dmic() [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
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> 16 * DMIC L1 17 * DMIC R1 18 * DMIC L2 19 * DMIC R2 35 - $ref: dai-common.yaml# 40 - realtek,rt5645 [all …]
|
H A 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>;
|
H A D | mediatek,mt8365-afe.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mediatek,mt8365-afe.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Alexandre Mergnat <amergnat@baylibre.com> 14 const: mediatek,mt8365-afe-pcm 19 "#sound-dai-cells": 24 - description: 26M clock 25 - description: mux for audio clock 26 - description: audio i2s0 mck [all …]
|
/linux/Documentation/sound/hd-audio/ |
H A 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/sound/soc/codecs/ |
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. 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 …]
|
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. 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() 571 dev_err(component->dev, "Failed to set addr msb value: %d\n", ret); in rt5677_dsp_mode_i2c_write_addr() 575 ret = regmap_write(rt5677->regmap_physical, RT5677_DSP_I2C_ADDR_LSB, in rt5677_dsp_mode_i2c_write_addr() [all …]
|
H A 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 …]
|
H A 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() 71 max9867->adc_dac_active |= BIT(adc_dac); in max9867_adc_dac_event() 73 max9867->adc_dac_active &= ~BIT(adc_dac); in max9867_adc_dac_event() 86 ret = regmap_read(max9867->regmap, MAX9867_CODECFLTR, ®); in max9867_filter_get() 88 return -EINVAL; in max9867_filter_get() 91 ucontrol->value.enumerated.item[0] = 1; in max9867_filter_get() [all …]
|
H A D | tlv320adc3xxx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 // Copyright (C) 2014-2018, Ambarella, Inc. 15 #include <dt-bindings/sound/tlv320adc3xxx.h> 33 #include <sound/soc-dapm.h> 59 * Setting the clock source using simple-card (clocks or 60 * system-clock-frequency property) sets clk_id = 0 = ADC3XXX_PLL_AUTO. 62 #define ADC3XXX_PLL_AUTO 0 /* Use first available mode */ 78 /* 2-3 Reserved */ 86 /* 9-17 Reserved */ 93 /* 23-24 Reserved */ [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 …]
|
/linux/arch/riscv/boot/dts/allwinner/ |
H A 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 …]
|
/linux/sound/soc/mediatek/mt8186/ |
H A 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" 14 #include "../common/mtk-dai-adda-common.h" 47 struct mt8186_afe_private *afe_priv = afe->platform_priv; in get_adda_priv_by_name() 55 return afe_priv->dai_priv[dai_id]; in get_adda_priv_by_name() 132 return -EINVAL; in mtk_adda_ul_src_dmic() 135 /* dmic mode, 3.25M*/ in mtk_adda_ul_src_dmic() [all …]
|
/linux/sound/soc/mediatek/mt8192/ |
H A 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" 16 #include "../common/mtk-dai-adda-common.h" 189 return -EINVAL; in mtk_adda_ul_src_dmic() 192 /* dmic mode, 3.25M*/ in mtk_adda_ul_src_dmic() 193 regmap_update_bits(afe->regmap, reg, in mtk_adda_ul_src_dmic() 196 regmap_update_bits(afe->regmap, reg, in mtk_adda_ul_src_dmic() [all …]
|
/linux/include/sound/sof/ |
H A 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 …]
|
H A D | dai-intel.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 58 /* DMIC max. four controllers for eight microphone channels */ 61 /* SSP Configuration Request - SOF_IPC_DAI_SSP_CONFIG */ 93 /* HDA Configuration Request - SOF_IPC_DAI_HDA_CONFIG */ 101 /* ALH Configuration Request - SOF_IPC_DAI_ALH_CONFIG */ 112 /* DMIC Configuration Request - SOF_IPC_DAI_DMIC_CONFIG */ 127 * that delays the sampling time of data by half cycles of DMIC source clock 149 * device driver src/drivers/dmic.c need to match. It is incremented from 155 * range 1.0 - 3.2 MHz is usually supported microphones. Some microphones are 156 * multi-mode capable and there may be denied mic clock frequencies between [all …]
|
/linux/sound/soc/mediatek/mt8183/ |
H A 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" 13 #include "../common/mtk-dai-adda-common.h" 62 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mtk_adda_ul_event() 64 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_adda_ul_event() 66 dev_dbg(afe->dev, "%s(), name %s, event 0x%x\n", in mtk_adda_ul_event() 67 __func__, w->name, event); in mtk_adda_ul_event() 71 /* update setting to dmic */ in mtk_adda_ul_event() [all …]
|
/linux/sound/soc/intel/boards/ |
H A D | sof_sdw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * sof_sdw - ASOC Machine driver for Intel SoundWire platforms 17 #include <sound/soc-acpi.h> 22 static int quirk_override = -1; 24 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); 31 dev_dbg(dev, "quirk realtek,jack-detect-source %ld\n", in log_quirks() 54 sof_sdw_quirk = (unsigned long)id->driver_data; in sof_sdw_quirk_cb() 186 * (e.g. 15-eb1xxx, 14t-ea000 or 13-aw2xxx) 255 /* TigerLake-SDCA devices */ 793 quirk_entry = snd_pci_quirk_lookup_id(mach->mach_params.subsystem_vendor, in sof_sdw_check_ssid_quirk() [all …]
|
/linux/Documentation/devicetree/bindings/soc/tegra/ |
H A D | nvidia,tegra20-pmc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/soc/tegra/nvidia,tegra20-pmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Jonathan Hunter <jonathanh@nvidia.com> 16 - nvidia,tegra20-pmc 17 - nvidia,tegra30-pmc 18 - nvidia,tegra114-pmc 19 - nvidia,tegra124-pmc [all …]
|
/linux/Documentation/devicetree/bindings/arm/tegra/ |
H A D | nvidia,tegra186-pmc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/arm/tegra/nvidia,tegra186-pmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Jon Hunter <jonathanh@nvidia.com> 16 - nvidia,tegra186-pmc 17 - nvidia,tegra194-pmc 18 - nvidia,tegra234-pmc 24 reg-names: [all …]
|
/linux/sound/soc/sof/intel/ |
H A D | hda.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 26 #include <sound/intel-dsp-config.h> 27 #include <sound/intel-nhlt.h> 28 #include <sound/soc-acpi-intel-ssp-common.h> 31 #include <sound/hda-mlink.h> 32 #include "../sof-audio.h" 33 #include "../sof-pci-dev.h" 35 #include "../ipc4-topology.h" 41 #include <sound/soc-acpi-intel-match.h> 62 struct snd_soc_dai *d = params_data->dai; in sdw_params_stream() [all …]
|
/linux/Documentation/devicetree/bindings/iio/adc/ |
H A 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@foss.st.com> 11 - Olivier Moysan <olivier.moysan@foss.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 …]
|
/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8186-corsola-steelix-sku131072.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 /dts-v1/; 7 #include "mt8186-corsola-steelix.dtsi" 11 compatible = "google,steelix-sku131072", "google,steelix", 13 chassis-type = "convertible"; 17 mediatek,dmic-mode = <0>; /* two-wire */
|
H A D | mt8186-corsola-steelix-sku131073.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 /dts-v1/; 7 #include "mt8186-corsola-steelix.dtsi" 11 compatible = "google,steelix-sku131073", "google,steelix", 13 chassis-type = "convertible"; 17 mediatek,dmic-mode = <1>; /* one-wire */
|
H A D | mt8183-kukui-jacuzzi-kappa.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 = "laptop"; 17 mediatek,dmic-mode = <1>; /* one-wire */
|