Lines Matching refs:substream
179 struct snd_pcm_substream *substream; in agdev_iso_complete() local
195 substream = prm->ss; in agdev_iso_complete()
198 if (!substream) in agdev_iso_complete()
203 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in agdev_iso_complete()
240 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in agdev_iso_complete()
263 snd_pcm_period_elapsed(substream); in agdev_iso_complete()
269 uac2_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in uac2_pcm_trigger() argument
271 struct snd_uac2_chip *uac2 = snd_pcm_substream_chip(substream); in uac2_pcm_trigger()
276 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in uac2_pcm_trigger()
289 prm->ss = substream; in uac2_pcm_trigger()
302 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && !prm->ss) in uac2_pcm_trigger()
308 static snd_pcm_uframes_t uac2_pcm_pointer(struct snd_pcm_substream *substream) in uac2_pcm_pointer() argument
310 struct snd_uac2_chip *uac2 = snd_pcm_substream_chip(substream); in uac2_pcm_pointer()
313 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in uac2_pcm_pointer()
318 return bytes_to_frames(substream->runtime, prm->hw_ptr); in uac2_pcm_pointer()
321 static int uac2_pcm_hw_params(struct snd_pcm_substream *substream, in uac2_pcm_hw_params() argument
324 struct snd_uac2_chip *uac2 = snd_pcm_substream_chip(substream); in uac2_pcm_hw_params()
328 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in uac2_pcm_hw_params()
333 err = snd_pcm_lib_malloc_pages(substream, in uac2_pcm_hw_params()
336 prm->dma_bytes = substream->runtime->dma_bytes; in uac2_pcm_hw_params()
337 prm->dma_area = substream->runtime->dma_area; in uac2_pcm_hw_params()
344 static int uac2_pcm_hw_free(struct snd_pcm_substream *substream) in uac2_pcm_hw_free() argument
346 struct snd_uac2_chip *uac2 = snd_pcm_substream_chip(substream); in uac2_pcm_hw_free()
349 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in uac2_pcm_hw_free()
358 return snd_pcm_lib_free_pages(substream); in uac2_pcm_hw_free()
361 static int uac2_pcm_open(struct snd_pcm_substream *substream) in uac2_pcm_open() argument
363 struct snd_uac2_chip *uac2 = snd_pcm_substream_chip(substream); in uac2_pcm_open()
364 struct snd_pcm_runtime *runtime = substream->runtime; in uac2_pcm_open()
383 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in uac2_pcm_open()
428 static int uac2_pcm_null(struct snd_pcm_substream *substream) in uac2_pcm_null() argument