Home
last modified time | relevance | path

Searched +full:dmic +full:- +full:sample +full:- +full:rate (Results 1 – 25 of 70) sorted by relevance

123

/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Dqcom,lpass-tx-macro.yaml1 # 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,sm8550-lpass-tx-macro
19 - qcom,sc8280xp-lpass-tx-macro
[all …]
H A Dqcom,lpass-va-macro.yaml1 # 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,sm8550-lpass-va-macro
19 - qcom,sc8280xp-lpass-va-macro
[all …]
H A Dqcom,lpass-wsa-macro.yaml1 # 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,sm8550-lpass-wsa-macro
19 - qcom,sc8280xp-lpass-wsa-macro
[all …]
/openbmc/linux/sound/soc/tegra/
H A Dtegra_audio_graph_card.c1 // 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.
13 #include <sound/soc-dai.h>
22 * Sample rates multiple of 8000 Hz and below are supported:
28 * Sample rates multiple of 11025 Hz and below are supported:
51 !dai->driver->ops || in need_clk_update()
52 !dai->driver->name) in need_clk_update()
55 if (strstr(dai->driver->name, "I2S") || in need_clk_update()
56 strstr(dai->driver->name, "DMIC") || in need_clk_update()
[all …]
H A DKconfig1 # 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 …]
H A Dtegra210_dmic.c1 // 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 …]
/openbmc/linux/include/sound/sof/
H A Ddai-intel.h1 /* 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 …]
/openbmc/linux/sound/hda/
H A Dintel-nhlt.c1 // 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 …]
/openbmc/linux/sound/soc/sunxi/
H A Dsun50i-dmic.c1 // 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 …]
/openbmc/linux/sound/soc/mediatek/mt8186/
H A Dmt8186-dai-adda.c1 // 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_dbg(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_dl_rate_transform()
[all …]
/openbmc/linux/sound/soc/mediatek/mt8183/
H A Dmt8183-dai-adda.c1 // 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 …]
/openbmc/linux/sound/soc/codecs/
H A Dlpass-va-macro.c1 // 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 …]
H A Dcs42l73.c1 // 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 …]
H A Dwm8995.c1 // 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 …]
H A Dmax9867.c1 // 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 …]
H A Drt5682.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // rt5682.c -- RT5682 ALSA SoC audio component driver
25 #include <sound/soc-dapm.h>
38 "LDO1-IN",
60 ret = regmap_multi_reg_write(rt5682->regmap, patch_list, in rt5682_apply_patch_list()
749 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -6525, 75, 0);
750 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -1725, 75, 0);
817 regmap_write(rt5682->regmap, RT5682_RESET, 0); in rt5682_reset()
818 if (!rt5682->is_sdw) in rt5682_reset()
819 regmap_write(rt5682->regmap, RT5682_I2C_MODE, 1); in rt5682_reset()
[all …]
H A Dwcd934x.c1 // 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 …]
H A Drt5682s.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // rt5682s.c -- RT5682I-VS ALSA SoC audio component driver
25 #include <sound/soc-dapm.h>
38 .dai_clk_names[RT5682S_DAI_WCLK_IDX] = "rt5682-dai-wclk",
39 .dai_clk_names[RT5682S_DAI_BCLK_IDX] = "rt5682-dai-bclk",
46 [RT5682S_SUPPLY_LDO1_IN] = "LDO1-IN",
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()
[all …]
/openbmc/linux/sound/soc/mediatek/mt8192/
H A Dmt8192-dai-adda.c1 // 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 …]
/openbmc/linux/sound/soc/fsl/
H A Dfsl-asoc-card.c1 // SPDX-License-Identifier: GPL-2.0
23 #include "imx-audmux.h"
32 #define DRIVER_NAME "fsl-asoc-card"
43 * struct codec_priv - CODEC private data
45 * @mclk_freq: Clock rate of MCLK
46 * @free_freq: Clock rate of MCLK for hw_free()
61 * struct cpu_priv - CPU private data
79 * struct fsl_asoc_card_priv - Freescale Generic ASOC card private data
88 * @sample_rate: Current sample rate
89 * @sample_format: Current sample format
[all …]
/openbmc/linux/sound/soc/amd/
H A Dacp-da7219-max98357a.c1 // SPDX-License-Identifier: MIT
5 //Copyright 2017-2021 Advanced Micro Devices, Inc.
11 #include <sound/soc-dapm.h>
56 struct snd_soc_card *card = rtd->card; in cz_da7219_init()
58 struct snd_soc_component *component = codec_dai->component; in cz_da7219_init()
60 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in cz_da7219_init()
65 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret); in cz_da7219_init()
72 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); in cz_da7219_init()
76 da7219_dai_wclk = devm_clk_get(component->dev, "da7219-dai-wclk"); in cz_da7219_init()
80 da7219_dai_bclk = devm_clk_get(component->dev, "da7219-dai-bclk"); in cz_da7219_init()
[all …]
/openbmc/linux/sound/soc/mediatek/mt8188/
H A Dmt8188-dai-adda.c1 // SPDX-License-Identifier: GPL-2.0
8 * Chun-Chia Chiu <chun-chia.chiu@mediatek.com>
14 #include "mt8188-afe-clk.h"
15 #include "mt8188-afe-common.h"
16 #include "mt8188-reg.h"
60 unsigned int rate) in afe_adda_dl_rate_transform() argument
62 switch (rate) { in afe_adda_dl_rate_transform()
86 dev_info(afe->dev, "%s(), rate %u invalid, use 48kHz!!!\n", in afe_adda_dl_rate_transform()
87 __func__, rate); in afe_adda_dl_rate_transform()
93 unsigned int rate) in afe_adda_ul_rate_transform() argument
[all …]
/openbmc/linux/include/linux/mfd/arizona/
H A Dpdata.h1 /* 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 …]
/openbmc/linux/sound/soc/mediatek/mt8195/
H A Dmt8195-dai-adda.c1 // 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 …]
/openbmc/linux/sound/soc/amd/vangogh/
H A Dacp5x-mach.c1 // SPDX-License-Identifier: GPL-2.0+
13 #include <linux/input-event-codes.h>
18 #include <sound/soc-dapm.h>
27 #define ACP5X_NAU8821_COMP_NAME "i2c-NVTN2020:00"
28 #define ACP5X_NAU8821_DAI_NAME "nau8821-hifi"
29 #define ACP5X_CS35L41_COMP_LNAME "spi-VLV1776:00"
30 #define ACP5X_CS35L41_COMP_RNAME "spi-VLV1776:01"
31 #define ACP5X_CS35L41_DAI_NAME "cs35l41-pcm"
32 #define ACP5X_MAX98388_COMP_LNAME "i2c-ADS8388:00"
33 #define ACP5X_MAX98388_COMP_RNAME "i2c-ADS8388:01"
[all …]

123