Lines Matching refs:substream

32 		struct snd_pcm_substream *substream;  in pcsp_call_pcm_elapsed()  local
33 substream = pcsp_chip.playback_substream; in pcsp_call_pcm_elapsed()
34 if (substream) in pcsp_call_pcm_elapsed()
35 snd_pcm_period_elapsed(substream); in pcsp_call_pcm_elapsed()
48 struct snd_pcm_substream *substream; in pcsp_timer_update() local
58 substream = chip->playback_substream; in pcsp_timer_update()
59 if (!substream) in pcsp_timer_update()
62 runtime = substream->runtime; in pcsp_timer_update()
90 struct snd_pcm_substream *substream; in pcsp_pointer_update() local
96 substream = chip->playback_substream; in pcsp_pointer_update()
97 if (!substream) in pcsp_pointer_update()
100 period_bytes = snd_pcm_lib_period_bytes(substream); in pcsp_pointer_update()
101 buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in pcsp_pointer_update()
202 static int snd_pcsp_playback_close(struct snd_pcm_substream *substream) in snd_pcsp_playback_close() argument
204 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_close()
213 static int snd_pcsp_playback_hw_params(struct snd_pcm_substream *substream, in snd_pcsp_playback_hw_params() argument
216 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_hw_params()
219 err = snd_pcm_lib_malloc_pages(substream, in snd_pcsp_playback_hw_params()
226 static int snd_pcsp_playback_hw_free(struct snd_pcm_substream *substream) in snd_pcsp_playback_hw_free() argument
228 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_hw_free()
233 return snd_pcm_lib_free_pages(substream); in snd_pcsp_playback_hw_free()
236 static int snd_pcsp_playback_prepare(struct snd_pcm_substream *substream) in snd_pcsp_playback_prepare() argument
238 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_prepare()
243 snd_pcm_format_physical_width(substream->runtime->format) >> 3; in snd_pcsp_playback_prepare()
244 chip->is_signed = snd_pcm_format_signed(substream->runtime->format); in snd_pcsp_playback_prepare()
248 snd_pcm_lib_buffer_bytes(substream), in snd_pcsp_playback_prepare()
249 snd_pcm_lib_period_bytes(substream), in snd_pcsp_playback_prepare()
250 snd_pcm_lib_buffer_bytes(substream) / in snd_pcsp_playback_prepare()
251 snd_pcm_lib_period_bytes(substream), in snd_pcsp_playback_prepare()
252 substream->runtime->periods, in snd_pcsp_playback_prepare()
258 static int snd_pcsp_trigger(struct snd_pcm_substream *substream, int cmd) in snd_pcsp_trigger() argument
260 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_trigger()
279 *substream) in snd_pcsp_playback_pointer()
281 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_pointer()
286 return bytes_to_frames(substream->runtime, pos); in snd_pcsp_playback_pointer()
311 static int snd_pcsp_playback_open(struct snd_pcm_substream *substream) in snd_pcsp_playback_open() argument
313 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_open()
314 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcsp_playback_open()
323 chip->playback_substream = substream; in snd_pcsp_playback_open()