Lines Matching refs:substream

127 oxygen_substream_channel(struct snd_pcm_substream *substream)  in oxygen_substream_channel()  argument
129 return (unsigned int)(uintptr_t)substream->runtime->private_data; in oxygen_substream_channel()
132 static int oxygen_open(struct snd_pcm_substream *substream, in oxygen_open() argument
135 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_open()
136 struct snd_pcm_runtime *runtime = substream->runtime; in oxygen_open()
183 snd_pcm_set_sync(substream); in oxygen_open()
184 chip->streams[channel] = substream; in oxygen_open()
201 static int oxygen_rec_a_open(struct snd_pcm_substream *substream) in oxygen_rec_a_open() argument
203 return oxygen_open(substream, PCM_A); in oxygen_rec_a_open()
206 static int oxygen_rec_b_open(struct snd_pcm_substream *substream) in oxygen_rec_b_open() argument
208 return oxygen_open(substream, PCM_B); in oxygen_rec_b_open()
211 static int oxygen_rec_c_open(struct snd_pcm_substream *substream) in oxygen_rec_c_open() argument
213 return oxygen_open(substream, PCM_C); in oxygen_rec_c_open()
216 static int oxygen_spdif_open(struct snd_pcm_substream *substream) in oxygen_spdif_open() argument
218 return oxygen_open(substream, PCM_SPDIF); in oxygen_spdif_open()
221 static int oxygen_multich_open(struct snd_pcm_substream *substream) in oxygen_multich_open() argument
223 return oxygen_open(substream, PCM_MULTICH); in oxygen_multich_open()
226 static int oxygen_ac97_open(struct snd_pcm_substream *substream) in oxygen_ac97_open() argument
228 return oxygen_open(substream, PCM_AC97); in oxygen_ac97_open()
231 static int oxygen_close(struct snd_pcm_substream *substream) in oxygen_close() argument
233 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_close()
234 unsigned int channel = oxygen_substream_channel(substream); in oxygen_close()
314 static int oxygen_hw_params(struct snd_pcm_substream *substream, in oxygen_hw_params() argument
317 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_hw_params()
318 unsigned int channel = oxygen_substream_channel(substream); in oxygen_hw_params()
321 err = snd_pcm_lib_malloc_pages(substream, in oxygen_hw_params()
327 (u32)substream->runtime->dma_addr); in oxygen_hw_params()
362 static int oxygen_rec_a_hw_params(struct snd_pcm_substream *substream, in oxygen_rec_a_hw_params() argument
365 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_rec_a_hw_params()
368 err = oxygen_hw_params(substream, hw_params); in oxygen_rec_a_hw_params()
393 static int oxygen_rec_b_hw_params(struct snd_pcm_substream *substream, in oxygen_rec_b_hw_params() argument
396 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_rec_b_hw_params()
400 err = oxygen_hw_params(substream, hw_params); in oxygen_rec_b_hw_params()
431 static int oxygen_rec_c_hw_params(struct snd_pcm_substream *substream, in oxygen_rec_c_hw_params() argument
434 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_rec_c_hw_params()
438 err = oxygen_hw_params(substream, hw_params); in oxygen_rec_c_hw_params()
468 static int oxygen_spdif_hw_params(struct snd_pcm_substream *substream, in oxygen_spdif_hw_params() argument
471 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_spdif_hw_params()
474 err = oxygen_hw_params(substream, hw_params); in oxygen_spdif_hw_params()
494 static int oxygen_multich_hw_params(struct snd_pcm_substream *substream, in oxygen_multich_hw_params() argument
497 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_multich_hw_params()
500 err = oxygen_hw_params(substream, hw_params); in oxygen_multich_hw_params()
530 static int oxygen_hw_free(struct snd_pcm_substream *substream) in oxygen_hw_free() argument
532 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_hw_free()
533 unsigned int channel = oxygen_substream_channel(substream); in oxygen_hw_free()
544 return snd_pcm_lib_free_pages(substream); in oxygen_hw_free()
547 static int oxygen_spdif_hw_free(struct snd_pcm_substream *substream) in oxygen_spdif_hw_free() argument
549 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_spdif_hw_free()
555 return oxygen_hw_free(substream); in oxygen_spdif_hw_free()
558 static int oxygen_prepare(struct snd_pcm_substream *substream) in oxygen_prepare() argument
560 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_prepare()
561 unsigned int channel = oxygen_substream_channel(substream); in oxygen_prepare()
568 if (substream->runtime->no_period_wakeup) in oxygen_prepare()
577 static int oxygen_trigger(struct snd_pcm_substream *substream, int cmd) in oxygen_trigger() argument
579 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_trigger()
598 snd_pcm_group_for_each_entry(s, substream) { in oxygen_trigger()
601 snd_pcm_trigger_done(s, substream); in oxygen_trigger()
622 static snd_pcm_uframes_t oxygen_pointer(struct snd_pcm_substream *substream) in oxygen_pointer() argument
624 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_pointer()
625 struct snd_pcm_runtime *runtime = substream->runtime; in oxygen_pointer()
626 unsigned int channel = oxygen_substream_channel(substream); in oxygen_pointer()
726 snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream, in oxygen_pcm_init()
732 snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, in oxygen_pcm_init()