Lines Matching refs:substream

31 		struct snd_pcm_substream *substream;  in pcsp_call_pcm_elapsed()  local
32 substream = pcsp_chip.playback_substream; in pcsp_call_pcm_elapsed()
33 if (substream) in pcsp_call_pcm_elapsed()
34 snd_pcm_period_elapsed(substream); in pcsp_call_pcm_elapsed()
47 struct snd_pcm_substream *substream; in pcsp_timer_update() local
57 substream = chip->playback_substream; in pcsp_timer_update()
58 if (!substream) in pcsp_timer_update()
61 runtime = substream->runtime; in pcsp_timer_update()
89 struct snd_pcm_substream *substream; in pcsp_pointer_update() local
95 substream = chip->playback_substream; in pcsp_pointer_update()
96 if (!substream) in pcsp_pointer_update()
99 period_bytes = snd_pcm_lib_period_bytes(substream); in pcsp_pointer_update()
100 buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in pcsp_pointer_update()
201 static int snd_pcsp_playback_close(struct snd_pcm_substream *substream) in snd_pcsp_playback_close() argument
203 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_close()
212 static int snd_pcsp_playback_hw_params(struct snd_pcm_substream *substream, in snd_pcsp_playback_hw_params() argument
215 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_hw_params()
218 err = snd_pcm_lib_malloc_pages(substream, in snd_pcsp_playback_hw_params()
225 static int snd_pcsp_playback_hw_free(struct snd_pcm_substream *substream) in snd_pcsp_playback_hw_free() argument
227 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_hw_free()
232 return snd_pcm_lib_free_pages(substream); in snd_pcsp_playback_hw_free()
235 static int snd_pcsp_playback_prepare(struct snd_pcm_substream *substream) in snd_pcsp_playback_prepare() argument
237 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_prepare()
242 snd_pcm_format_physical_width(substream->runtime->format) >> 3; in snd_pcsp_playback_prepare()
243 chip->is_signed = snd_pcm_format_signed(substream->runtime->format); in snd_pcsp_playback_prepare()
247 snd_pcm_lib_buffer_bytes(substream), in snd_pcsp_playback_prepare()
248 snd_pcm_lib_period_bytes(substream), in snd_pcsp_playback_prepare()
249 snd_pcm_lib_buffer_bytes(substream) / in snd_pcsp_playback_prepare()
250 snd_pcm_lib_period_bytes(substream), in snd_pcsp_playback_prepare()
251 substream->runtime->periods, in snd_pcsp_playback_prepare()
257 static int snd_pcsp_trigger(struct snd_pcm_substream *substream, int cmd) in snd_pcsp_trigger() argument
259 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_trigger()
278 *substream) in snd_pcsp_playback_pointer()
280 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_pointer()
285 return bytes_to_frames(substream->runtime, pos); in snd_pcsp_playback_pointer()
310 static int snd_pcsp_playback_open(struct snd_pcm_substream *substream) in snd_pcsp_playback_open() argument
312 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_open()
313 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcsp_playback_open()
322 chip->playback_substream = substream; in snd_pcsp_playback_open()