Lines Matching refs:substream

32 		struct snd_pcm_substream *substream;
33 substream = pcsp_chip.playback_substream;
34 if (substream)
35 snd_pcm_period_elapsed(substream);
48 struct snd_pcm_substream *substream;
58 substream = chip->playback_substream;
59 if (!substream)
62 runtime = substream->runtime;
90 struct snd_pcm_substream *substream;
96 substream = chip->playback_substream;
97 if (!substream)
100 period_bytes = snd_pcm_lib_period_bytes(substream);
101 buffer_bytes = snd_pcm_lib_buffer_bytes(substream);
200 static int snd_pcsp_playback_close(struct snd_pcm_substream *substream)
202 struct snd_pcsp *chip = snd_pcm_substream_chip(substream);
211 static int snd_pcsp_playback_hw_params(struct snd_pcm_substream *substream,
214 struct snd_pcsp *chip = snd_pcm_substream_chip(substream);
219 static int snd_pcsp_playback_hw_free(struct snd_pcm_substream *substream)
221 struct snd_pcsp *chip = snd_pcm_substream_chip(substream);
229 static int snd_pcsp_playback_prepare(struct snd_pcm_substream *substream)
231 struct snd_pcsp *chip = snd_pcm_substream_chip(substream);
236 snd_pcm_format_physical_width(substream->runtime->format) >> 3;
237 chip->is_signed = snd_pcm_format_signed(substream->runtime->format);
241 snd_pcm_lib_buffer_bytes(substream),
242 snd_pcm_lib_period_bytes(substream),
243 snd_pcm_lib_buffer_bytes(substream) /
244 snd_pcm_lib_period_bytes(substream),
245 substream->runtime->periods,
251 static int snd_pcsp_trigger(struct snd_pcm_substream *substream, int cmd)
253 struct snd_pcsp *chip = snd_pcm_substream_chip(substream);
272 *substream)
274 struct snd_pcsp *chip = snd_pcm_substream_chip(substream);
279 return bytes_to_frames(substream->runtime, pos);
304 static int snd_pcsp_playback_open(struct snd_pcm_substream *substream)
306 struct snd_pcsp *chip = snd_pcm_substream_chip(substream);
307 struct snd_pcm_runtime *runtime = substream->runtime;
316 chip->playback_substream = substream;