Lines Matching refs:substream

47 	struct snd_pcm_substream *substream;  member
76 struct snd_pcm_runtime *runtime = gosnd->substream->runtime; in parse_audio_stream_data()
103 snd_pcm_period_elapsed(gosnd->substream); in parse_audio_stream_data()
106 static int go7007_snd_hw_params(struct snd_pcm_substream *substream, in go7007_snd_hw_params() argument
109 struct go7007 *go = snd_pcm_substream_chip(substream); in go7007_snd_hw_params()
113 if (substream->runtime->dma_bytes > 0) in go7007_snd_hw_params()
114 vfree(substream->runtime->dma_area); in go7007_snd_hw_params()
115 substream->runtime->dma_bytes = 0; in go7007_snd_hw_params()
116 substream->runtime->dma_area = vmalloc(bytes); in go7007_snd_hw_params()
117 if (substream->runtime->dma_area == NULL) in go7007_snd_hw_params()
119 substream->runtime->dma_bytes = bytes; in go7007_snd_hw_params()
124 static int go7007_snd_hw_free(struct snd_pcm_substream *substream) in go7007_snd_hw_free() argument
126 struct go7007 *go = snd_pcm_substream_chip(substream); in go7007_snd_hw_free()
129 if (substream->runtime->dma_bytes > 0) in go7007_snd_hw_free()
130 vfree(substream->runtime->dma_area); in go7007_snd_hw_free()
131 substream->runtime->dma_bytes = 0; in go7007_snd_hw_free()
135 static int go7007_snd_capture_open(struct snd_pcm_substream *substream) in go7007_snd_capture_open() argument
137 struct go7007 *go = snd_pcm_substream_chip(substream); in go7007_snd_capture_open()
143 if (gosnd->substream == NULL) { in go7007_snd_capture_open()
144 gosnd->substream = substream; in go7007_snd_capture_open()
145 substream->runtime->hw = go7007_snd_capture_hw; in go7007_snd_capture_open()
153 static int go7007_snd_capture_close(struct snd_pcm_substream *substream) in go7007_snd_capture_close() argument
155 struct go7007 *go = snd_pcm_substream_chip(substream); in go7007_snd_capture_close()
158 gosnd->substream = NULL; in go7007_snd_capture_close()
162 static int go7007_snd_pcm_prepare(struct snd_pcm_substream *substream) in go7007_snd_pcm_prepare() argument
167 static int go7007_snd_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in go7007_snd_pcm_trigger() argument
169 struct go7007 *go = snd_pcm_substream_chip(substream); in go7007_snd_pcm_trigger()
187 static snd_pcm_uframes_t go7007_snd_pcm_pointer(struct snd_pcm_substream *substream) in go7007_snd_pcm_pointer() argument
189 struct go7007 *go = snd_pcm_substream_chip(substream); in go7007_snd_pcm_pointer()
195 static struct page *go7007_snd_pcm_page(struct snd_pcm_substream *substream, in go7007_snd_pcm_page() argument
198 return vmalloc_to_page(substream->runtime->dma_area + offset); in go7007_snd_pcm_page()
278 gosnd->substream = NULL; in go7007_snd_init()