Lines Matching defs:substream

55 	struct snd_pcm_substream *substream = alsa_stream->substream;
62 snd_pcm_stream_lock(substream);
63 snd_pcm_stop(substream,
67 snd_pcm_stream_unlock(substream);
80 snd_pcm_period_elapsed(substream);
85 static int snd_bcm2835_playback_open_generic(struct snd_pcm_substream *substream, int spdif)
87 struct bcm2835_chip *chip = snd_pcm_substream_chip(substream);
88 struct snd_pcm_runtime *runtime = substream->runtime;
94 idx = substream->number;
105 "substream(%d) device doesn't exist max(%d) substreams allowed\n",
119 alsa_stream->substream = substream;
157 static int snd_bcm2835_playback_open(struct snd_pcm_substream *substream)
159 return snd_bcm2835_playback_open_generic(substream, 0);
162 static int snd_bcm2835_playback_spdif_open(struct snd_pcm_substream *substream)
164 return snd_bcm2835_playback_open_generic(substream, 1);
167 static int snd_bcm2835_playback_close(struct snd_pcm_substream *substream)
173 chip = snd_pcm_substream_chip(substream);
175 runtime = substream->runtime;
188 chip->opened &= ~(1 << substream->number);
195 static int snd_bcm2835_pcm_prepare(struct snd_pcm_substream *substream)
197 struct bcm2835_chip *chip = snd_pcm_substream_chip(substream);
198 struct snd_pcm_runtime *runtime = substream->runtime;
222 snd_pcm_lib_buffer_bytes(substream);
224 alsa_stream->buffer_size = snd_pcm_lib_buffer_bytes(substream);
225 alsa_stream->period_size = snd_pcm_lib_period_bytes(substream);
234 static void snd_bcm2835_pcm_transfer(struct snd_pcm_substream *substream,
237 struct snd_pcm_runtime *runtime = substream->runtime;
239 void *src = (void *)(substream->runtime->dma_area + rec->sw_data);
244 static int snd_bcm2835_pcm_ack(struct snd_pcm_substream *substream)
246 struct snd_pcm_runtime *runtime = substream->runtime;
250 return snd_pcm_indirect_playback_transfer(substream, pcm_indirect,
255 static int snd_bcm2835_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
257 struct snd_pcm_runtime *runtime = substream->runtime;
275 snd_bcm2835_pcm_pointer(struct snd_pcm_substream *substream)
277 struct snd_pcm_runtime *runtime = substream->runtime;
298 return snd_pcm_indirect_playback_pointer(substream,