Lines Matching refs:substream
313 static void snd_es1688_set_rate(struct snd_es1688 *chip, struct snd_pcm_substream *substream) in snd_es1688_set_rate() argument
315 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1688_set_rate()
329 static int snd_es1688_ioctl(struct snd_pcm_substream *substream, in snd_es1688_ioctl() argument
332 return snd_pcm_lib_ioctl(substream, cmd, arg); in snd_es1688_ioctl()
361 static int snd_es1688_hw_params(struct snd_pcm_substream *substream, in snd_es1688_hw_params() argument
364 return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params)); in snd_es1688_hw_params()
367 static int snd_es1688_hw_free(struct snd_pcm_substream *substream) in snd_es1688_hw_free() argument
369 return snd_pcm_lib_free_pages(substream); in snd_es1688_hw_free()
372 static int snd_es1688_playback_prepare(struct snd_pcm_substream *substream) in snd_es1688_playback_prepare() argument
375 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); in snd_es1688_playback_prepare()
376 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1688_playback_prepare()
377 unsigned int size = snd_pcm_lib_buffer_bytes(substream); in snd_es1688_playback_prepare()
378 unsigned int count = snd_pcm_lib_period_bytes(substream); in snd_es1688_playback_prepare()
383 snd_es1688_set_rate(chip, substream); in snd_es1688_playback_prepare()
426 static int snd_es1688_playback_trigger(struct snd_pcm_substream *substream, in snd_es1688_playback_trigger() argument
429 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); in snd_es1688_playback_trigger()
433 static int snd_es1688_capture_prepare(struct snd_pcm_substream *substream) in snd_es1688_capture_prepare() argument
436 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); in snd_es1688_capture_prepare()
437 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1688_capture_prepare()
438 unsigned int size = snd_pcm_lib_buffer_bytes(substream); in snd_es1688_capture_prepare()
439 unsigned int count = snd_pcm_lib_period_bytes(substream); in snd_es1688_capture_prepare()
444 snd_es1688_set_rate(chip, substream); in snd_es1688_capture_prepare()
483 static int snd_es1688_capture_trigger(struct snd_pcm_substream *substream, in snd_es1688_capture_trigger() argument
486 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); in snd_es1688_capture_trigger()
503 static snd_pcm_uframes_t snd_es1688_playback_pointer(struct snd_pcm_substream *substream) in snd_es1688_playback_pointer() argument
505 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); in snd_es1688_playback_pointer()
511 return bytes_to_frames(substream->runtime, ptr); in snd_es1688_playback_pointer()
514 static snd_pcm_uframes_t snd_es1688_capture_pointer(struct snd_pcm_substream *substream) in snd_es1688_capture_pointer() argument
516 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); in snd_es1688_capture_pointer()
522 return bytes_to_frames(substream->runtime, ptr); in snd_es1688_capture_pointer()
569 static int snd_es1688_playback_open(struct snd_pcm_substream *substream) in snd_es1688_playback_open() argument
571 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); in snd_es1688_playback_open()
572 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1688_playback_open()
576 chip->playback_substream = substream; in snd_es1688_playback_open()
583 static int snd_es1688_capture_open(struct snd_pcm_substream *substream) in snd_es1688_capture_open() argument
585 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); in snd_es1688_capture_open()
586 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1688_capture_open()
590 chip->capture_substream = substream; in snd_es1688_capture_open()
597 static int snd_es1688_playback_close(struct snd_pcm_substream *substream) in snd_es1688_playback_close() argument
599 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); in snd_es1688_playback_close()
605 static int snd_es1688_capture_close(struct snd_pcm_substream *substream) in snd_es1688_capture_close() argument
607 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); in snd_es1688_capture_close()