Lines Matching defs:substream

105 static int snd_aw2_pcm_playback_open(struct snd_pcm_substream *substream);
106 static int snd_aw2_pcm_playback_close(struct snd_pcm_substream *substream);
107 static int snd_aw2_pcm_capture_open(struct snd_pcm_substream *substream);
108 static int snd_aw2_pcm_capture_close(struct snd_pcm_substream *substream);
109 static int snd_aw2_pcm_prepare_playback(struct snd_pcm_substream *substream);
110 static int snd_aw2_pcm_prepare_capture(struct snd_pcm_substream *substream);
111 static int snd_aw2_pcm_trigger_playback(struct snd_pcm_substream *substream,
113 static int snd_aw2_pcm_trigger_capture(struct snd_pcm_substream *substream,
116 *substream);
118 *substream);
311 static int snd_aw2_pcm_playback_open(struct snd_pcm_substream *substream)
313 struct snd_pcm_runtime *runtime = substream->runtime;
315 dev_dbg(substream->pcm->card->dev, "Playback_open\n");
321 static int snd_aw2_pcm_playback_close(struct snd_pcm_substream *substream)
327 static int snd_aw2_pcm_capture_open(struct snd_pcm_substream *substream)
329 struct snd_pcm_runtime *runtime = substream->runtime;
331 dev_dbg(substream->pcm->card->dev, "Capture_open\n");
337 static int snd_aw2_pcm_capture_close(struct snd_pcm_substream *substream)
344 static int snd_aw2_pcm_prepare_playback(struct snd_pcm_substream *substream)
346 struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream);
348 struct snd_pcm_runtime *runtime = substream->runtime;
353 period_size = snd_pcm_lib_period_bytes(substream);
354 buffer_size = snd_pcm_lib_buffer_bytes(substream);
365 (void *)substream);
373 static int snd_aw2_pcm_prepare_capture(struct snd_pcm_substream *substream)
375 struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream);
377 struct snd_pcm_runtime *runtime = substream->runtime;
382 period_size = snd_pcm_lib_period_bytes(substream);
383 buffer_size = snd_pcm_lib_buffer_bytes(substream);
394 (void *)substream);
402 static int snd_aw2_pcm_trigger_playback(struct snd_pcm_substream *substream,
406 struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream);
428 static int snd_aw2_pcm_trigger_capture(struct snd_pcm_substream *substream,
432 struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream);
455 *substream)
457 struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream);
462 struct snd_pcm_runtime *runtime = substream->runtime;
469 return bytes_to_frames(substream->runtime, current_ptr);
474 *substream)
476 struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream);
481 struct snd_pcm_runtime *runtime = substream->runtime;
488 return bytes_to_frames(substream->runtime, current_ptr);