Lines Matching refs:sub

52 	           struct snd_pcm_substream *sub)
56 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
57 cdev->sub_playback[sub->number] = sub;
59 cdev->sub_capture[sub->number] = sub;
66 struct snd_pcm_substream *sub)
71 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
72 cdev->sub_playback[sub->number] = NULL;
74 cdev->sub_capture[sub->number] = NULL;
170 static int snd_usb_caiaq_pcm_hw_free(struct snd_pcm_substream *sub)
172 struct snd_usb_caiaqdev *cdev = snd_pcm_substream_chip(sub);
173 deactivate_substream(cdev, sub);
271 static int snd_usb_caiaq_pcm_trigger(struct snd_pcm_substream *sub, int cmd)
273 struct snd_usb_caiaqdev *cdev = snd_pcm_substream_chip(sub);
276 dev_dbg(dev, "%s(%p) cmd %d\n", __func__, sub, cmd);
281 activate_substream(cdev, sub);
285 deactivate_substream(cdev, sub);
295 snd_usb_caiaq_pcm_pointer(struct snd_pcm_substream *sub)
297 int index = sub->number;
298 struct snd_usb_caiaqdev *cdev = snd_pcm_substream_chip(sub);
308 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
309 ptr = bytes_to_frames(sub->runtime,
312 ptr = bytes_to_frames(sub->runtime,
334 struct snd_pcm_substream *sub;
337 sub = subs[stream];
338 if (!sub)
341 pb = snd_pcm_lib_period_bytes(sub);
342 cnt = (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
347 snd_pcm_period_elapsed(sub);
358 struct snd_pcm_substream *sub;
366 sub = cdev->sub_capture[stream];
367 if (sub) {
368 struct snd_pcm_runtime *rt = sub->runtime;
387 struct snd_pcm_substream *sub;
410 sub = cdev->sub_capture[stream];
414 if (sub) {
415 struct snd_pcm_runtime *rt = sub->runtime;
442 struct snd_pcm_substream *sub = cdev->sub_capture[stream];
446 if (sub && !cdev->input_panic) {
447 struct snd_pcm_runtime *rt = sub->runtime;
521 struct snd_pcm_substream *sub;
526 sub = cdev->sub_playback[stream];
527 if (sub) {
528 struct snd_pcm_runtime *rt = sub->runtime;
559 struct snd_pcm_substream *sub = cdev->sub_playback[stream];
563 if (sub) {
564 struct snd_pcm_runtime *rt = sub->runtime;