/linux-6.12.1/sound/soc/qcom/qdsp6/ |
D | q6apm-dai.c | 124 struct q6apm_dai_rtd *prtd = priv; in event_handler() local 125 struct snd_pcm_substream *substream = prtd->substream; in event_handler() 130 prtd->state = Q6APM_STREAM_STOPPED; in event_handler() 133 spin_lock_irqsave(&prtd->lock, flags); in event_handler() 134 prtd->pos += prtd->pcm_count; in event_handler() 135 spin_unlock_irqrestore(&prtd->lock, flags); in event_handler() 137 if (prtd->state == Q6APM_STREAM_RUNNING) in event_handler() 138 q6apm_write_async(prtd->graph, prtd->pcm_count, 0, 0, 0); in event_handler() 142 spin_lock_irqsave(&prtd->lock, flags); in event_handler() 143 prtd->pos += prtd->pcm_count; in event_handler() [all …]
|
D | q6asm-dai.c | 179 struct q6asm_dai_rtd *prtd = priv; in event_handler() local 180 struct snd_pcm_substream *substream = prtd->substream; in event_handler() 185 q6asm_write_async(prtd->audio_client, prtd->stream_id, in event_handler() 186 prtd->pcm_count, 0, 0, 0); in event_handler() 189 prtd->state = Q6ASM_STREAM_STOPPED; in event_handler() 192 prtd->pcm_irq_pos += prtd->pcm_count; in event_handler() 194 if (prtd->state == Q6ASM_STREAM_RUNNING) in event_handler() 195 q6asm_write_async(prtd->audio_client, prtd->stream_id, in event_handler() 196 prtd->pcm_count, 0, 0, 0); in event_handler() 201 prtd->pcm_irq_pos += prtd->pcm_count; in event_handler() [all …]
|
/linux-6.12.1/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(snd_soc_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(snd_soc_rtd_to_cpu(rtd, 0), substream); in atmel_pcm_configure_dma() 86 ssc = prtd->ssc; in atmel_pcm_configure_dma() [all …]
|
/linux-6.12.1/sound/soc/fsl/ |
D | fsl_qmc_audio.c | 96 struct qmc_dai_prtd *prtd = substream->runtime->private_data; in qmc_audio_pcm_hw_params() local 103 prtd->channels = qmc_audio_access_is_interleaved(params_access(params)) ? in qmc_audio_pcm_hw_params() 106 prtd->substream = substream; in qmc_audio_pcm_hw_params() 108 prtd->buffer_ended = 0; in qmc_audio_pcm_hw_params() 109 prtd->buffer_size = params_buffer_size(params); in qmc_audio_pcm_hw_params() 110 prtd->period_size = params_period_size(params); in qmc_audio_pcm_hw_params() 112 prtd->ch_dma_addr_start = runtime->dma_addr; in qmc_audio_pcm_hw_params() 113 prtd->ch_dma_offset = params_buffer_bytes(params) / prtd->channels; in qmc_audio_pcm_hw_params() 114 prtd->ch_dma_addr_end = runtime->dma_addr + prtd->ch_dma_offset; in qmc_audio_pcm_hw_params() 115 prtd->ch_dma_addr_current = prtd->ch_dma_addr_start; in qmc_audio_pcm_hw_params() [all …]
|
/linux-6.12.1/sound/soc/loongson/ |
D | loongson_dma.c | 75 loongson_dma_desc *dma_desc_save(struct loongson_runtime_data *prtd) in dma_desc_save() argument 77 void __iomem *order_reg = prtd->dma_data->order_addr; in dma_desc_save() 80 val = (u64)prtd->dma_pos_desc_phy & DMA_ORDER_ASK_MASK; in dma_desc_save() 88 return prtd->dma_pos_desc; in dma_desc_save() 94 struct loongson_runtime_data *prtd = substream->runtime->private_data; in loongson_pcm_trigger() local 96 void __iomem *order_reg = prtd->dma_data->order_addr; in loongson_pcm_trigger() 103 val = prtd->dma_pos_desc_phy & DMA_ORDER_ASK_MASK; in loongson_pcm_trigger() 118 dma_desc_save(prtd); in loongson_pcm_trigger() 140 struct loongson_runtime_data *prtd = runtime->private_data; in loongson_pcm_hw_params() local 154 if (!num_periods || num_periods > prtd->dma_desc_arr_size) { in loongson_pcm_hw_params() [all …]
|
/linux-6.12.1/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.12.1/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.12.1/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.12.1/sound/soc/amd/raven/ |
D | acp3x-pcm-dma.c | 212 struct snd_soc_pcm_runtime *prtd; in acp3x_dma_open() local 218 prtd = snd_soc_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 = snd_soc_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 = snd_soc_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 = snd_soc_substream_to_rtd(substream); in acp3x_i2s_hwparams() 85 card = prtd->card; in acp3x_i2s_hwparams()
|
/linux-6.12.1/sound/soc/amd/vangogh/ |
D | acp5x-pcm-dma.c | 206 struct snd_soc_pcm_runtime *prtd; in acp5x_dma_open() local 212 prtd = snd_soc_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 = snd_soc_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 = snd_soc_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 = snd_soc_substream_to_rtd(substream); in acp5x_i2s_hwparams() 100 card = prtd->card; in acp5x_i2s_hwparams()
|
/linux-6.12.1/sound/soc/amd/ps/ |
D | ps-sdw-dma.c | 221 struct snd_soc_pcm_runtime *prtd = snd_soc_substream_to_rtd(substream); in acp63_sdw_dma_open() local 225 cpu_dai = snd_soc_rtd_to_cpu(prtd, 0); in acp63_sdw_dma_open()
|
/linux-6.12.1/sound/soc/amd/ |
D | acp-pcm-dma.c | 852 struct snd_soc_pcm_runtime *prtd = snd_soc_substream_to_rtd(substream); in acp_dma_hw_params() local 854 struct snd_soc_card *card = prtd->card; in acp_dma_hw_params()
|