Lines Matching refs:pcm

259 			    struct snd_pcm_substream *pcm,
262 struct snd_pcm_substream *pcm,
265 struct snd_pcm_substream *pcm,
398 struct snd_pcm_substream *pcm, in amdtp_write_s32() argument
401 struct snd_pcm_runtime *runtime = pcm->runtime; in amdtp_write_s32()
423 struct snd_pcm_substream *pcm, in amdtp_write_s16() argument
426 struct snd_pcm_runtime *runtime = pcm->runtime; in amdtp_write_s16()
448 struct snd_pcm_substream *pcm, in amdtp_read_s32() argument
451 struct snd_pcm_runtime *runtime = pcm->runtime; in amdtp_read_s32()
560 struct snd_pcm_substream *pcm, in update_pcm_pointers() argument
574 if (ptr >= pcm->runtime->buffer_size) in update_pcm_pointers()
575 ptr -= pcm->runtime->buffer_size; in update_pcm_pointers()
579 if (s->pcm_period_pointer >= pcm->runtime->period_size) { in update_pcm_pointers()
580 s->pcm_period_pointer -= pcm->runtime->period_size; in update_pcm_pointers()
589 struct snd_pcm_substream *pcm = ACCESS_ONCE(s->pcm); in pcm_period_tasklet() local
591 if (pcm) in pcm_period_tasklet()
592 snd_pcm_period_elapsed(pcm); in pcm_period_tasklet()
640 struct snd_pcm_substream *pcm; in handle_out_packet() local
659 pcm = ACCESS_ONCE(s->pcm); in handle_out_packet()
660 if (pcm) in handle_out_packet()
661 s->transfer_samples(s, pcm, buffer, data_blocks); in handle_out_packet()
676 if (pcm) in handle_out_packet()
677 update_pcm_pointers(s, pcm, data_blocks); in handle_out_packet()
687 struct snd_pcm_substream *pcm = NULL; in handle_in_packet() local
759 pcm = ACCESS_ONCE(s->pcm); in handle_in_packet()
760 if (pcm) in handle_in_packet()
761 s->transfer_samples(s, pcm, buffer, data_blocks); in handle_in_packet()
776 if (pcm) in handle_in_packet()
777 update_pcm_pointers(s, pcm, data_blocks); in handle_in_packet()
1059 struct snd_pcm_substream *pcm; in amdtp_stream_pcm_abort() local
1061 pcm = ACCESS_ONCE(s->pcm); in amdtp_stream_pcm_abort()
1062 if (pcm) in amdtp_stream_pcm_abort()
1063 snd_pcm_stop_xrun(pcm); in amdtp_stream_pcm_abort()