Lines Matching refs:substream

120 static int camelot_pcm_open(struct snd_pcm_substream *substream)  in camelot_pcm_open()  argument
122 struct snd_soc_pcm_runtime *rtd = substream->private_data; in camelot_pcm_open()
124 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; in camelot_pcm_open()
127 snd_soc_set_runtime_hwparams(substream, &camelot_pcm_hardware); in camelot_pcm_open()
132 cam->rx_ss = substream; in camelot_pcm_open()
141 cam->tx_ss = substream; in camelot_pcm_open()
153 static int camelot_pcm_close(struct snd_pcm_substream *substream) in camelot_pcm_close() argument
155 struct snd_soc_pcm_runtime *rtd = substream->private_data; in camelot_pcm_close()
157 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; in camelot_pcm_close()
173 static int camelot_hw_params(struct snd_pcm_substream *substream, in camelot_hw_params() argument
176 struct snd_soc_pcm_runtime *rtd = substream->private_data; in camelot_hw_params()
178 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; in camelot_hw_params()
181 ret = snd_pcm_lib_malloc_pages(substream, in camelot_hw_params()
196 static int camelot_hw_free(struct snd_pcm_substream *substream) in camelot_hw_free() argument
198 return snd_pcm_lib_free_pages(substream); in camelot_hw_free()
201 static int camelot_prepare(struct snd_pcm_substream *substream) in camelot_prepare() argument
203 struct snd_pcm_runtime *runtime = substream->runtime; in camelot_prepare()
204 struct snd_soc_pcm_runtime *rtd = substream->private_data; in camelot_prepare()
210 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in camelot_prepare()
249 static int camelot_trigger(struct snd_pcm_substream *substream, int cmd) in camelot_trigger() argument
251 struct snd_soc_pcm_runtime *rtd = substream->private_data; in camelot_trigger()
253 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; in camelot_trigger()
275 static snd_pcm_uframes_t camelot_pos(struct snd_pcm_substream *substream) in camelot_pos() argument
277 struct snd_pcm_runtime *runtime = substream->runtime; in camelot_pos()
278 struct snd_soc_pcm_runtime *rtd = substream->private_data; in camelot_pos()
280 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; in camelot_pos()