Lines Matching defs:pcm
15 #include <sound/pcm.h>
597 struct snd_pcm_substream *pcm,
603 if (ptr >= pcm->runtime->buffer_size)
604 ptr -= pcm->runtime->buffer_size;
608 if (s->pcm_period_pointer >= pcm->runtime->period_size) {
609 s->pcm_period_pointer -= pcm->runtime->period_size;
614 if (!pcm->runtime->no_period_wakeup) {
617 snd_pcm_period_elapsed(pcm);
621 snd_pcm_period_elapsed_under_stream_lock(pcm);
1115 struct snd_pcm_substream *pcm;
1118 pcm = READ_ONCE(s->pcm);
1119 s->process_ctx_payloads(s, desc, count, pcm);
1121 if (pcm) {
1124 pcm->runtime->delay = compute_pcm_extra_delay(s, desc, count);
1131 update_pcm_pointers(s, pcm, data_block_count * s->pcm_frame_multiplier);
1169 struct snd_pcm_substream *pcm = READ_ONCE(s->pcm);
1170 need_hw_irq = !pcm || !pcm->runtime->no_period_wakeup;
1937 struct snd_pcm_substream *pcm;
1939 pcm = READ_ONCE(s->pcm);
1940 if (pcm)
1941 snd_pcm_stop_xrun(pcm);