Home
last modified time | relevance | path

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

/sound/soc/fsl/
Dfsl_asrc.c25 dev_err(&asrc->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__)
28 dev_dbg(&asrc->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__)
213 struct fsl_asrc *asrc = pair->asrc; in fsl_asrc_request_pair() local
214 struct device *dev = &asrc->pdev->dev; in fsl_asrc_request_pair()
218 spin_lock_irqsave(&asrc->lock, lock_flags); in fsl_asrc_request_pair()
221 if (asrc->pair[i] != NULL) in fsl_asrc_request_pair()
233 } else if (asrc->channel_avail < channels) { in fsl_asrc_request_pair()
237 asrc->channel_avail -= channels; in fsl_asrc_request_pair()
238 asrc->pair[index] = pair; in fsl_asrc_request_pair()
243 spin_unlock_irqrestore(&asrc->lock, lock_flags); in fsl_asrc_request_pair()
[all …]
Dfsl_asrc_dma.c140 struct fsl_asrc *asrc = pair->asrc; in fsl_asrc_dma_hw_params() local
174 dma_params_fe->addr = asrc->paddr + asrc->get_fifo_addr(!dir, index); in fsl_asrc_dma_hw_params()
177 pair->dma_chan[!dir] = asrc->get_dma_channel(pair, !dir); in fsl_asrc_dma_hw_params()
224 if (!asrc->use_edma) { in fsl_asrc_dma_hw_params()
232 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()
274 config_be.src_addr = asrc->paddr + asrc->get_fifo_addr(OUT, index); in fsl_asrc_dma_hw_params()
277 config_be.dst_addr = asrc->paddr + asrc->get_fifo_addr(IN, index); in fsl_asrc_dma_hw_params()
325 struct fsl_asrc *asrc = dev_get_drvdata(dev); in fsl_asrc_dma_startup() local
339 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
31 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()
/sound/soc/sof/
Dtopology.c2010 struct sof_ipc_comp_asrc *asrc; in sof_widget_load_asrc() local
2011 size_t ipc_size = sizeof(*asrc); in sof_widget_load_asrc()
2014 asrc = (struct sof_ipc_comp_asrc *) in sof_widget_load_asrc()
2016 if (!asrc) in sof_widget_load_asrc()
2020 asrc->comp.type = SOF_COMP_ASRC; in sof_widget_load_asrc()
2021 asrc->config.hdr.size = sizeof(asrc->config); in sof_widget_load_asrc()
2023 ret = sof_parse_tokens(scomp, asrc, asrc_tokens, in sof_widget_load_asrc()
2032 ret = sof_parse_tokens(scomp, &asrc->config, comp_tokens, in sof_widget_load_asrc()
2043 swidget->widget->name, asrc->source_rate, asrc->sink_rate, in sof_widget_load_asrc()
2044 asrc->asynchronous_mode, asrc->operation_mode); in sof_widget_load_asrc()
[all …]