Lines Matching refs:substream
25 static int pxa2xx_pcm_prepare(struct snd_pcm_substream *substream) in pxa2xx_pcm_prepare() argument
27 struct pxa2xx_pcm_client *client = substream->private_data; in pxa2xx_pcm_prepare()
29 __pxa2xx_pcm_prepare(substream); in pxa2xx_pcm_prepare()
31 return client->prepare(substream); in pxa2xx_pcm_prepare()
34 static int pxa2xx_pcm_open(struct snd_pcm_substream *substream) in pxa2xx_pcm_open() argument
36 struct pxa2xx_pcm_client *client = substream->private_data; in pxa2xx_pcm_open()
37 struct snd_pcm_runtime *runtime = substream->runtime; in pxa2xx_pcm_open()
41 ret = __pxa2xx_pcm_open(substream); in pxa2xx_pcm_open()
47 rtd->params = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? in pxa2xx_pcm_open()
50 pxa2xx_pcm_dma_irq, substream); in pxa2xx_pcm_open()
55 ret = client->startup(substream); in pxa2xx_pcm_open()
61 __pxa2xx_pcm_close(substream); in pxa2xx_pcm_open()
66 static int pxa2xx_pcm_close(struct snd_pcm_substream *substream) in pxa2xx_pcm_close() argument
68 struct pxa2xx_pcm_client *client = substream->private_data; in pxa2xx_pcm_close()
69 struct pxa2xx_runtime_data *rtd = substream->runtime->private_data; in pxa2xx_pcm_close()
72 client->shutdown(substream); in pxa2xx_pcm_close()
74 return __pxa2xx_pcm_close(substream); in pxa2xx_pcm_close()