Lines Matching refs:substream

121 static int snd_aw2_pcm_playback_open(struct snd_pcm_substream *substream);
122 static int snd_aw2_pcm_playback_close(struct snd_pcm_substream *substream);
123 static int snd_aw2_pcm_capture_open(struct snd_pcm_substream *substream);
124 static int snd_aw2_pcm_capture_close(struct snd_pcm_substream *substream);
125 static int snd_aw2_pcm_hw_params(struct snd_pcm_substream *substream,
127 static int snd_aw2_pcm_hw_free(struct snd_pcm_substream *substream);
128 static int snd_aw2_pcm_prepare_playback(struct snd_pcm_substream *substream);
129 static int snd_aw2_pcm_prepare_capture(struct snd_pcm_substream *substream);
130 static int snd_aw2_pcm_trigger_playback(struct snd_pcm_substream *substream,
132 static int snd_aw2_pcm_trigger_capture(struct snd_pcm_substream *substream,
135 *substream);
137 *substream);
395 static int snd_aw2_pcm_playback_open(struct snd_pcm_substream *substream) in snd_aw2_pcm_playback_open() argument
397 struct snd_pcm_runtime *runtime = substream->runtime; in snd_aw2_pcm_playback_open()
399 dev_dbg(substream->pcm->card->dev, "Playback_open\n"); in snd_aw2_pcm_playback_open()
405 static int snd_aw2_pcm_playback_close(struct snd_pcm_substream *substream) in snd_aw2_pcm_playback_close() argument
411 static int snd_aw2_pcm_capture_open(struct snd_pcm_substream *substream) in snd_aw2_pcm_capture_open() argument
413 struct snd_pcm_runtime *runtime = substream->runtime; in snd_aw2_pcm_capture_open()
415 dev_dbg(substream->pcm->card->dev, "Capture_open\n"); in snd_aw2_pcm_capture_open()
421 static int snd_aw2_pcm_capture_close(struct snd_pcm_substream *substream) in snd_aw2_pcm_capture_close() argument
428 static int snd_aw2_pcm_hw_params(struct snd_pcm_substream *substream, in snd_aw2_pcm_hw_params() argument
431 return snd_pcm_lib_malloc_pages(substream, in snd_aw2_pcm_hw_params()
436 static int snd_aw2_pcm_hw_free(struct snd_pcm_substream *substream) in snd_aw2_pcm_hw_free() argument
438 return snd_pcm_lib_free_pages(substream); in snd_aw2_pcm_hw_free()
442 static int snd_aw2_pcm_prepare_playback(struct snd_pcm_substream *substream) in snd_aw2_pcm_prepare_playback() argument
444 struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream); in snd_aw2_pcm_prepare_playback()
446 struct snd_pcm_runtime *runtime = substream->runtime; in snd_aw2_pcm_prepare_playback()
451 period_size = snd_pcm_lib_period_bytes(substream); in snd_aw2_pcm_prepare_playback()
452 buffer_size = snd_pcm_lib_buffer_bytes(substream); in snd_aw2_pcm_prepare_playback()
463 (void *)substream); in snd_aw2_pcm_prepare_playback()
471 static int snd_aw2_pcm_prepare_capture(struct snd_pcm_substream *substream) in snd_aw2_pcm_prepare_capture() argument
473 struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream); in snd_aw2_pcm_prepare_capture()
475 struct snd_pcm_runtime *runtime = substream->runtime; in snd_aw2_pcm_prepare_capture()
480 period_size = snd_pcm_lib_period_bytes(substream); in snd_aw2_pcm_prepare_capture()
481 buffer_size = snd_pcm_lib_buffer_bytes(substream); in snd_aw2_pcm_prepare_capture()
492 (void *)substream); in snd_aw2_pcm_prepare_capture()
500 static int snd_aw2_pcm_trigger_playback(struct snd_pcm_substream *substream, in snd_aw2_pcm_trigger_playback() argument
504 struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream); in snd_aw2_pcm_trigger_playback()
526 static int snd_aw2_pcm_trigger_capture(struct snd_pcm_substream *substream, in snd_aw2_pcm_trigger_capture() argument
530 struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream); in snd_aw2_pcm_trigger_capture()
553 *substream) in snd_aw2_pcm_pointer_playback()
555 struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream); in snd_aw2_pcm_pointer_playback()
560 struct snd_pcm_runtime *runtime = substream->runtime; in snd_aw2_pcm_pointer_playback()
567 return bytes_to_frames(substream->runtime, current_ptr); in snd_aw2_pcm_pointer_playback()
572 *substream) in snd_aw2_pcm_pointer_capture()
574 struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream); in snd_aw2_pcm_pointer_capture()
579 struct snd_pcm_runtime *runtime = substream->runtime; in snd_aw2_pcm_pointer_capture()
586 return bytes_to_frames(substream->runtime, current_ptr); in snd_aw2_pcm_pointer_capture()