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()
200 static int snd_pcsp_playback_close(struct snd_pcm_substream *substream) in snd_pcsp_playback_close() argument
202 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_close()
211 static int snd_pcsp_playback_hw_params(struct snd_pcm_substream *substream, in snd_pcsp_playback_hw_params() argument
214 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_hw_params()
219 static int snd_pcsp_playback_hw_free(struct snd_pcm_substream *substream) in snd_pcsp_playback_hw_free() argument
221 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_hw_free()
229 static int snd_pcsp_playback_prepare(struct snd_pcm_substream *substream) in snd_pcsp_playback_prepare() argument
231 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_prepare()
236 snd_pcm_format_physical_width(substream->runtime->format) >> 3; in snd_pcsp_playback_prepare()
237 chip->is_signed = snd_pcm_format_signed(substream->runtime->format); in snd_pcsp_playback_prepare()
241 snd_pcm_lib_buffer_bytes(substream), in snd_pcsp_playback_prepare()
242 snd_pcm_lib_period_bytes(substream), in snd_pcsp_playback_prepare()
243 snd_pcm_lib_buffer_bytes(substream) / in snd_pcsp_playback_prepare()
244 snd_pcm_lib_period_bytes(substream), in snd_pcsp_playback_prepare()
245 substream->runtime->periods, in snd_pcsp_playback_prepare()
251 static int snd_pcsp_trigger(struct snd_pcm_substream *substream, int cmd) in snd_pcsp_trigger() argument
253 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_trigger()
272 *substream) in snd_pcsp_playback_pointer()
274 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_pointer()
279 return bytes_to_frames(substream->runtime, pos); in snd_pcsp_playback_pointer()
304 static int snd_pcsp_playback_open(struct snd_pcm_substream *substream) in snd_pcsp_playback_open() argument
306 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_open()
307 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcsp_playback_open()
316 chip->playback_substream = substream; in snd_pcsp_playback_open()