Home
last modified time | relevance | path

Searched refs:asrc (Results 1 – 25 of 37) sorted by relevance

12

/linux-6.1.9/sound/soc/fsl/
Dfsl_asrc.c26 dev_err(&asrc->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__)
29 dev_dbg(&asrc->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__)
32 dev_warn(&asrc->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__)
217 struct fsl_asrc *asrc = pair->asrc; in fsl_asrc_request_pair() local
218 struct device *dev = &asrc->pdev->dev; in fsl_asrc_request_pair()
222 spin_lock_irqsave(&asrc->lock, lock_flags); in fsl_asrc_request_pair()
225 if (asrc->pair[i] != NULL) in fsl_asrc_request_pair()
237 } else if (asrc->channel_avail < channels) { in fsl_asrc_request_pair()
241 asrc->channel_avail -= channels; in fsl_asrc_request_pair()
242 asrc->pair[index] = pair; in fsl_asrc_request_pair()
[all …]
Dfsl_asrc_dma.c141 struct fsl_asrc *asrc = pair->asrc; in fsl_asrc_dma_hw_params() local
177 dma_params_fe->addr = asrc->paddr + asrc->get_fifo_addr(!dir, index); in fsl_asrc_dma_hw_params()
180 pair->dma_chan[!dir] = asrc->get_dma_channel(pair, !dir); in fsl_asrc_dma_hw_params()
221 if (!asrc->use_edma) { in fsl_asrc_dma_hw_params()
230 tmp_chan = asrc->get_dma_channel(pair, dir); in fsl_asrc_dma_hw_params()
253 width = snd_pcm_format_physical_width(asrc->asrc_format); in fsl_asrc_dma_hw_params()
285 config_be.src_addr = asrc->paddr + asrc->get_fifo_addr(OUT, index); in fsl_asrc_dma_hw_params()
288 config_be.dst_addr = asrc->paddr + asrc->get_fifo_addr(IN, index); in fsl_asrc_dma_hw_params()
332 struct fsl_asrc *asrc = dev_get_drvdata(dev); in fsl_asrc_dma_startup() local
346 pair = kzalloc(sizeof(*pair) + asrc->pair_priv_size, GFP_KERNEL); in fsl_asrc_dma_startup()
[all …]
Dfsl_asrc_common.h39 struct fsl_asrc *asrc; member
DMakefile17 snd-soc-fsl-asrc-objs := fsl_asrc.o fsl_asrc_dma.o
34 obj-$(CONFIG_SND_SOC_FSL_ASRC) += snd-soc-fsl-asrc.o
Dfsl_easrc.c174 struct fsl_asrc *easrc = ctx->asrc; in fsl_easrc_set_rs_ratio()
750 struct fsl_asrc *easrc = ctx->asrc; in fsl_easrc_config_one_slot()
1046 struct fsl_asrc *easrc = ctx->asrc; in fsl_easrc_process_format()
1129 struct fsl_asrc *easrc = ctx->asrc; in fsl_easrc_set_ctx_format()
1206 easrc = ctx->asrc; in fsl_easrc_set_ctx_organziation()
1243 struct fsl_asrc *easrc = ctx->asrc; in fsl_easrc_request_context()
1293 easrc = ctx->asrc; in fsl_easrc_release_context()
1312 struct fsl_asrc *easrc = ctx->asrc; in fsl_easrc_start_context()
1330 struct fsl_asrc *easrc = ctx->asrc; in fsl_easrc_stop_context()
1378 struct fsl_asrc *easrc = ctx->asrc; in fsl_easrc_get_dma_channel()
/linux-6.1.9/sound/soc/tegra/
Dtegra186_asrc.c71 static void tegra186_asrc_lock_stream(struct tegra186_asrc *asrc, in tegra186_asrc_lock_stream() argument
74 regmap_write(asrc->regmap, in tegra186_asrc_lock_stream()
82 struct tegra186_asrc *asrc = dev_get_drvdata(dev); in tegra186_asrc_runtime_suspend() local
84 regcache_cache_only(asrc->regmap, true); in tegra186_asrc_runtime_suspend()
85 regcache_mark_dirty(asrc->regmap); in tegra186_asrc_runtime_suspend()
92 struct tegra186_asrc *asrc = dev_get_drvdata(dev); in tegra186_asrc_runtime_resume() local
95 regcache_cache_only(asrc->regmap, false); in tegra186_asrc_runtime_resume()
102 regmap_write(asrc->regmap, TEGRA186_ASRC_GLOBAL_SCRATCH_ADDR, in tegra186_asrc_runtime_resume()
104 regmap_write(asrc->regmap, TEGRA186_ASRC_GLOBAL_ENB, in tegra186_asrc_runtime_resume()
107 regcache_sync(asrc->regmap); in tegra186_asrc_runtime_resume()
[all …]
DMakefile14 snd-soc-tegra186-asrc-objs := tegra186_asrc.o
34 obj-$(CONFIG_SND_SOC_TEGRA186_ASRC) += snd-soc-tegra186-asrc.o
/linux-6.1.9/Documentation/devicetree/bindings/sound/
Dfsl,asrc.txt13 "fsl,imx35-asrc",
14 "fsl,imx53-asrc",
15 "fsl,imx8qm-asrc",
16 "fsl,imx8qxp-asrc",
39 - fsl,asrc-rate : Defines a mutual sample rate used by DPCM Back Ends.
41 - fsl,asrc-width : Defines a mutual sample width used by DPCM Back Ends.
43 - fsl,asrc-clk-map : Defines clock map used in driver. which is required
54 - fsl,asrc-format : Defines a mutual sample format used by DPCM Back
55 Ends, which can replace the fsl,asrc-width.
60 asrc: asrc@2034000 {
[all …]
Dnvidia,tegra186-asrc.yaml4 $id: http://devicetree.org/schemas/sound/nvidia,tegra186-asrc.yaml#
30 pattern: "^asrc@[0-9a-f]*$"
34 - const: nvidia,tegra186-asrc
37 - nvidia,tegra234-asrc
38 - nvidia,tegra194-asrc
39 - const: nvidia,tegra186-asrc
75 asrc@2910000 {
76 compatible = "nvidia,tegra186-asrc";
Dfsl,easrc.yaml52 fsl,asrc-rate:
58 fsl,asrc-format:
74 - fsl,asrc-rate
75 - fsl,asrc-format
98 fsl,asrc-rate = <8000>;
99 fsl,asrc-format = <2>;
Dfsl-asoc-card.txt8 have ASRC (Documentation/devicetree/bindings/sound/fsl,asrc.txt) inside. And
61 - audio-asrc : The phandle of ASRC. It can be absent if there's no
100 audio-asrc = <&asrc>;
Dnvidia,tegra210-ahub.yaml109 '^asrc@[0-9a-f]+$':
111 $ref: nvidia,tegra186-asrc.yaml#
/linux-6.1.9/arch/arm/boot/dts/
Dimx6sx-sdb-mqs.dts17 audio-asrc = <&asrc>;
Dimx6ul.dtsi348 asrc: asrc@2034000 { label
349 compatible = "fsl,imx6ul-asrc", "fsl,imx53-asrc";
368 fsl,asrc-rate = <48000>;
369 fsl,asrc-width = <16>;
Dimx6qdl-mba6.dtsi116 audio-asrc = <&asrc>;
Dimx6sx-sabreauto.dts83 audio-asrc = <&asrc>;
Dimx6ul-14x14-evk.dtsi68 audio-asrc = <&asrc>;
Dmba6ulx.dtsi145 audio-asrc = <&asrc>;
Dimx6sx.dtsi401 asrc: asrc@2034000 { label
402 compatible = "fsl,imx6sx-asrc", "fsl,imx53-asrc";
422 fsl,asrc-rate = <48000>;
423 fsl,asrc-width = <16>;
Dimx6qdl.dtsi459 asrc: asrc@2034000 { label
460 compatible = "fsl,imx53-asrc";
479 fsl,asrc-rate = <48000>;
480 fsl,asrc-width = <16>;
/linux-6.1.9/arch/arm64/boot/dts/freescale/
Dimx8mn-bsh-smm-s2pro.dts26 audio-asrc = <&easrc>;
42 fsl,asrc-rate = <48000>;
43 fsl,asrc-format = <10>;
Dimx8mn-evk.dtsi89 audio-asrc = <&easrc>;
105 fsl,asrc-rate = <48000>;
Dimx8mn-beacon-baseboard.dtsi149 fsl,asrc-rate = <48000>;
/linux-6.1.9/sound/soc/sof/
Dipc3-topology.c626 struct sof_ipc_comp_asrc *asrc; in sof_ipc3_widget_setup_comp_asrc() local
627 size_t ipc_size = sizeof(*asrc); in sof_ipc3_widget_setup_comp_asrc()
630 asrc = sof_comp_alloc(swidget, &ipc_size, swidget->pipeline_id); in sof_ipc3_widget_setup_comp_asrc()
631 if (!asrc) in sof_ipc3_widget_setup_comp_asrc()
634 swidget->private = asrc; in sof_ipc3_widget_setup_comp_asrc()
637 asrc->comp.type = SOF_COMP_ASRC; in sof_ipc3_widget_setup_comp_asrc()
638 asrc->config.hdr.size = sizeof(asrc->config); in sof_ipc3_widget_setup_comp_asrc()
641 ret = sof_update_ipc_object(scomp, asrc, SOF_ASRC_TOKENS, swidget->tuples, in sof_ipc3_widget_setup_comp_asrc()
642 swidget->num_tuples, sizeof(*asrc), 1); in sof_ipc3_widget_setup_comp_asrc()
647 ret = sof_update_ipc_object(scomp, &asrc->config, SOF_COMP_TOKENS, in sof_ipc3_widget_setup_comp_asrc()
[all …]
/linux-6.1.9/sound/soc/intel/avs/
Dtopology.h90 } asrc; member

12