Lines Matching refs: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) in snd_pcm_avail() argument
38 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_avail()
39 return snd_pcm_playback_avail(substream->runtime); in snd_pcm_avail()
41 return snd_pcm_capture_avail(substream->runtime); in snd_pcm_avail()
45 snd_pcm_hw_avail(struct snd_pcm_substream *substream) in snd_pcm_hw_avail() argument
47 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_hw_avail()
48 return snd_pcm_playback_hw_avail(substream->runtime); in snd_pcm_hw_avail()
50 return snd_pcm_capture_hw_avail(substream->runtime); in snd_pcm_hw_avail()
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) {} in snd_pcm_timer_resolution_change() argument
60 static inline void snd_pcm_timer_init(struct snd_pcm_substream *substream) {} in snd_pcm_timer_init() argument
61 static inline void snd_pcm_timer_done(struct snd_pcm_substream *substream) {} in snd_pcm_timer_done() argument
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, in snd_pcm_dma_buffer_sync() argument
79 if (substream->runtime->info & SNDRV_PCM_INFO_EXPLICIT_SYNC) in snd_pcm_dma_buffer_sync()
80 snd_dma_buffer_sync(snd_pcm_get_dma_buf(substream), mode); in snd_pcm_dma_buffer_sync()