/linux-6.3-rc2/sound/soc/qcom/qdsp6/ |
A D | q6asm-dai.c | 197 prtd->pcm_irq_pos += prtd->pcm_count; in event_handler() 206 prtd->pcm_irq_pos += prtd->pcm_count; in event_handler() 231 if (!prtd || !prtd->audio_client) { in q6asm_dai_prepare() 251 (prtd->pcm_size / prtd->periods), in q6asm_dai_prepare() 285 prtd->audio_client, prtd->stream_id, in q6asm_dai_prepare() 472 if (prtd->pcm_irq_pos >= prtd->pcm_size) in q6asm_dai_pointer() 521 prtd->bytes_sent += prtd->pcm_count; in compress_event_handler() 646 prtd->phys = prtd->dma_buffer.addr; in q6asm_dai_compr_open() 888 if (!prtd || !prtd->audio_client) { in q6asm_dai_compr_set_params() 1093 prtd->copied_total = ALIGN(prtd->copied_total, prtd->pcm_count); in q6asm_compr_copy() [all …]
|
A D | q6apm-dai.c | 114 prtd->pos += prtd->pcm_count; in event_handler() 118 q6apm_write_async(prtd->graph, prtd->pcm_count, 0, 0, 0); in event_handler() 123 prtd->pos += prtd->pcm_count; in event_handler() 149 if (!prtd || !prtd->graph) { in q6apm_dai_prepare() 166 prtd->pos = 0; in q6apm_dai_prepare() 179 (prtd->pcm_size / prtd->periods), prtd->periods); in q6apm_dai_prepare() 261 prtd = kzalloc(sizeof(*prtd), GFP_KERNEL); in q6apm_dai_open() 316 kfree(prtd); in q6apm_dai_open() 334 kfree(prtd); in q6apm_dai_close() 349 if (prtd->pos == prtd->pcm_size) in q6apm_dai_pointer() [all …]
|
/linux-6.3-rc2/sound/soc/atmel/ |
A D | atmel-pcm-pdc.c | 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() 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() 158 prtd->params->name, in atmel_pcm_hw_params() 206 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_trigger() 213 prtd->period_ptr += prtd->period_size; in atmel_pcm_trigger() 292 if (prtd == NULL) { in atmel_pcm_open() [all …]
|
A 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.3-rc2/sound/soc/samsung/ |
A D | idma.c | 105 prtd->cb = cb; in idma_setcallbk() 136 if (prtd && (prtd->state & ST_RUNNING)) in idma_done() 157 prtd->start = prtd->pos = runtime->dma_addr; in idma_hw_params() 180 prtd->pos = prtd->start; in idma_prepare() 272 addr %= (u32)(prtd->end - prtd->start); in iis_irq() 277 if (prtd->cb) in iis_irq() 278 prtd->cb(prtd->token, prtd->period); in iis_irq() 294 if (prtd == NULL) in idma_open() 300 kfree(prtd); in idma_open() 319 if (!prtd) in idma_close() [all …]
|
/linux-6.3-rc2/sound/core/ |
A D | pcm_dmaengine.c | 39 return prtd->dma_chan; in snd_dmaengine_pcm_get_chan() 143 prtd->pos = new_pos; in dmaengine_pcm_dma_complete() 161 prtd->pos = 0; in dmaengine_pcm_prepare_and_submit() 202 dmaengine_resume(prtd->dma_chan); in snd_dmaengine_pcm_trigger() 211 dmaengine_pause(prtd->dma_chan); in snd_dmaengine_pcm_trigger() 258 status = dmaengine_tx_status(prtd->dma_chan, prtd->cookie, &state); in snd_dmaengine_pcm_pointer() 319 prtd = kzalloc(sizeof(*prtd), GFP_KERNEL); in snd_dmaengine_pcm_open() 320 if (!prtd) in snd_dmaengine_pcm_open() 323 prtd->dma_chan = chan; in snd_dmaengine_pcm_open() 363 kfree(prtd); in snd_dmaengine_pcm_close() [all …]
|
/linux-6.3-rc2/sound/soc/bcm/ |
A D | bcm63xx-pcm-whistler.c | 180 if (!prtd->dma_addr_next) 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() 229 kfree(prtd); in bcm63xx_pcm_close() 236 struct bcm63xx_runtime_data *prtd; in i2s_dma_isr() local 254 prtd = runtime->private_data; in i2s_dma_isr() 264 prtd->dma_addr_next = val_1 + val_2; in i2s_dma_isr() 280 prtd->dma_addr = dma_desc->dma_addr; in i2s_dma_isr() [all …]
|
/linux-6.3-rc2/sound/soc/amd/raven/ |
A 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()
|
A 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.3-rc2/sound/soc/amd/vangogh/ |
A 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()
|
A 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.3-rc2/sound/soc/amd/ |
A 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()
|