/linux-6.1.9/sound/soc/qcom/qdsp6/ |
D | q6asm-dai.c | 184 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 …]
|
D | q6apm-dai.c | 100 struct q6apm_dai_rtd *prtd = priv; in event_handler() local 101 struct snd_pcm_substream *substream = prtd->substream; in event_handler() 105 prtd->state = Q6APM_STREAM_STOPPED; in event_handler() 108 prtd->pos += prtd->pcm_count; in event_handler() 110 if (prtd->state == Q6APM_STREAM_RUNNING) in event_handler() 111 q6apm_write_async(prtd->graph, prtd->pcm_count, 0, 0, 0); in event_handler() 115 prtd->pos += prtd->pcm_count; in event_handler() 117 if (prtd->state == Q6APM_STREAM_RUNNING) in event_handler() 118 q6apm_read(prtd->graph); in event_handler() 130 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_prepare() local [all …]
|
/linux-6.1.9/sound/soc/atmel/ |
D | atmel-pcm-pdc.c | 91 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_dma_irq() local 92 struct atmel_pcm_dma_params *params = prtd->params; in atmel_pcm_dma_irq() 106 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq() 107 if (prtd->period_ptr >= prtd->dma_buffer_end) in atmel_pcm_dma_irq() 108 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_dma_irq() 111 prtd->period_ptr); in atmel_pcm_dma_irq() 113 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_dma_irq() 120 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq() 121 if (prtd->period_ptr >= prtd->dma_buffer_end) in atmel_pcm_dma_irq() 122 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_dma_irq() [all …]
|
D | atmel-pcm-dma.c | 56 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 …]
|
/linux-6.1.9/sound/soc/samsung/ |
D | idma.c | 67 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 …]
|
/linux-6.1.9/sound/core/ |
D | pcm_dmaengine.c | 37 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() 138 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in dmaengine_pcm_dma_complete() local 140 new_pos = prtd->pos + snd_pcm_lib_period_bytes(substream); in dmaengine_pcm_dma_complete() 143 prtd->pos = new_pos; in dmaengine_pcm_dma_complete() 150 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in dmaengine_pcm_prepare_and_submit() local 151 struct dma_chan *chan = prtd->dma_chan; in dmaengine_pcm_prepare_and_submit() 161 prtd->pos = 0; in dmaengine_pcm_prepare_and_submit() 172 prtd->cookie = dmaengine_submit(desc); in dmaengine_pcm_prepare_and_submit() 189 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_trigger() local [all …]
|
/linux-6.1.9/sound/soc/bcm/ |
D | bcm63xx-pcm-whistler.c | 178 struct bcm63xx_runtime_data *prtd = substream->runtime->private_data; in bcm63xx_pcm_pointer() local 180 if (!prtd->dma_addr_next) in bcm63xx_pcm_pointer() 181 prtd->dma_addr_next = substream->runtime->dma_addr; in bcm63xx_pcm_pointer() 184 prtd->dma_addr_next - substream->runtime->dma_addr); in bcm63xx_pcm_pointer() 194 struct bcm63xx_runtime_data *prtd; in bcm63xx_pcm_open() local 213 prtd = kzalloc(sizeof(*prtd), GFP_KERNEL); in bcm63xx_pcm_open() 214 if (!prtd) in bcm63xx_pcm_open() 217 runtime->private_data = prtd; in bcm63xx_pcm_open() 227 struct bcm63xx_runtime_data *prtd = runtime->private_data; in bcm63xx_pcm_close() local 229 kfree(prtd); in bcm63xx_pcm_close() [all …]
|
/linux-6.1.9/sound/soc/amd/raven/ |
D | acp3x-pcm-dma.c | 212 struct snd_soc_pcm_runtime *prtd; in acp3x_dma_open() local 218 prtd = asoc_substream_to_rtd(substream); in acp3x_dma_open() 219 component = snd_soc_rtdcom_lookup(prtd, DRV_NAME); in acp3x_dma_open() 249 struct snd_soc_pcm_runtime *prtd; in acp3x_dma_hw_params() local 255 prtd = asoc_substream_to_rtd(substream); in acp3x_dma_hw_params() 256 card = prtd->card; in acp3x_dma_hw_params() 326 struct snd_soc_pcm_runtime *prtd; in acp3x_dma_close() local 330 prtd = asoc_substream_to_rtd(substream); in acp3x_dma_close() 331 component = snd_soc_rtdcom_lookup(prtd, DRV_NAME); in acp3x_dma_close()
|
D | acp3x-i2s.c | 76 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()
|
/linux-6.1.9/sound/soc/amd/vangogh/ |
D | acp5x-pcm-dma.c | 206 struct snd_soc_pcm_runtime *prtd; in acp5x_dma_open() local 212 prtd = asoc_substream_to_rtd(substream); in acp5x_dma_open() 213 component = snd_soc_rtdcom_lookup(prtd, DRV_NAME); in acp5x_dma_open() 242 struct snd_soc_pcm_runtime *prtd; in acp5x_dma_hw_params() local 248 prtd = asoc_substream_to_rtd(substream); in acp5x_dma_hw_params() 249 card = prtd->card; in acp5x_dma_hw_params() 321 struct snd_soc_pcm_runtime *prtd; in acp5x_dma_close() local 325 prtd = asoc_substream_to_rtd(substream); in acp5x_dma_close() 326 component = snd_soc_rtdcom_lookup(prtd, DRV_NAME); in acp5x_dma_close()
|
D | acp5x-i2s.c | 87 struct snd_soc_pcm_runtime *prtd; in acp5x_i2s_hwparams() local 98 prtd = asoc_substream_to_rtd(substream); in acp5x_i2s_hwparams() 100 card = prtd->card; in acp5x_i2s_hwparams()
|
/linux-6.1.9/sound/soc/amd/ |
D | acp-pcm-dma.c | 852 struct snd_soc_pcm_runtime *prtd = asoc_substream_to_rtd(substream); in acp_dma_hw_params() local 854 struct snd_soc_card *card = prtd->card; in acp_dma_hw_params()
|