Lines Matching refs:substream

70 	struct snd_pcm_substream *substream;  member
313 snd_pcm_period_elapsed(hal2->dac.substream); in hal2_interrupt()
317 snd_pcm_period_elapsed(hal2->adc.substream); in hal2_interrupt()
513 static int hal2_pcm_hw_params(struct snd_pcm_substream *substream, in hal2_pcm_hw_params() argument
518 err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params)); in hal2_pcm_hw_params()
525 static int hal2_pcm_hw_free(struct snd_pcm_substream *substream) in hal2_pcm_hw_free() argument
527 return snd_pcm_lib_free_pages(substream); in hal2_pcm_hw_free()
530 static int hal2_playback_open(struct snd_pcm_substream *substream) in hal2_playback_open() argument
532 struct snd_pcm_runtime *runtime = substream->runtime; in hal2_playback_open()
533 struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream); in hal2_playback_open()
544 static int hal2_playback_close(struct snd_pcm_substream *substream) in hal2_playback_close() argument
546 struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream); in hal2_playback_close()
552 static int hal2_playback_prepare(struct snd_pcm_substream *substream) in hal2_playback_prepare() argument
554 struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream); in hal2_playback_prepare()
555 struct snd_pcm_runtime *runtime = substream->runtime; in hal2_playback_prepare()
562 dac->pcm_indirect.sw_buffer_size = snd_pcm_lib_buffer_bytes(substream); in hal2_playback_prepare()
563 dac->substream = substream; in hal2_playback_prepare()
568 static int hal2_playback_trigger(struct snd_pcm_substream *substream, int cmd) in hal2_playback_trigger() argument
570 struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream); in hal2_playback_trigger()
576 substream->ops->ack(substream); in hal2_playback_trigger()
589 hal2_playback_pointer(struct snd_pcm_substream *substream) in hal2_playback_pointer() argument
591 struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream); in hal2_playback_pointer()
594 return snd_pcm_indirect_playback_pointer(substream, &dac->pcm_indirect, in hal2_playback_pointer()
598 static void hal2_playback_transfer(struct snd_pcm_substream *substream, in hal2_playback_transfer() argument
601 struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream); in hal2_playback_transfer()
604 memcpy(buf, substream->runtime->dma_area + rec->sw_data, bytes); in hal2_playback_transfer()
609 static int hal2_playback_ack(struct snd_pcm_substream *substream) in hal2_playback_ack() argument
611 struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream); in hal2_playback_ack()
615 snd_pcm_indirect_playback_transfer(substream, in hal2_playback_ack()
621 static int hal2_capture_open(struct snd_pcm_substream *substream) in hal2_capture_open() argument
623 struct snd_pcm_runtime *runtime = substream->runtime; in hal2_capture_open()
624 struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream); in hal2_capture_open()
636 static int hal2_capture_close(struct snd_pcm_substream *substream) in hal2_capture_close() argument
638 struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream); in hal2_capture_close()
644 static int hal2_capture_prepare(struct snd_pcm_substream *substream) in hal2_capture_prepare() argument
646 struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream); in hal2_capture_prepare()
647 struct snd_pcm_runtime *runtime = substream->runtime; in hal2_capture_prepare()
655 adc->pcm_indirect.sw_buffer_size = snd_pcm_lib_buffer_bytes(substream); in hal2_capture_prepare()
656 adc->substream = substream; in hal2_capture_prepare()
661 static int hal2_capture_trigger(struct snd_pcm_substream *substream, int cmd) in hal2_capture_trigger() argument
663 struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream); in hal2_capture_trigger()
682 hal2_capture_pointer(struct snd_pcm_substream *substream) in hal2_capture_pointer() argument
684 struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream); in hal2_capture_pointer()
687 return snd_pcm_indirect_capture_pointer(substream, &adc->pcm_indirect, in hal2_capture_pointer()
691 static void hal2_capture_transfer(struct snd_pcm_substream *substream, in hal2_capture_transfer() argument
694 struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream); in hal2_capture_transfer()
698 memcpy(substream->runtime->dma_area + rec->sw_data, buf, bytes); in hal2_capture_transfer()
701 static int hal2_capture_ack(struct snd_pcm_substream *substream) in hal2_capture_ack() argument
703 struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream); in hal2_capture_ack()
706 snd_pcm_indirect_capture_transfer(substream, in hal2_capture_ack()