Home
last modified time | relevance | path

Searched refs:prtd (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/sound/soc/qcom/qdsp6/
Dq6asm-dai.c184 struct q6asm_dai_rtd *prtd = priv; in event_handler() local
185 struct snd_pcm_substream *substream = prtd->substream; in event_handler()
190 q6asm_write_async(prtd->audio_client, prtd->stream_id, in event_handler()
191 prtd->pcm_count, 0, 0, 0); in event_handler()
194 prtd->state = Q6ASM_STREAM_STOPPED; in event_handler()
197 prtd->pcm_irq_pos += prtd->pcm_count; in event_handler()
199 if (prtd->state == Q6ASM_STREAM_RUNNING) in event_handler()
200 q6asm_write_async(prtd->audio_client, prtd->stream_id, in event_handler()
201 prtd->pcm_count, 0, 0, 0); in event_handler()
206 prtd->pcm_irq_pos += prtd->pcm_count; in event_handler()
[all …]
/kernel/linux/linux-5.10/sound/soc/atmel/
Datmel-pcm-pdc.c156 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_dma_irq() local
157 struct atmel_pcm_dma_params *params = prtd->params; in atmel_pcm_dma_irq()
171 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq()
172 if (prtd->period_ptr >= prtd->dma_buffer_end) in atmel_pcm_dma_irq()
173 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_dma_irq()
176 prtd->period_ptr); in atmel_pcm_dma_irq()
178 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_dma_irq()
185 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq()
186 if (prtd->period_ptr >= prtd->dma_buffer_end) in atmel_pcm_dma_irq()
187 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_dma_irq()
[all …]
Datmel-pcm-dma.c56 struct atmel_pcm_dma_params *prtd; in atmel_pcm_dma_irq() local
58 prtd = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in atmel_pcm_dma_irq()
60 if (ssc_sr & prtd->mask->ssc_error) { in atmel_pcm_dma_irq()
64 ? "underrun" : "overrun", prtd->name, in atmel_pcm_dma_irq()
68 ssc_writex(prtd->ssc->regs, SSC_CR, prtd->mask->ssc_disable); in atmel_pcm_dma_irq()
72 ssc_readx(prtd->ssc->regs, SSC_RHR); in atmel_pcm_dma_irq()
73 ssc_readx(prtd->ssc->regs, SSC_SR); in atmel_pcm_dma_irq()
81 struct atmel_pcm_dma_params *prtd; in atmel_pcm_configure_dma() local
85 prtd = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in atmel_pcm_configure_dma()
86 ssc = prtd->ssc; in atmel_pcm_configure_dma()
[all …]
/kernel/linux/linux-5.10/sound/soc/samsung/
Didma.c67 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_enqueue() local
70 spin_lock(&prtd->lock); in idma_enqueue()
71 prtd->token = (void *) substream; in idma_enqueue()
72 spin_unlock(&prtd->lock); in idma_enqueue()
75 val = idma.lp_tx_addr + prtd->periodsz; in idma_enqueue()
102 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_setcallbk() local
104 spin_lock(&prtd->lock); in idma_setcallbk()
105 prtd->cb = cb; in idma_setcallbk()
106 spin_unlock(&prtd->lock); in idma_setcallbk()
134 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_done() local
[all …]
/kernel/linux/linux-5.10/sound/core/
Dpcm_dmaengine.c37 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_get_chan() local
39 return prtd->dma_chan; in snd_dmaengine_pcm_get_chan()
135 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in dmaengine_pcm_dma_complete() local
137 new_pos = prtd->pos + snd_pcm_lib_period_bytes(substream); in dmaengine_pcm_dma_complete()
140 prtd->pos = new_pos; in dmaengine_pcm_dma_complete()
147 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in dmaengine_pcm_prepare_and_submit() local
148 struct dma_chan *chan = prtd->dma_chan; in dmaengine_pcm_prepare_and_submit()
158 prtd->pos = 0; in dmaengine_pcm_prepare_and_submit()
169 prtd->cookie = dmaengine_submit(desc); in dmaengine_pcm_prepare_and_submit()
186 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_trigger() local
[all …]
/kernel/linux/linux-5.10/sound/soc/bcm/
Dbcm63xx-pcm-whistler.c182 struct bcm63xx_runtime_data *prtd = substream->runtime->private_data; in bcm63xx_pcm_pointer() local
184 if (!prtd->dma_addr_next) in bcm63xx_pcm_pointer()
185 prtd->dma_addr_next = substream->runtime->dma_addr; in bcm63xx_pcm_pointer()
188 prtd->dma_addr_next - substream->runtime->dma_addr); in bcm63xx_pcm_pointer()
211 struct bcm63xx_runtime_data *prtd; in bcm63xx_pcm_open() local
230 prtd = kzalloc(sizeof(*prtd), GFP_KERNEL); in bcm63xx_pcm_open()
231 if (!prtd) in bcm63xx_pcm_open()
234 runtime->private_data = prtd; in bcm63xx_pcm_open()
244 struct bcm63xx_runtime_data *prtd = runtime->private_data; in bcm63xx_pcm_close() local
246 kfree(prtd); in bcm63xx_pcm_close()
[all …]
/kernel/linux/linux-5.10/sound/soc/amd/raven/
Dacp3x-pcm-dma.c214 struct snd_soc_pcm_runtime *prtd; in acp3x_dma_open() local
220 prtd = asoc_substream_to_rtd(substream); in acp3x_dma_open()
221 component = snd_soc_rtdcom_lookup(prtd, DRV_NAME); in acp3x_dma_open()
251 struct snd_soc_pcm_runtime *prtd; in acp3x_dma_hw_params() local
257 prtd = asoc_substream_to_rtd(substream); in acp3x_dma_hw_params()
258 card = prtd->card; in acp3x_dma_hw_params()
335 struct snd_soc_pcm_runtime *prtd; in acp3x_dma_close() local
339 prtd = asoc_substream_to_rtd(substream); in acp3x_dma_close()
340 component = snd_soc_rtdcom_lookup(prtd, DRV_NAME); in acp3x_dma_close()
Dacp3x-i2s.c76 struct snd_soc_pcm_runtime *prtd; in acp3x_i2s_hwparams() local
83 prtd = asoc_substream_to_rtd(substream); in acp3x_i2s_hwparams()
85 card = prtd->card; in acp3x_i2s_hwparams()
/kernel/linux/linux-5.10/sound/soc/amd/
Dacp-pcm-dma.c843 struct snd_soc_pcm_runtime *prtd = asoc_substream_to_rtd(substream); in acp_dma_hw_params() local
845 struct snd_soc_card *card = prtd->card; in acp_dma_hw_params()