Home
last modified time | relevance | path

Searched +full:asrc +full:- +full:format (Results 1 – 25 of 35) sorted by relevance

12

/linux/Documentation/devicetree/bindings/sound/
H A Dfsl-asoc-card.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/fsl-asoc-card.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Freescale Generic ASoC Sound Card with ASRC support
15 most of them have ASRC inside. And this is a specific feature that might
20 of the wide sample rates support through ASRC.
28 - Shengjiu Wang <shengjiu.wang@nxp.com>
33 - items:
34 - enum:
[all …]
/linux/sound/soc/fsl/
H A Dfsl-asoc-card.c1 // SPDX-License-Identifier: GPL-2.0
3 // Freescale Generic ASoC Sound Card driver with ASRC
23 #include "imx-audmux.h"
33 #define DRIVER_NAME "fsl-asoc-card"
40 /* Default DAI format without Master and Slave flag */
44 * struct codec_priv - CODEC private data
62 * struct cpu_priv - CPU private data
82 * struct fsl_asoc_card_priv - Freescale Generic ASOC card private data
92 * @sample_format: Current sample format
93 * @asrc_rate: ASRC sample rate used by Back-Ends
[all …]
H A Dfsl_asrc_m2m.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright (C) 2014-2016 Freescale Semiconductor, Inc.
4 // Copyright (C) 2019-2024 NXP
6 // Freescale ASRC Memory to Memory (M2M) driver
8 #include <linux/dma/imx-dma.h>
9 #include <linux/dma-buf.h>
10 #include <linux/dma-mapping.h>
35 complete(&pair->complete[IN]); in asrc_input_dma_callback()
43 complete(&pair->complete[OUT]); in asrc_output_dma_callback()
54 struct fsl_asrc *asrc = pair->asrc; in asrc_read_last_fifo() local
[all …]
H A Dfsl_asrc.c1 // SPDX-License-Identifier: GPL-2.0
3 // Freescale ASRC ALSA SoC Digital Audio Interface (DAI) driver
11 #include <linux/dma-mapping.h>
14 #include <linux/dma/imx-dma.h>
26 dev_err(&asrc->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__)
29 dev_dbg(&asrc
217 struct fsl_asrc *asrc = pair->asrc; fsl_asrc_request_pair() local
260 struct fsl_asrc *asrc = pair->asrc; fsl_asrc_release_pair() local
285 struct fsl_asrc *asrc = pair->asrc; fsl_asrc_set_watermarks() local
326 struct fsl_asrc *asrc = pair->asrc; fsl_asrc_set_ideal_ratio() local
381 struct fsl_asrc *asrc = pair->asrc; fsl_asrc_config_pair() local
585 struct fsl_asrc *asrc = pair->asrc; fsl_asrc_start_pair() local
619 struct fsl_asrc *asrc = pair->asrc; fsl_asrc_stop_pair() local
635 struct fsl_asrc *asrc = pair->asrc; fsl_asrc_get_dma_channel() local
647 struct fsl_asrc *asrc = snd_soc_dai_get_drvdata(dai); fsl_asrc_dai_startup() local
702 struct fsl_asrc *asrc = snd_soc_dai_get_drvdata(dai); fsl_asrc_dai_hw_params() local
786 struct fsl_asrc *asrc = snd_soc_dai_get_drvdata(dai); fsl_asrc_dai_probe() local
976 fsl_asrc_init(struct fsl_asrc * asrc) fsl_asrc_init() argument
1014 struct fsl_asrc *asrc = (struct fsl_asrc *)dev_id; fsl_asrc_isr() local
1070 struct fsl_asrc *asrc = pair->asrc; fsl_asrc_get_output_fifo_size() local
1084 struct fsl_asrc *asrc = pair->asrc; fsl_asrc_m2m_prepare() local
1163 struct fsl_asrc *asrc = pair->asrc; fsl_asrc_m2m_get_maxburst() local
1190 struct fsl_asrc *asrc = pair->asrc; fsl_asrc_m2m_pair_resume() local
1207 struct fsl_asrc *asrc; fsl_asrc_probe() local
1406 struct fsl_asrc *asrc = dev_get_drvdata(&pdev->dev); fsl_asrc_remove() local
1417 struct fsl_asrc *asrc = dev_get_drvdata(dev); fsl_asrc_runtime_resume() local
1492 struct fsl_asrc *asrc = dev_get_drvdata(dev); fsl_asrc_runtime_suspend() local
1513 struct fsl_asrc *asrc = dev_get_drvdata(dev); fsl_asrc_suspend() local
1523 struct fsl_asrc *asrc = dev_get_drvdata(dev); fsl_asrc_resume() local
[all...]
H A Dfsl_easrc.c1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/dma-mapping.h>
32 #include "imx-pcm.h"
51 struct fsl_easrc_priv *easrc_priv = easrc->private; in fsl_easrc_iec958_put_bits()
53 (struct soc_mreg_control *)kcontrol->private_value; in fsl_easrc_iec958_put_bits()
54 unsigned int regval = ucontrol->value.integer.value[0]; in fsl_easrc_iec958_put_bits()
58 return -EINVAL; in fsl_easrc_iec958_put_bits()
60 ret = (easrc_priv->bps_iec958[mc->regbase] != regval); in fsl_easrc_iec958_put_bits()
62 easrc_priv->bps_iec958[mc->regbase] = regval; in fsl_easrc_iec958_put_bits()
72 struct fsl_easrc_priv *easrc_priv = easrc->private; in fsl_easrc_iec958_get_bits()
[all …]
H A Dimx-card.c1 // SPDX-License-Identifier: GPL-2.0+
2 // Copyright 2017-2021 NXP
14 #include <sound/soc-dapm.h>
56 * struct imx_card_plat_data - specific info for codecs
90 * struct dai_link_data - specific info for dai link
105 * struct imx_card_data - platform device data
112 * @asrc_rate: asrc rates
113 * @asrc_format: asrc format
144 * Table 13 - Audio Interface Format
155 * Table 7 - mapping multiplier and speed mode
[all …]
/linux/sound/soc/sof/
H A Dipc4-topology.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
14 #include <sound/intel-nhlt.h>
15 #include "sof-priv.h"
16 #include "sof-audio.h"
17 #include "ipc4-priv.h"
18 #include "ipc4-topology.h"
189 /* ASRC */
206 [SOF_IN_AUDIO_FORMAT_TOKENS] = {"IPC4 Input Audio format tokens",
208 [SOF_OUT_AUDIO_FORMAT_TOKENS] = {"IPC4 Output Audio format tokens",
214 [SOF_AUDIO_FMT_NUM_TOKENS] = {"IPC4 Audio format number tokens",
[all …]
H A Dipc3-topology.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
12 #include "sof-priv.h"
13 #include "sof-audio.h"
14 #include "ipc3-priv.h"
138 /* ASRC */
271 offsetof(struct sof_ipc_dai_mtk_afe_params, format)},
334 [SOF_ASRC_TOKENS] = {"ASRC tokens", asrc_tokens, ARRAY_SIZE(asrc_tokens)},
354 * sof_comp_alloc - allocate and initialize buffer for a new component
367 size_t ext_size = sizeof(swidget->uuid); in sof_comp_alloc()
369 /* only non-zero UUID is valid */ in sof_comp_alloc()
[all …]
H A Dipc4-topology.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
15 #define SOF_IPC4_FW_PAGE(x) ((((x) + BIT(12) - 1) & ~(BIT(12) - 1)) >> 12)
16 #define SOF_IPC4_FW_ROUNDUP(x) (((x) + BIT(6) - 1) & (~(BIT(6) -
[all...]
/linux/arch/arm64/boot/dts/freescale/
H A Dimx8mn-bsh-smm-s2pro.dts1 // SPDX-License-Identifier: GPL-2.0+
7 /dts-v1/;
9 #include "imx8mn-bsh-smm-s2-common.dtsi"
10 #include <dt-bindings/sound/tlv320aic31xx.h>
14 compatible = "bsh,imx8mn-bsh-smm-s2pro", "fsl,imx8mn";
21 sound-tlv320aic31xx {
22 compatible = "fsl,imx-audio-tlv320aic31xx";
23 model = "tlv320aic31xx-hifi";
24 audio-cpu = <&sai3>;
25 audio-codec = <&tlv320dac3101>;
[all …]
H A Dimx8mn-beacon-baseboard.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
7 dmic_codec: dmic-codec {
8 compatible = "dmic-codec";
9 num-channels = <1>;
10 #sound-dai-cells = <0>;
14 compatible = "gpio-leds";
16 led-0 {
19 default-state = "off";
22 led-1 {
25 default-state = "off";
[all …]
/linux/sound/soc/codecs/
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()
751 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -652
[all...]
H A Drt5677.c1 // 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->componen in rt5677_dsp_mode_i2c_write_addr()
[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-wcl
[all...]
H A Drt5645.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5645.c -- RT5645 ALSA SoC audio codec driver
26 #include <sound/soc-dapm.h>
41 static unsigned int quirk = -1;
439 /* Some (package) variants have the headset-mic pin not-connecte
[all...]
H A Drt5677.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * rt5677.h -- RT5677 ALSA SoC audio driver
20 /* I/O - Output */
22 /* I/O - Input */
25 /* I/O - SLIMBus */
31 /* I/O - AD
[all...]
H A Drt5670.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * rt5670.h -- RT5670 ALSA SoC audio driver
17 /* I/O - Output */
20 /* I/O - Input */
26 /* I/O - ADC/DAC/DMIC */
34 /* Mixer - D-D */
47 /* Mixer - PDM */
56 /* Mixer - ADC */
61 /* Mixer - DAC */
77 /* Format - ADC/DAC */
[all …]
H A Drt5645.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * rt5645.h -- RT5645 ALSA SoC audio driver
17 /* I/O - Output */
22 /* I/O - Input */
30 /* I/O - ADC/DAC/DMIC */
38 /* Mixer -
[all...]
H A Drt5640.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * rt5640.h -- RT5640 ALSA SoC audio driver
15 #include <dt-bindings/sound/rt5640.h>
22 /* I/O - Output */
27 /* I/O - Input */
31 /* I/O - ADC/DAC/DMIC */
38 /* Mixer - D-D */
48 /* Mixer - ADC */
53 /* Mixer - DAC */
78 /* Format - ADC/DAC */
[all …]
/linux/sound/soc/mediatek/mt8186/
H A Dmt8186-dai-i2s.c1 // SPDX-License-Identifier: GPL-2.0
11 #include "mt8186-afe-clk.h"
12 #include "mt8186-afe-common.h"
13 #include "mt8186-afe-gpio.h"
14 #include "mt8186-interconnectio
54 get_i2s_wlen(snd_pcm_format_t format) get_i2s_wlen() argument
934 snd_pcm_format_t format = params_format(params); mtk_dai_i2s_config() local
[all...]
/linux/sound/soc/intel/boards/
H A Dcht_bsw_rt5645.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cht-bsw-rt5645.c - ASoc Machine driver for Intel Cherryview-based platforms
25 #include <sound/soc-acpi.h>
27 #include "../atom/sst-ato
616 struct acpi_buffer format = {sizeof("NN"), "NN"}; snd_cht_mc_probe() local
[all...]
H A Dcht_bsw_rt5672.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cht_bsw_rt5672.c - ASoc Machine driver for Intel Cherryview-based platforms
22 #include <sound/soc-acpi.h>
24 #include "../atom/sst-atom-controls.h"
25 #include "../common/soc-inte
[all...]
/linux/sound/soc/mediatek/mt8192/
H A Dmt8192-dai-i2s.c1 // SPDX-License-Identifier: GPL-2.0
13 #include "mt8192-afe-clk.h"
14 #include "mt8192-afe-common.h"
15 #include "mt8192-afe-gpio.h"
16 #include "mt8192-interconnectio
55 get_i2s_wlen(snd_pcm_format_t format) get_i2s_wlen() argument
1672 snd_pcm_format_t format = params_format(params); mtk_dai_i2s_config() local
[all...]
/linux/sound/soc/qcom/
H A Dsdm845.c1 // SPDX-License-Identifier: GPL-2.0
6 #include <dt-bindings/sound/qcom,q6afe.h>
15 #include <uapi/linux/input-event-codes.h>
72 if (ret != 0 && ret != -ENOTSUPP) { in sdm845_slim_snd_hw_params()
75 } else if (ret == -ENOTSUPP) { in sdm845_slim_snd_hw_params()
80 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in sdm845_slim_snd_hw_params()
86 if (ret != 0 && ret != -ENOTSUPP) { in sdm845_slim_snd_hw_params()
87 dev_err(rtd->dev, "failed to set cpu chan map, err:%d\n", ret); in sdm845_slim_snd_hw_params()
109 dev_err(rtd->dev, "%s: invalid param format 0x%x\n", in sdm845_tdm_snd_hw_params()
111 return -EINVAL; in sdm845_tdm_snd_hw_params()
[all …]
/linux/sound/soc/intel/avs/
H A Dpath.c1 // SPDX-License-Identifier: GPL-2.0-only
18 /* Must be called with adev->comp_list_mutex held. */
24 list_for_each_entry(acomp, &adev->comp_list, node) in avs_path_find_tplg()
25 if (!strcmp(acomp->tplg->name, name)) in avs_path_find_tplg()
26 return acomp->tplg; in avs_path_find_tplg()
35 list_for_each_entry(mod, &ppl->mod_list, node) in avs_path_find_module()
36 if (mod->template->id == template_id) in avs_path_find_module()
46 list_for_each_entry(ppl, &path->ppl_list, node) in avs_path_find_pipeline()
47 if (ppl->template->id == template_id) in avs_path_find_pipeline()
63 list_for_each_entry(pos, &tplg->path_tmpl_list, node) { in avs_path_find_path()
[all …]

12