Lines Matching defs:substream
97 struct snd_pcm_substream *substream;
102 substream = rcu_dereference(dev->tx_substream);
104 substream = rcu_dereference(dev->rx_substream);
105 active = substream && snd_pcm_running(substream);
112 new_ptr = dev->tx_fn(dev, substream->runtime, ptr,
117 new_ptr = dev->rx_fn(dev, substream->runtime, ptr,
123 snd_pcm_period_elapsed(substream);
139 struct snd_pcm_substream *substream)
141 struct snd_pcm_runtime *runtime = substream->runtime;
142 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
145 snd_soc_set_runtime_hwparams(substream, &dw_pcm_hardware);
153 struct snd_pcm_substream *substream)
160 struct snd_pcm_substream *substream,
163 struct snd_pcm_runtime *runtime = substream->runtime;
193 struct snd_pcm_substream *substream, int cmd)
195 struct snd_pcm_runtime *runtime = substream->runtime;
203 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
205 rcu_assign_pointer(dev->tx_substream, substream);
208 rcu_assign_pointer(dev->rx_substream, substream);
214 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
228 struct snd_pcm_substream *substream)
230 struct snd_pcm_runtime *runtime = substream->runtime;
234 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)