/Linux-v6.1/Documentation/devicetree/bindings/sound/ |
D | qcom,lpass-tx-macro.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/qcom,lpass-tx-macro.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 15 - qcom,sc7280-lpass-tx-macro 16 - qcom,sm8250-lpass-tx-macro 17 - qcom,sm8450-lpass-tx-macro 18 - qcom,sc8280xp-lpass-tx-macro 23 "#sound-dai-cells": [all …]
|
D | qcom,lpass-va-macro.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/qcom,lpass-va-macro.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 15 - qcom,sc7280-lpass-va-macro 16 - qcom,sm8250-lpass-va-macro 17 - qcom,sm8450-lpass-va-macro 18 - qcom,sc8280xp-lpass-va-macro 23 "#sound-dai-cells": [all …]
|
D | qcom,lpass-wsa-macro.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/qcom,lpass-wsa-macro.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 15 - qcom,sc7280-lpass-wsa-macro 16 - qcom,sm8250-lpass-wsa-macro 17 - qcom,sm8450-lpass-wsa-macro 18 - qcom,sc8280xp-lpass-wsa-macro 23 "#sound-dai-cells": [all …]
|
/Linux-v6.1/sound/soc/tegra/ |
D | tegra_audio_graph_card.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // tegra_audio_graph_card.c - Audio Graph based Tegra Machine Driver 5 // Copyright (c) 2020-2021 NVIDIA CORPORATION. All rights reserved. 21 * Sample rates multiple of 8000 Hz and below are supported: 27 * Sample rates multiple of 11025 Hz and below are supported: 47 /* Setup PLL clock as per the given sample rate */ 52 struct asoc_simple_priv *simple = snd_soc_card_get_drvdata(rtd->card); in tegra_audio_graph_update_pll() 54 struct device *dev = rtd->card->dev; in tegra_audio_graph_update_pll() 66 plla_out0_rate = data->plla_out0_rates[x11_RATE]; in tegra_audio_graph_update_pll() 67 plla_rate = data->plla_rates[x11_RATE]; in tegra_audio_graph_update_pll() [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 tristate "SoC Audio for the Tegra System-on-Chip" 70 tristate "Tegra210 DMIC module" 72 Config to enable the Digital MIC (DMIC) controller which is used 74 The DMIC controller implements a converter to convert PDM signals 77 Say Y or M if you want to add support for Tegra210 DMIC module. 82 Config to enable the Inter-IC Sound (I2S) Controller which 83 implements full-duplex and bidirectional and single direction 84 point-to-point serial interfaces. It can interface with I2S 100 Config to enable the Asynchronous Sample Rate Converter (ASRC), [all …]
|
D | tegra210_dmic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // tegra210_dmic.c - Tegra210 DMIC driver 26 /* Below enables all filters - DCR, LP and SC */ 45 struct tegra210_dmic *dmic = dev_get_drvdata(dev); in tegra210_dmic_runtime_suspend() local 47 regcache_cache_only(dmic->regmap, true); in tegra210_dmic_runtime_suspend() 48 regcache_mark_dirty(dmic->regmap); in tegra210_dmic_runtime_suspend() 50 clk_disable_unprepare(dmic->clk_dmic); in tegra210_dmic_runtime_suspend() 57 struct tegra210_dmic *dmic = dev_get_drvdata(dev); in tegra210_dmic_runtime_resume() local 60 err = clk_prepare_enable(dmic->clk_dmic); in tegra210_dmic_runtime_resume() 62 dev_err(dev, "failed to enable DMIC clock, err: %d\n", err); in tegra210_dmic_runtime_resume() [all …]
|
/Linux-v6.1/include/sound/sof/ |
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 */ 97 uint32_t rate; member 101 /* ALH Configuration Request - SOF_IPC_DAI_ALH_CONFIG */ 105 uint32_t rate; member 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 [all …]
|
/Linux-v6.1/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() 97 unsigned long rate = params_rate(params); in sun50i_dmic_hw_params() local 100 unsigned int chan_en = (1 << channels) - 1; in sun50i_dmic_hw_params() 103 /* DMIC num is N+1 */ in sun50i_dmic_hw_params() [all …]
|
/Linux-v6.1/sound/hda/ |
D | intel-nhlt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (c) 2015-2019 Intel Corporation 5 #include <sound/intel-nhlt.h> 42 if (nhlt->header.length <= sizeof(struct acpi_table_header)) { in intel_nhlt_get_dmic_geo() 43 dev_warn(dev, "Invalid DMIC description table\n"); in intel_nhlt_get_dmic_geo() 47 for (j = 0, epnt = nhlt->desc; j < nhlt->endpoint_count; j++, in intel_nhlt_get_dmic_geo() 48 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length)) { in intel_nhlt_get_dmic_geo() 50 if (epnt->linktype != NHLT_LINK_DMIC) in intel_nhlt_get_dmic_geo() 53 cfg = (struct nhlt_dmic_array_config *)(epnt->config.caps); in intel_nhlt_get_dmic_geo() 54 fmt_configs = (struct nhlt_fmt *)(epnt->config.caps + epnt->config.size); in intel_nhlt_get_dmic_geo() [all …]
|
/Linux-v6.1/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() 87 unsigned int rate) in adda_dl_rate_transform() argument 89 switch (rate) { in adda_dl_rate_transform() 113 dev_info(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_dl_rate_transform() [all …]
|
/Linux-v6.1/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" 51 unsigned int rate) in adda_dl_rate_transform() argument 53 switch (rate) { in adda_dl_rate_transform() 77 dev_warn(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_dl_rate_transform() 78 __func__, rate); in adda_dl_rate_transform() 84 unsigned int rate) in adda_ul_rate_transform() argument 86 switch (rate) { in adda_ul_rate_transform() [all …]
|
/Linux-v6.1/sound/soc/codecs/ |
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 …]
|
D | cs42l73.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cs42l73.c -- CS42L73 ALSA Soc Audio driver 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 */ 53 { 12, 0x00 }, /* r0C - Aux PCM Ctl */ [all …]
|
D | wm8995.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8995.c -- WM8995 ALSA SoC Audio driver 26 #include <sound/soc-dapm.h> 400 regcache_mark_dirty(wm8995->regmap); \ 414 static const DECLARE_TLV_DB_SCALE(digital_tlv, -7200, 75, 1); 415 static const DECLARE_TLV_DB_SCALE(in1lr_pga_tlv, -1650, 150, 0); 417 static const DECLARE_TLV_DB_SCALE(sidetone_tlv, -3600, 150, 0); 420 "Differential", "Single-ended IN1LN", "Single-ended IN1LP" 427 "Differential", "Single-ended IN1RN", "Single-ended IN1RP" 495 dev_dbg(component->dev, "Class W source AIF2DAC\n"); in wm8995_update_class_w() [all …]
|
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 …]
|
D | rt5682.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt5682.c -- RT5682 ALSA SoC audio component driver 26 #include <sound/soc-dapm.h> 59 ret = regmap_multi_reg_write(rt5682->regmap, patch_list, in rt5682_apply_patch_list() 748 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -6525, 75, 0); 749 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -1725, 75, 0); 816 regmap_write(rt5682->regmap, RT5682_RESET, 0); in rt5682_reset() 817 if (!rt5682->is_sdw) in rt5682_reset() 818 regmap_write(rt5682->regmap, RT5682_I2C_MODE, 1); in rt5682_reset() 823 * rt5682_sel_asrc_clk_src - select ASRC clock source for a set of filters [all …]
|
D | rt5682s.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt5682s.c -- RT5682I-VS ALSA SoC audio component driver 27 #include <sound/soc-dapm.h> 40 .dai_clk_names[RT5682S_DAI_WCLK_IDX] = "rt5682-dai-wclk", 41 .dai_clk_names[RT5682S_DAI_BCLK_IDX] = "rt5682-dai-bclk", 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() 651 mutex_lock(&rt5682s->sar_mutex); in rt5682s_sar_power_mode() 694 dev_err(component->dev, "Invalid SAR Power mode: %d\n", mode); in rt5682s_sar_power_mode() [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 | 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 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"}, \ 149 {"DMIC MUX" #id, "DMIC1", "DMIC1"}, \ [all …]
|
/Linux-v6.1/sound/soc/fsl/ |
D | fsl-asoc-card.c | 1 // SPDX-License-Identifier: GPL-2.0 23 #include "imx-audmux.h" 40 * struct codec_priv - CODEC private data 41 * @mclk_freq: Clock rate of MCLK 42 * @free_freq: Clock rate of MCLK for hw_free() 56 * struct cpu_priv - CPU private data 72 * struct fsl_asoc_card_priv - Freescale Generic ASOC card private data 81 * @sample_rate: Current sample rate 82 * @sample_format: Current sample format 83 * @asrc_rate: ASRC sample rate used by Back-Ends [all …]
|
/Linux-v6.1/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" 70 unsigned int rate) in adda_dl_rate_transform() argument 72 switch (rate) { in adda_dl_rate_transform() 96 dev_warn(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_dl_rate_transform() 97 __func__, rate); in adda_dl_rate_transform() 103 unsigned int rate) in adda_ul_rate_transform() argument [all …]
|
/Linux-v6.1/sound/soc/amd/ |
D | acp-da7219-max98357a.c | 1 // SPDX-License-Identifier: MIT 5 //Copyright 2017-2021 Advanced Micro Devices, Inc. 11 #include <sound/soc-dapm.h> 24 #include "../codecs/da7219-aad.h" 42 struct snd_soc_card *card = rtd->card; in cz_da7219_init() 44 struct snd_soc_component *component = codec_dai->component; in cz_da7219_init() 46 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in cz_da7219_init() 51 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret); in cz_da7219_init() 58 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); in cz_da7219_init() 62 da7219_dai_wclk = devm_clk_get(component->dev, "da7219-dai-wclk"); in cz_da7219_init() [all …]
|
/Linux-v6.1/include/linux/mfd/arizona/ |
D | pdata.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 #include <dt-bindings/mfd/arizona.h> 12 #include <linux/regulator/arizona-ldo1.h> 13 #include <linux/regulator/arizona-micsupp.h> 36 #define ARIZONA_GPN_FN_MASK 0x007F /* GPN_FN - [6:0] */ 37 #define ARIZONA_GPN_FN_SHIFT 0 /* GPN_FN - [6:0] */ 38 #define ARIZONA_GPN_FN_WIDTH 7 /* GPN_FN - [6:0] */ 62 unsigned int soft_start:1; /** Disable aggressive startup ramp rate */ 135 /** Mic detect ramp rate */ 138 /** Mic detect sample rate */ [all …]
|
/Linux-v6.1/sound/soc/mediatek/mt8195/ |
D | mt8195-dai-adda.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include "mt8195-afe-clk.h" 13 #include "mt8195-afe-common.h" 14 #include "mt8195-reg.h" 67 unsigned int rate) in afe_adda_dl_rate_transform() argument 69 switch (rate) { in afe_adda_dl_rate_transform() 93 dev_info(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in afe_adda_dl_rate_transform() 94 __func__, rate); in afe_adda_dl_rate_transform() 100 unsigned int rate) in afe_adda_ul_rate_transform() argument 102 switch (rate) { in afe_adda_ul_rate_transform() [all …]
|
/Linux-v6.1/sound/soc/meson/ |
D | axg-pdm.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 12 #include <sound/soc-dai.h> 53 #define PDM_CHAN_CTRL_POINTER_MAX ((1 << PDM_CHAN_CTRL_POINTER_WIDTH) - 1) 134 axg_pdm_enable(priv->map); in axg_pdm_trigger() 140 axg_pdm_disable(priv->map); in axg_pdm_trigger() 144 return -EINVAL; in axg_pdm_trigger() 150 const struct axg_pdm_filters *filters = priv->cfg->filters; in axg_pdm_get_os() 151 unsigned int os = filters->hcic.ds; in axg_pdm_get_os() 160 os *= filters->lpf[i].ds; in axg_pdm_get_os() 166 unsigned int rate) in axg_pdm_set_sysclk() argument [all …]
|