Searched refs:soc_runtime (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/sound/soc/qcom/
H A Dlpass-platform.c63 struct snd_soc_pcm_runtime *soc_runtime = substream->private_data; lpass_platform_pcmops_open() local
73 dev_err(soc_runtime->dev, "%s() setting constraints failed: %d\n", lpass_platform_pcmops_open()
86 struct snd_soc_pcm_runtime *soc_runtime = substream->private_data; lpass_platform_pcmops_hw_params() local
88 snd_soc_platform_get_drvdata(soc_runtime->platform); lpass_platform_pcmops_hw_params()
97 dev_err(soc_runtime->dev, "%s() invalid bit width given: %d\n", lpass_platform_pcmops_hw_params()
123 dev_err(soc_runtime->dev, "%s() invalid PCM config given: bw=%d, ch=%u\n", lpass_platform_pcmops_hw_params()
147 dev_err(soc_runtime->dev, "%s() invalid PCM config given: bw=%d, ch=%u\n", lpass_platform_pcmops_hw_params()
153 dev_err(soc_runtime->dev, "%s() invalid PCM config given: bw=%d, ch=%u\n", lpass_platform_pcmops_hw_params()
161 dev_err(soc_runtime->dev, "%s() error writing to rdmactl reg: %d\n", lpass_platform_pcmops_hw_params()
171 struct snd_soc_pcm_runtime *soc_runtime = substream->private_data; lpass_platform_pcmops_hw_free() local
173 snd_soc_platform_get_drvdata(soc_runtime->platform); lpass_platform_pcmops_hw_free()
179 dev_err(soc_runtime->dev, "%s() error writing to rdmactl reg: %d\n", lpass_platform_pcmops_hw_free()
188 struct snd_soc_pcm_runtime *soc_runtime = substream->private_data; lpass_platform_pcmops_prepare() local
190 snd_soc_platform_get_drvdata(soc_runtime->platform); lpass_platform_pcmops_prepare()
197 dev_err(soc_runtime->dev, "%s() error writing to rdmabase reg: %d\n", lpass_platform_pcmops_prepare()
206 dev_err(soc_runtime->dev, "%s() error writing to rdmabuff reg: %d\n", lpass_platform_pcmops_prepare()
215 dev_err(soc_runtime->dev, "%s() error writing to rdmaper reg: %d\n", lpass_platform_pcmops_prepare()
224 dev_err(soc_runtime->dev, "%s() error writing to rdmactl reg: %d\n", lpass_platform_pcmops_prepare()
235 struct snd_soc_pcm_runtime *soc_runtime = substream->private_data; lpass_platform_pcmops_trigger() local
237 snd_soc_platform_get_drvdata(soc_runtime->platform); lpass_platform_pcmops_trigger()
249 dev_err(soc_runtime->dev, "%s() error writing to irqclear reg: %d\n", lpass_platform_pcmops_trigger()
259 dev_err(soc_runtime->dev, "%s() error writing to irqen reg: %d\n", lpass_platform_pcmops_trigger()
269 dev_err(soc_runtime->dev, "%s() error writing to rdmactl reg: %d\n", lpass_platform_pcmops_trigger()
282 dev_err(soc_runtime->dev, "%s() error writing to rdmactl reg: %d\n", lpass_platform_pcmops_trigger()
291 dev_err(soc_runtime->dev, "%s() error writing to irqen reg: %d\n", lpass_platform_pcmops_trigger()
304 struct snd_soc_pcm_runtime *soc_runtime = substream->private_data; lpass_platform_pcmops_pointer() local
306 snd_soc_platform_get_drvdata(soc_runtime->platform); lpass_platform_pcmops_pointer()
313 dev_err(soc_runtime->dev, "%s() error reading from rdmabase reg: %d\n", lpass_platform_pcmops_pointer()
321 dev_err(soc_runtime->dev, "%s() error reading from rdmacurr reg: %d\n", lpass_platform_pcmops_pointer()
353 struct snd_soc_pcm_runtime *soc_runtime = substream->private_data; lpass_platform_lpaif_irq() local
355 snd_soc_platform_get_drvdata(soc_runtime->platform); lpass_platform_lpaif_irq()
363 dev_err(soc_runtime->dev, "%s() error reading from irqstat reg: %d\n", lpass_platform_lpaif_irq()
374 dev_err(soc_runtime->dev, "%s() error writing to irqclear reg: %d\n", lpass_platform_lpaif_irq()
387 dev_err(soc_runtime->dev, "%s() error writing to irqclear reg: %d\n", lpass_platform_lpaif_irq()
391 dev_warn(soc_runtime->dev, "%s() xrun warning\n", __func__); lpass_platform_lpaif_irq()
401 dev_err(soc_runtime->dev, "%s() error writing to irqclear reg: %d\n", lpass_platform_lpaif_irq()
405 dev_err(soc_runtime->dev, "%s() bus access error\n", __func__); lpass_platform_lpaif_irq()
414 struct snd_soc_pcm_runtime *soc_runtime) lpass_platform_alloc_buffer()
420 buf->dev.dev = soc_runtime->dev; lpass_platform_alloc_buffer()
422 buf->area = dma_alloc_coherent(soc_runtime->dev, size, &buf->addr, lpass_platform_alloc_buffer()
425 dev_err(soc_runtime->dev, "%s: Could not allocate DMA buffer\n", lpass_platform_alloc_buffer()
435 struct snd_soc_pcm_runtime *soc_runtime) lpass_platform_free_buffer()
440 dma_free_coherent(soc_runtime->dev, buf->bytes, buf->area, lpass_platform_free_buffer()
446 static int lpass_platform_pcm_new(struct snd_soc_pcm_runtime *soc_runtime) lpass_platform_pcm_new() argument
448 struct snd_pcm *pcm = soc_runtime->pcm; lpass_platform_pcm_new()
452 snd_soc_platform_get_drvdata(soc_runtime->platform); lpass_platform_pcm_new()
455 soc_runtime->dev->coherent_dma_mask = DMA_BIT_MASK(32); lpass_platform_pcm_new()
456 soc_runtime->dev->dma_mask = &soc_runtime->dev->coherent_dma_mask; lpass_platform_pcm_new()
458 ret = lpass_platform_alloc_buffer(substream, soc_runtime); lpass_platform_pcm_new()
462 ret = devm_request_irq(soc_runtime->dev, drvdata->lpaif_irq, lpass_platform_pcm_new()
466 dev_err(soc_runtime->dev, "%s() irq request failed: %d\n", lpass_platform_pcm_new()
475 dev_err(soc_runtime->dev, "%s() error writing to irqen reg: %d\n", lpass_platform_pcm_new()
482 dev_err(soc_runtime->dev, "%s() error writing to rdmactl reg: %d\n", lpass_platform_pcm_new()
490 lpass_platform_free_buffer(substream, soc_runtime); lpass_platform_pcm_new()
498 struct snd_soc_pcm_runtime *soc_runtime = substream->private_data; lpass_platform_pcm_free() local
500 lpass_platform_free_buffer(substream, soc_runtime); lpass_platform_pcm_free()
413 lpass_platform_alloc_buffer(struct snd_pcm_substream *substream, struct snd_soc_pcm_runtime *soc_runtime) lpass_platform_alloc_buffer() argument
434 lpass_platform_free_buffer(struct snd_pcm_substream *substream, struct snd_soc_pcm_runtime *soc_runtime) lpass_platform_free_buffer() argument
H A Dstorm.c30 struct snd_soc_pcm_runtime *soc_runtime = substream->private_data; storm_ops_hw_params() local
31 struct snd_soc_card *card = soc_runtime->card; storm_ops_hw_params()
51 ret = snd_soc_dai_set_sysclk(soc_runtime->cpu_dai, 0, sysclk_freq, 0); storm_ops_hw_params()
/linux-4.1.27/sound/soc/kirkwood/
H A Dkirkwood-dma.c26 struct snd_soc_pcm_runtime *soc_runtime = subs->private_data; kirkwood_priv() local
27 return snd_soc_dai_get_drvdata(soc_runtime->cpu_dai); kirkwood_priv()

Completed in 175 milliseconds