Lines Matching refs:substream

108 		struct snd_pcm_substream *substream,  in atmel_ac97c_prepare_dma()  argument
113 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_prepare_dma()
175 static int atmel_ac97c_playback_open(struct snd_pcm_substream *substream) in atmel_ac97c_playback_open() argument
177 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_playback_open()
178 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_playback_open()
190 chip->playback_substream = substream; in atmel_ac97c_playback_open()
194 static int atmel_ac97c_capture_open(struct snd_pcm_substream *substream) in atmel_ac97c_capture_open() argument
196 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_capture_open()
197 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_capture_open()
209 chip->capture_substream = substream; in atmel_ac97c_capture_open()
213 static int atmel_ac97c_playback_close(struct snd_pcm_substream *substream) in atmel_ac97c_playback_close() argument
215 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_playback_close()
230 static int atmel_ac97c_capture_close(struct snd_pcm_substream *substream) in atmel_ac97c_capture_close() argument
232 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_capture_close()
247 static int atmel_ac97c_playback_hw_params(struct snd_pcm_substream *substream, in atmel_ac97c_playback_hw_params() argument
250 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_playback_hw_params()
253 retval = snd_pcm_lib_malloc_pages(substream, in atmel_ac97c_playback_hw_params()
273 static int atmel_ac97c_capture_hw_params(struct snd_pcm_substream *substream, in atmel_ac97c_capture_hw_params() argument
276 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_capture_hw_params()
279 retval = snd_pcm_lib_malloc_pages(substream, in atmel_ac97c_capture_hw_params()
297 static int atmel_ac97c_playback_hw_free(struct snd_pcm_substream *substream) in atmel_ac97c_playback_hw_free() argument
299 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_playback_hw_free()
304 return snd_pcm_lib_free_pages(substream); in atmel_ac97c_playback_hw_free()
307 static int atmel_ac97c_capture_hw_free(struct snd_pcm_substream *substream) in atmel_ac97c_capture_hw_free() argument
309 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_capture_hw_free()
314 return snd_pcm_lib_free_pages(substream); in atmel_ac97c_capture_hw_free()
317 static int atmel_ac97c_playback_prepare(struct snd_pcm_substream *substream) in atmel_ac97c_playback_prepare() argument
319 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_playback_prepare()
320 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_playback_prepare()
394 retval = atmel_ac97c_prepare_dma(chip, substream, in atmel_ac97c_playback_prepare()
408 static int atmel_ac97c_capture_prepare(struct snd_pcm_substream *substream) in atmel_ac97c_capture_prepare() argument
410 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_capture_prepare()
411 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_capture_prepare()
485 retval = atmel_ac97c_prepare_dma(chip, substream, in atmel_ac97c_capture_prepare()
500 atmel_ac97c_playback_trigger(struct snd_pcm_substream *substream, int cmd) in atmel_ac97c_playback_trigger() argument
502 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_playback_trigger()
544 atmel_ac97c_capture_trigger(struct snd_pcm_substream *substream, int cmd) in atmel_ac97c_capture_trigger() argument
546 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_capture_trigger()
589 atmel_ac97c_playback_pointer(struct snd_pcm_substream *substream) in atmel_ac97c_playback_pointer() argument
591 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_playback_pointer()
592 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_playback_pointer()
609 atmel_ac97c_capture_pointer(struct snd_pcm_substream *substream) in atmel_ac97c_capture_pointer() argument
611 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_capture_pointer()
612 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_capture_pointer()