Lines Matching refs:substream

56 	struct snd_pcm_substream *substream;  member
114 static int snd_sh_dac_pcm_open(struct snd_pcm_substream *substream) in snd_sh_dac_pcm_open() argument
116 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); in snd_sh_dac_pcm_open()
117 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sh_dac_pcm_open()
121 chip->substream = substream; in snd_sh_dac_pcm_open()
131 static int snd_sh_dac_pcm_close(struct snd_pcm_substream *substream) in snd_sh_dac_pcm_close() argument
133 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); in snd_sh_dac_pcm_close()
135 chip->substream = NULL; in snd_sh_dac_pcm_close()
143 static int snd_sh_dac_pcm_hw_params(struct snd_pcm_substream *substream, in snd_sh_dac_pcm_hw_params() argument
146 return snd_pcm_lib_malloc_pages(substream, in snd_sh_dac_pcm_hw_params()
150 static int snd_sh_dac_pcm_hw_free(struct snd_pcm_substream *substream) in snd_sh_dac_pcm_hw_free() argument
152 return snd_pcm_lib_free_pages(substream); in snd_sh_dac_pcm_hw_free()
155 static int snd_sh_dac_pcm_prepare(struct snd_pcm_substream *substream) in snd_sh_dac_pcm_prepare() argument
157 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); in snd_sh_dac_pcm_prepare()
158 struct snd_pcm_runtime *runtime = chip->substream->runtime; in snd_sh_dac_pcm_prepare()
166 static int snd_sh_dac_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in snd_sh_dac_pcm_trigger() argument
168 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); in snd_sh_dac_pcm_trigger()
187 static int snd_sh_dac_pcm_copy(struct snd_pcm_substream *substream, int channel, in snd_sh_dac_pcm_copy() argument
191 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); in snd_sh_dac_pcm_copy()
192 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sh_dac_pcm_copy()
213 static int snd_sh_dac_pcm_silence(struct snd_pcm_substream *substream, in snd_sh_dac_pcm_silence() argument
218 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); in snd_sh_dac_pcm_silence()
219 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sh_dac_pcm_silence()
241 snd_pcm_uframes_t snd_sh_dac_pcm_pointer(struct snd_pcm_substream *substream) in snd_sh_dac_pcm_pointer() argument
243 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); in snd_sh_dac_pcm_pointer()
317 struct snd_pcm_runtime *runtime = chip->substream->runtime; in sh_dac_audio_timer()
327 snd_pcm_period_elapsed(chip->substream); in sh_dac_audio_timer()