Lines Matching refs:substream
95 struct snd_pcm_substream *substream; in u_audio_iso_complete() local
112 substream = prm->ss; in u_audio_iso_complete()
115 if (!substream) in u_audio_iso_complete()
118 snd_pcm_stream_lock_irqsave(substream, flags2); in u_audio_iso_complete()
120 runtime = substream->runtime; in u_audio_iso_complete()
121 if (!runtime || !snd_pcm_running(substream)) { in u_audio_iso_complete()
122 snd_pcm_stream_unlock_irqrestore(substream, flags2); in u_audio_iso_complete()
128 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in u_audio_iso_complete()
159 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in u_audio_iso_complete()
184 snd_pcm_stream_unlock_irqrestore(substream, flags2); in u_audio_iso_complete()
186 if ((hw_ptr % snd_pcm_lib_period_bytes(substream)) < req->actual) in u_audio_iso_complete()
187 snd_pcm_period_elapsed(substream); in u_audio_iso_complete()
194 static int uac_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in uac_pcm_trigger() argument
196 struct snd_uac_chip *uac = snd_pcm_substream_chip(substream); in uac_pcm_trigger()
206 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in uac_pcm_trigger()
219 prm->ss = substream; in uac_pcm_trigger()
232 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && !prm->ss) in uac_pcm_trigger()
238 static snd_pcm_uframes_t uac_pcm_pointer(struct snd_pcm_substream *substream) in uac_pcm_pointer() argument
240 struct snd_uac_chip *uac = snd_pcm_substream_chip(substream); in uac_pcm_pointer()
243 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in uac_pcm_pointer()
248 return bytes_to_frames(substream->runtime, prm->hw_ptr); in uac_pcm_pointer()
251 static int uac_pcm_hw_params(struct snd_pcm_substream *substream, in uac_pcm_hw_params() argument
254 return snd_pcm_lib_malloc_pages(substream, in uac_pcm_hw_params()
258 static int uac_pcm_hw_free(struct snd_pcm_substream *substream) in uac_pcm_hw_free() argument
260 return snd_pcm_lib_free_pages(substream); in uac_pcm_hw_free()
263 static int uac_pcm_open(struct snd_pcm_substream *substream) in uac_pcm_open() argument
265 struct snd_uac_chip *uac = snd_pcm_substream_chip(substream); in uac_pcm_open()
266 struct snd_pcm_runtime *runtime = substream->runtime; in uac_pcm_open()
285 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in uac_pcm_open()
330 static int uac_pcm_null(struct snd_pcm_substream *substream) in uac_pcm_null() argument