• Home
  • Raw
  • Download

Lines Matching refs:substream

22 			      struct snd_pcm_substream *substream)  in pcm_init_hw_params()  argument
40 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_init_hw_params()
46 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in pcm_init_hw_params()
68 static int pcm_open(struct snd_pcm_substream *substream) in pcm_open() argument
70 struct snd_tscm *tscm = substream->private_data; in pcm_open()
79 err = pcm_init_hw_params(tscm, substream); in pcm_open()
93 substream->runtime->hw.rate_min = rate; in pcm_open()
94 substream->runtime->hw.rate_max = rate; in pcm_open()
97 snd_pcm_set_sync(substream); in pcm_open()
105 static int pcm_close(struct snd_pcm_substream *substream) in pcm_close() argument
107 struct snd_tscm *tscm = substream->private_data; in pcm_close()
114 static int pcm_capture_hw_params(struct snd_pcm_substream *substream, in pcm_capture_hw_params() argument
117 struct snd_tscm *tscm = substream->private_data; in pcm_capture_hw_params()
120 err = snd_pcm_lib_alloc_vmalloc_buffer(substream, in pcm_capture_hw_params()
125 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { in pcm_capture_hw_params()
136 static int pcm_playback_hw_params(struct snd_pcm_substream *substream, in pcm_playback_hw_params() argument
139 struct snd_tscm *tscm = substream->private_data; in pcm_playback_hw_params()
142 err = snd_pcm_lib_alloc_vmalloc_buffer(substream, in pcm_playback_hw_params()
147 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { in pcm_playback_hw_params()
158 static int pcm_capture_hw_free(struct snd_pcm_substream *substream) in pcm_capture_hw_free() argument
160 struct snd_tscm *tscm = substream->private_data; in pcm_capture_hw_free()
164 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in pcm_capture_hw_free()
171 return snd_pcm_lib_free_vmalloc_buffer(substream); in pcm_capture_hw_free()
174 static int pcm_playback_hw_free(struct snd_pcm_substream *substream) in pcm_playback_hw_free() argument
176 struct snd_tscm *tscm = substream->private_data; in pcm_playback_hw_free()
180 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in pcm_playback_hw_free()
187 return snd_pcm_lib_free_vmalloc_buffer(substream); in pcm_playback_hw_free()
190 static int pcm_capture_prepare(struct snd_pcm_substream *substream) in pcm_capture_prepare() argument
192 struct snd_tscm *tscm = substream->private_data; in pcm_capture_prepare()
193 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_capture_prepare()
207 static int pcm_playback_prepare(struct snd_pcm_substream *substream) in pcm_playback_prepare() argument
209 struct snd_tscm *tscm = substream->private_data; in pcm_playback_prepare()
210 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_playback_prepare()
224 static int pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd) in pcm_capture_trigger() argument
226 struct snd_tscm *tscm = substream->private_data; in pcm_capture_trigger()
230 amdtp_stream_pcm_trigger(&tscm->tx_stream, substream); in pcm_capture_trigger()
242 static int pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd) in pcm_playback_trigger() argument
244 struct snd_tscm *tscm = substream->private_data; in pcm_playback_trigger()
248 amdtp_stream_pcm_trigger(&tscm->rx_stream, substream); in pcm_playback_trigger()