• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/usb/caiaq/

Lines Matching defs:sub

64 	           struct snd_pcm_substream *sub)
68 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
69 dev->sub_playback[sub->number] = sub;
71 dev->sub_capture[sub->number] = sub;
78 struct snd_pcm_substream *sub)
83 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
84 dev->sub_playback[sub->number] = NULL;
86 dev->sub_capture[sub->number] = NULL;
171 static int snd_usb_caiaq_pcm_hw_params(struct snd_pcm_substream *sub,
174 debug("%s(%p)\n", __func__, sub);
175 return snd_pcm_lib_malloc_pages(sub, params_buffer_bytes(hw_params));
178 static int snd_usb_caiaq_pcm_hw_free(struct snd_pcm_substream *sub)
180 struct snd_usb_caiaqdev *dev = snd_pcm_substream_chip(sub);
181 debug("%s(%p)\n", __func__, sub);
182 deactivate_substream(dev, sub);
183 return snd_pcm_lib_free_pages(sub);
252 static int snd_usb_caiaq_pcm_trigger(struct snd_pcm_substream *sub, int cmd)
254 struct snd_usb_caiaqdev *dev = snd_pcm_substream_chip(sub);
259 activate_substream(dev, sub);
263 deactivate_substream(dev, sub);
273 snd_usb_caiaq_pcm_pointer(struct snd_pcm_substream *sub)
275 int index = sub->number;
276 struct snd_usb_caiaqdev *dev = snd_pcm_substream_chip(sub);
284 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
285 ptr = bytes_to_frames(sub->runtime,
288 ptr = bytes_to_frames(sub->runtime,
311 struct snd_pcm_substream *sub;
314 sub = subs[stream];
315 if (!sub)
318 pb = snd_pcm_lib_period_bytes(sub);
319 cnt = (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
324 snd_pcm_period_elapsed(sub);
335 struct snd_pcm_substream *sub;
343 sub = dev->sub_capture[stream];
344 if (sub) {
345 struct snd_pcm_runtime *rt = sub->runtime;
364 struct snd_pcm_substream *sub;
387 sub = dev->sub_capture[stream];
391 if (sub) {
392 struct snd_pcm_runtime *rt = sub->runtime;
437 struct snd_pcm_substream *sub;
442 sub = dev->sub_playback[stream];
443 if (sub) {
444 struct snd_pcm_runtime *rt = sub->runtime;