Lines Matching refs:dai_id
202 unsigned int dai_id = cpu_dai->driver->id; in lpass_platform_pcmops_open() local
204 component->id = dai_id; in lpass_platform_pcmops_open()
213 dma_ch = v->alloc_dma_channel(drvdata, dir, dai_id); in lpass_platform_pcmops_open()
222 switch (dai_id) { in lpass_platform_pcmops_open()
245 switch (dai_id) { in lpass_platform_pcmops_open()
292 unsigned int dai_id = cpu_dai->driver->id; in lpass_platform_pcmops_close() local
296 switch (dai_id) { in lpass_platform_pcmops_close()
315 v->free_dma_channel(drvdata, data->dma_ch, dai_id); in lpass_platform_pcmops_close()
432 unsigned int dai_id = cpu_dai->driver->id; in lpass_platform_pcmops_hw_params() local
456 switch (dai_id) { in lpass_platform_pcmops_hw_params()
496 dev_err(soc_runtime->dev, "%s: invalid interface: %d\n", __func__, dai_id); in lpass_platform_pcmops_hw_params()
528 regval = (dai_id == LPASS_DP_RX ? in lpass_platform_pcmops_hw_params()
533 regval = (dai_id == LPASS_DP_RX ? in lpass_platform_pcmops_hw_params()
538 regval = (dai_id == LPASS_DP_RX ? in lpass_platform_pcmops_hw_params()
543 regval = (dai_id == LPASS_DP_RX ? in lpass_platform_pcmops_hw_params()
581 unsigned int dai_id = cpu_dai->driver->id; in lpass_platform_pcmops_hw_free() local
583 if (is_cdc_dma_port(dai_id)) in lpass_platform_pcmops_hw_free()
587 reg = LPAIF_DMACTL_REG(v, pcm_data->dma_ch, substream->stream, dai_id); in lpass_platform_pcmops_hw_free()
609 unsigned int dai_id = cpu_dai->driver->id; in lpass_platform_pcmops_prepare() local
617 ret = regmap_write(map, LPAIF_DMABASE_REG(v, ch, dir, dai_id), in lpass_platform_pcmops_prepare()
625 ret = regmap_write(map, LPAIF_DMABUFF_REG(v, ch, dir, dai_id), in lpass_platform_pcmops_prepare()
633 ret = regmap_write(map, LPAIF_DMAPER_REG(v, ch, dir, dai_id), in lpass_platform_pcmops_prepare()
641 if (is_cdc_dma_port(dai_id)) { in lpass_platform_pcmops_prepare()
674 unsigned int dai_id = cpu_dai->driver->id; in lpass_platform_pcmops_trigger() local
692 switch (dai_id) { in lpass_platform_pcmops_trigger()
760 dev_err(soc_runtime->dev, "%s: invalid %d interface\n", __func__, dai_id); in lpass_platform_pcmops_trigger()
785 switch (dai_id) { in lpass_platform_pcmops_trigger()
842 dev_err(soc_runtime->dev, "%s: invalid %d interface\n", __func__, dai_id); in lpass_platform_pcmops_trigger()
871 unsigned int dai_id = cpu_dai->driver->id; in lpass_platform_pcmops_pointer() local
877 LPAIF_DMABASE_REG(v, ch, dir, dai_id), &base_addr); in lpass_platform_pcmops_pointer()
885 LPAIF_DMACURR_REG(v, ch, dir, dai_id), &curr_addr); in lpass_platform_pcmops_pointer()
916 unsigned int dai_id = cpu_dai->driver->id; in lpass_platform_pcmops_mmap() local
918 if (is_cdc_dma_port(dai_id)) in lpass_platform_pcmops_mmap()
936 unsigned int dai_id = cpu_dai->driver->id; in lpass_dma_interrupt_handler() local
939 switch (dai_id) { in lpass_dma_interrupt_handler()
968 dev_err(soc_runtime->dev, "%s: invalid %d interface\n", __func__, dai_id); in lpass_dma_interrupt_handler()
1128 struct snd_pcm *pcm, int dai_id) in lpass_platform_prealloc_cdc_dma_buffer() argument
1146 switch (dai_id) { in lpass_platform_prealloc_cdc_dma_buffer()
1173 unsigned int dai_id = cpu_dai->driver->id; in lpass_platform_pcm_new() local
1181 if (is_cdc_dma_port(dai_id)) in lpass_platform_pcm_new()
1182 return lpass_platform_prealloc_cdc_dma_buffer(component, pcm, dai_id); in lpass_platform_pcm_new()
1192 unsigned int dai_id = component->id; in lpass_platform_pcmops_suspend() local
1194 if (dai_id == LPASS_DP_RX) in lpass_platform_pcmops_suspend()
1209 unsigned int dai_id = component->id; in lpass_platform_pcmops_resume() local
1211 if (dai_id == LPASS_DP_RX) in lpass_platform_pcmops_resume()
1225 unsigned int dai_id = component->id; in lpass_platform_copy() local
1232 if (is_cdc_dma_port(dai_id)) { in lpass_platform_copy()
1239 if (is_cdc_dma_port(dai_id)) { in lpass_platform_copy()