Lines Matching defs:substream

26 int pcm_lib_apply_appl_ptr(struct snd_pcm_substream *substream,
28 int snd_pcm_update_state(struct snd_pcm_substream *substream,
30 int snd_pcm_update_hw_ptr(struct snd_pcm_substream *substream);
32 void snd_pcm_playback_silence(struct snd_pcm_substream *substream,
36 snd_pcm_avail(struct snd_pcm_substream *substream)
38 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
39 return snd_pcm_playback_avail(substream->runtime);
41 return snd_pcm_capture_avail(substream->runtime);
45 snd_pcm_hw_avail(struct snd_pcm_substream *substream)
47 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
48 return snd_pcm_playback_hw_avail(substream->runtime);
50 return snd_pcm_capture_hw_avail(substream->runtime);
54 void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream);
55 void snd_pcm_timer_init(struct snd_pcm_substream *substream);
56 void snd_pcm_timer_done(struct snd_pcm_substream *substream);
59 snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream) {}
60 static inline void snd_pcm_timer_init(struct snd_pcm_substream *substream) {}
61 static inline void snd_pcm_timer_done(struct snd_pcm_substream *substream) {}
64 void __snd_pcm_xrun(struct snd_pcm_substream *substream);
66 void snd_pcm_sync_stop(struct snd_pcm_substream *substream, bool sync_irq);
73 for ((subs) = (pcm)->streams[str].substream; (subs); \
76 static inline void snd_pcm_dma_buffer_sync(struct snd_pcm_substream *substream,
79 if (substream->runtime->info & SNDRV_PCM_INFO_EXPLICIT_SYNC)
80 snd_dma_buffer_sync(snd_pcm_get_dma_buf(substream), mode);