Lines Matching refs:substream
65 static int snd_usbtv_pcm_open(struct snd_pcm_substream *substream) in snd_usbtv_pcm_open() argument
67 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_pcm_open()
68 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usbtv_pcm_open()
70 chip->snd_substream = substream; in snd_usbtv_pcm_open()
76 static int snd_usbtv_pcm_close(struct snd_pcm_substream *substream) in snd_usbtv_pcm_close() argument
78 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_pcm_close()
88 static int snd_usbtv_hw_params(struct snd_pcm_substream *substream, in snd_usbtv_hw_params() argument
92 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_hw_params()
94 rv = snd_pcm_lib_malloc_pages(substream, in snd_usbtv_hw_params()
106 static int snd_usbtv_hw_free(struct snd_pcm_substream *substream) in snd_usbtv_hw_free() argument
108 snd_pcm_lib_free_pages(substream); in snd_usbtv_hw_free()
112 static int snd_usbtv_prepare(struct snd_pcm_substream *substream) in snd_usbtv_prepare() argument
114 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_prepare()
125 struct snd_pcm_substream *substream = chip->snd_substream; in usbtv_audio_urb_received() local
126 struct snd_pcm_runtime *runtime = substream->runtime; in usbtv_audio_urb_received()
182 snd_pcm_stream_lock(substream); in usbtv_audio_urb_received()
187 snd_pcm_stream_unlock(substream); in usbtv_audio_urb_received()
190 snd_pcm_period_elapsed(substream); in usbtv_audio_urb_received()
304 static int snd_usbtv_card_trigger(struct snd_pcm_substream *substream, int cmd) in snd_usbtv_card_trigger() argument
306 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_card_trigger()
328 static snd_pcm_uframes_t snd_usbtv_pointer(struct snd_pcm_substream *substream) in snd_usbtv_pointer() argument
330 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_pointer()