• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/usb/caiaq/

Lines Matching refs:sub

71 	           struct snd_pcm_substream *sub)
73 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
74 dev->sub_playback[sub->number] = sub;
76 dev->sub_capture[sub->number] = sub;
81 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;
170 static int snd_usb_caiaq_pcm_hw_params(struct snd_pcm_substream *sub,
173 debug("snd_usb_caiaq_pcm_hw_params(%p)\n", sub);
174 return snd_pcm_lib_malloc_pages(sub, params_buffer_bytes(hw_params));
177 static int snd_usb_caiaq_pcm_hw_free(struct snd_pcm_substream *sub)
179 struct snd_usb_caiaqdev *dev = snd_pcm_substream_chip(sub);
180 debug("snd_usb_caiaq_pcm_hw_free(%p)\n", sub);
182 deactivate_substream(dev, sub);
184 return snd_pcm_lib_free_pages(sub);
246 static int snd_usb_caiaq_pcm_trigger(struct snd_pcm_substream *sub, int cmd)
248 struct snd_usb_caiaqdev *dev = snd_pcm_substream_chip(sub);
254 activate_substream(dev, sub);
260 deactivate_substream(dev, sub);
271 snd_usb_caiaq_pcm_pointer(struct snd_pcm_substream *sub)
273 int index = sub->number;
274 struct snd_usb_caiaqdev *dev = snd_pcm_substream_chip(sub);
279 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
280 return bytes_to_frames(sub->runtime,
283 return bytes_to_frames(sub->runtime,
303 struct snd_pcm_substream *sub;
306 sub = subs[stream];
307 if (!sub)
310 pb = frames_to_bytes(sub->runtime,
311 sub->runtime->period_size);
312 cnt = (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
317 snd_pcm_period_elapsed(sub);
328 struct snd_pcm_substream *sub;
338 sub = dev->sub_capture[stream];
339 if (sub) {
340 struct snd_pcm_runtime *rt = sub->runtime;
361 struct snd_pcm_substream *sub;
386 sub = dev->sub_capture[stream];
387 if (sub) {
388 struct snd_pcm_runtime *rt = sub->runtime;
433 struct snd_pcm_substream *sub;
440 sub = dev->sub_playback[stream];
441 if (sub) {
442 struct snd_pcm_runtime *rt = sub->runtime;