Home
last modified time | relevance | path

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

12

/linux/sound/soc/fsl/
H A 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 …]
H A Dfsl_asrc_m2m.c54 struct fsl_asrc *asrc = pair->asrc; in asrc_read_last_fifo() local
69 size = asrc->get_output_fifo_size(pair); in asrc_read_last_fifo()
74 regmap_read(asrc->regmap, asrc->get_fifo_addr(OUT, index), &reg); in asrc_read_last_fifo()
106 struct fsl_asrc *asrc = pair->asrc; in asrc_dmaconfig() local
107 struct device *dev = &asrc->pdev->dev; in asrc_dmaconfig()
137 slave_config.dst_maxburst = asrc->m2m_get_maxburst(IN, pair); in asrc_dmaconfig()
142 slave_config.src_maxburst = asrc->m2m_get_maxburst(OUT, pair); in asrc_dmaconfig()
188 struct fsl_asrc *asrc = pair->asrc; in asrc_m2m_device_run() local
189 struct device *dev = &asrc->pdev->dev; in asrc_m2m_device_run()
199 if (asrc->m2m_set_ratio_mod) { in asrc_m2m_device_run()
[all …]
H A Dfsl_asrc_dma.c141 struct fsl_asrc *asrc = pair->asrc; in fsl_asrc_dma_hw_params() local
190 dma_params_fe->addr = asrc->paddr + asrc->get_fifo_addr(!dir, index); in fsl_asrc_dma_hw_params()
193 pair->dma_chan[!dir] = asrc->get_dma_channel(pair, !dir); in fsl_asrc_dma_hw_params()
239 if (!asrc->use_edma) { in fsl_asrc_dma_hw_params()
248 tmp_chan = asrc->get_dma_channel(pair, dir); in fsl_asrc_dma_hw_params()
271 width = snd_pcm_format_physical_width(asrc->asrc_format); in fsl_asrc_dma_hw_params()
303 config_be.src_addr = asrc->paddr + asrc in fsl_asrc_dma_hw_params()
350 struct fsl_asrc *asrc = dev_get_drvdata(dev); fsl_asrc_dma_startup() local
424 struct fsl_asrc *asrc; fsl_asrc_dma_shutdown() local
[all...]
/linux/sound/soc/tegra/
H A Dtegra186_asrc.c69 static void tegra186_asrc_lock_stream(struct tegra186_asrc *asrc, in tegra186_asrc_lock_stream() argument
72 regmap_write(asrc->regmap, in tegra186_asrc_lock_stream()
80 struct tegra186_asrc *asrc = dev_get_drvdata(dev); in tegra186_asrc_runtime_suspend() local
82 regcache_cache_only(asrc->regmap, true); in tegra186_asrc_runtime_suspend()
83 regcache_mark_dirty(asrc->regmap); in tegra186_asrc_runtime_suspend()
90 struct tegra186_asrc *asrc = dev_get_drvdata(dev); in tegra186_asrc_runtime_resume() local
93 regcache_cache_only(asrc->regmap, false); in tegra186_asrc_runtime_resume()
100 regmap_write(asrc->regmap, TEGRA186_ASRC_GLOBAL_SCRATCH_ADDR, in tegra186_asrc_runtime_resume()
101 asrc->soc_data->aram_start_addr); in tegra186_asrc_runtime_resume()
102 regmap_write(asrc in tegra186_asrc_runtime_resume()
128 tegra186_asrc_set_audio_cif(struct tegra186_asrc * asrc,struct snd_pcm_hw_params * params,unsigned int reg) tegra186_asrc_set_audio_cif() argument
166 struct tegra186_asrc *asrc = snd_soc_dai_get_drvdata(dai); tegra186_asrc_in_hw_params() local
189 struct tegra186_asrc *asrc = snd_soc_dai_get_drvdata(dai); tegra186_asrc_out_hw_params() local
245 struct tegra186_asrc *asrc = snd_soc_component_get_drvdata(cmpnt); tegra186_asrc_get_ratio_source() local
259 struct tegra186_asrc *asrc = snd_soc_component_get_drvdata(cmpnt); tegra186_asrc_put_ratio_source() local
279 struct tegra186_asrc *asrc = snd_soc_component_get_drvdata(cmpnt); tegra186_asrc_get_ratio_int() local
297 struct tegra186_asrc *asrc = snd_soc_component_get_drvdata(cmpnt); tegra186_asrc_put_ratio_int() local
327 struct tegra186_asrc *asrc = snd_soc_component_get_drvdata(cmpnt); tegra186_asrc_get_ratio_frac() local
345 struct tegra186_asrc *asrc = snd_soc_component_get_drvdata(cmpnt); tegra186_asrc_put_ratio_frac() local
375 struct tegra186_asrc *asrc = snd_soc_component_get_drvdata(cmpnt); tegra186_asrc_get_hwcomp_disable() local
389 struct tegra186_asrc *asrc = snd_soc_component_get_drvdata(cmpnt); tegra186_asrc_put_hwcomp_disable() local
407 struct tegra186_asrc *asrc = snd_soc_component_get_drvdata(cmpnt); tegra186_asrc_get_input_threshold() local
421 struct tegra186_asrc *asrc = snd_soc_component_get_drvdata(cmpnt); tegra186_asrc_put_input_threshold() local
440 struct tegra186_asrc *asrc = snd_soc_component_get_drvdata(cmpnt); tegra186_asrc_get_output_threshold() local
454 struct tegra186_asrc *asrc = snd_soc_component_get_drvdata(cmpnt); tegra186_asrc_put_output_threshold() local
471 struct tegra186_asrc *asrc = dev_get_drvdata(cmpnt->dev); tegra186_asrc_widget_event() local
974 struct tegra186_asrc *asrc; tegra186_asrc_platform_probe() local
[all...]
/linux/arch/arm64/boot/dts/freescale/
H A Dimx8-ss-audio.dtsi123 asrc0: asrc@59000000 {
124 compatible = "fsl,imx8qm-asrc";
158 /* tx* is output channel of asrc, it is rx channel for eDMA */
160 fsl,asrc-rate = <8000>;
161 fsl,asrc-width = <16>;
162 fsl,asrc-clk-map = <0>;
276 interrupts = <GIC_SPI 374 IRQ_TYPE_LEVEL_HIGH>, /* 0 asrc 0 */
451 asrc1: asrc@59800000 {
452 compatible = "fsl,imx8qm-asrc";
486 /* tx* is output channel of asrc, it is rx channel for eDMA */
[all …]
H A Dimx8mn-bsh-smm-s2pro.dts26 audio-asrc = <&easrc>;
42 fsl,asrc-rate = <48000>;
43 fsl,asrc-format = <10>;
H A Dimx8mn-tqma8mqnl-mba8mx.dts83 audio-asrc = <&easrc>;
H A Dimx8dxl-ss-adma.dtsi80 interrupts = <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>, /* asrc 0 */
H A Dimx8mn-beacon-baseboard.dtsi245 fsl,asrc-rate = <48000>;
H A Dimx8qxp-mek.dts328 audio-asrc = <&asrc0>;
384 fsl,asrc-rate = <48000>;
H A Dimx8dxl-evk.dts250 audio-asrc = <&asrc0>;
298 fsl,asrc-rate = <48000>;
H A Dimx8mp-evk.dts213 audio-asrc = <&easrc>;
312 fsl,asrc-rate = <48000>;
H A Dimx8qm-mek.dts406 audio-asrc = <&asrc0>;
496 fsl,asrc-rate = <48000>;
H A Dimx8mn.dtsi428 fsl,asrc-rate = <8000>;
429 fsl,asrc-format = <2>;
H A Dimx8mp-tqma8mpql-mba8mpxl.dts238 audio-asrc = <&easrc>;
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6sx-sdb-mqs.dts17 audio-asrc = <&asrc>;
H A Dimx6ul.dtsi353 asrc: asrc@2034000 { label
354 compatible = "fsl,imx6ul-asrc", "fsl,imx53-asrc";
373 fsl,asrc-rate = <48000>;
374 fsl,asrc-width = <16>;
H A Dimx6sx-sabreauto.dts83 audio-asrc = <&asrc>;
H A Dimx6qdl-mba6.dtsi130 audio-asrc = <&asrc>;
H A Dimx6ul-14x14-evk.dtsi124 audio-asrc = <&asrc>;
H A Dimx6qdl-sabresd.dtsi112 audio-asrc = <&asrc>;
/linux/sound/soc/sof/
H A Dipc3-topology.c665 struct sof_ipc_comp_asrc *asrc; in sof_ipc3_widget_setup_comp_asrc() local
666 size_t ipc_size = sizeof(*asrc); in sof_ipc3_widget_setup_comp_asrc()
669 asrc = sof_comp_alloc(swidget, &ipc_size, swidget->pipeline_id); in sof_ipc3_widget_setup_comp_asrc()
670 if (!asrc) in sof_ipc3_widget_setup_comp_asrc()
673 swidget->private = asrc; in sof_ipc3_widget_setup_comp_asrc()
676 asrc->comp.type = SOF_COMP_ASRC; in sof_ipc3_widget_setup_comp_asrc()
677 asrc->config.hdr.size = sizeof(asrc->config); in sof_ipc3_widget_setup_comp_asrc()
680 ret = sof_update_ipc_object(scomp, asrc, SOF_ASRC_TOKENS, swidget->tuples, in sof_ipc3_widget_setup_comp_asrc()
681 swidget->num_tuples, sizeof(*asrc), 1); in sof_ipc3_widget_setup_comp_asrc()
686 ret = sof_update_ipc_object(scomp, &asrc->config, SOF_COMP_TOKENS, in sof_ipc3_widget_setup_comp_asrc()
[all …]
H A Dipc4-topology.c1107 struct sof_ipc4_asrc *asrc; in sof_ipc4_widget_setup_comp_asrc() local
1112 asrc = kzalloc(sizeof(*asrc), GFP_KERNEL); in sof_ipc4_widget_setup_comp_asrc()
1113 if (!asrc) in sof_ipc4_widget_setup_comp_asrc()
1116 swidget->private = asrc; in sof_ipc4_widget_setup_comp_asrc()
1118 ret = sof_ipc4_get_audio_fmt(scomp, swidget, &asrc->available_fmt, in sof_ipc4_widget_setup_comp_asrc()
1119 &asrc->data.base_config); in sof_ipc4_widget_setup_comp_asrc()
1123 ret = sof_update_ipc_object(scomp, &asrc->data, SOF_ASRC_TOKENS, swidget->tuples, in sof_ipc4_widget_setup_comp_asrc()
1124 swidget->num_tuples, sizeof(*asrc), 1); in sof_ipc4_widget_setup_comp_asrc()
1133 asrc in sof_ipc4_widget_setup_comp_asrc()
1161 struct sof_ipc4_asrc *asrc = swidget->private; sof_ipc4_widget_free_comp_asrc() local
3036 struct sof_ipc4_asrc *asrc = swidget->private; sof_ipc4_widget_setup() local
[all...]
/linux/arch/arm64/boot/dts/nvidia/
H A Dtegra186.dtsi496 tegra_asrc: asrc@2910000 {
497 compatible = "nvidia,tegra186-asrc";
H A Dtegra194.dtsi595 tegra_asrc: asrc@2910000 {
596 compatible = "nvidia,tegra194-asrc",
597 "nvidia,tegra186-asrc";

12