usX2Y 155 sound/usb/usx2y/usX2Yhwdep.c struct usb_device *dev = usX2Y(card)->dev; usX2Y 162 sound/usb/usx2y/usX2Yhwdep.c return snd_usbmidi_create(card, iface, &usX2Y(card)->midi_list, quirk); usX2Y 241 sound/usb/usx2y/usX2Yhwdep.c hw->private_data = usX2Y(card); usX2Y 167 sound/usb/usx2y/usbusx2y.c struct usX2Ydev *usX2Y = urb->context; usX2Y 168 sound/usb/usx2y/usbusx2y.c for (i = 0; i < 10 && usX2Y->AS04.urb[i] != urb; i++); usX2Y 177 sound/usb/usx2y/usbusx2y.c struct usX2Ydev *usX2Y = urb->context; usX2Y 178 sound/usb/usx2y/usbusx2y.c struct us428ctls_sharedmem *us428ctls = usX2Y->us428ctls_sharedmem; usX2Y 180 sound/usb/usx2y/usbusx2y.c usX2Y->In04IntCalls++; usX2Y 192 sound/usb/usx2y/usbusx2y.c memcpy(usX2Y->In04Last, usX2Y->In04Buf, sizeof(usX2Y->In04Last)); usX2Y 197 sound/usb/usx2y/usbusx2y.c if (usX2Y->In04Last[i] != ((char*)usX2Y->In04Buf)[i]) { usX2Y 200 sound/usb/usx2y/usbusx2y.c usX2Y->In04Last[i] = ((char*)usX2Y->In04Buf)[i]; usX2Y 208 sound/usb/usx2y/usbusx2y.c memcpy(us428ctls->CtlSnapShot + n, usX2Y->In04Buf, sizeof(us428ctls->CtlSnapShot[0])); usX2Y 211 sound/usb/usx2y/usbusx2y.c wake_up(&usX2Y->us428ctls_wait_queue_head); usX2Y 216 sound/usb/usx2y/usbusx2y.c if (usX2Y->US04) { usX2Y 217 sound/usb/usx2y/usbusx2y.c if (0 == usX2Y->US04->submitted) usX2Y 219 sound/usb/usx2y/usbusx2y.c err = usb_submit_urb(usX2Y->US04->urb[usX2Y->US04->submitted++], GFP_ATOMIC); usX2Y 220 sound/usb/usx2y/usbusx2y.c } while (!err && usX2Y->US04->submitted < usX2Y->US04->len); usX2Y 228 sound/usb/usx2y/usbusx2y.c if (0 == usX2Y->AS04.urb[j]->status) { usX2Y 230 sound/usb/usx2y/usbusx2y.c usb_fill_bulk_urb(usX2Y->AS04.urb[j], usX2Y->dev, usX2Y 231 sound/usb/usx2y/usbusx2y.c usb_sndbulkpipe(usX2Y->dev, 0x04), &p4out->val.vol, usX2Y 233 sound/usb/usx2y/usbusx2y.c i_usX2Y_Out04Int, usX2Y); usX2Y 234 sound/usb/usx2y/usbusx2y.c err = usb_submit_urb(usX2Y->AS04.urb[j], GFP_ATOMIC); usX2Y 244 sound/usb/usx2y/usbusx2y.c urb->dev = usX2Y->dev; usX2Y 251 sound/usb/usx2y/usbusx2y.c int usX2Y_AsyncSeq04_init(struct usX2Ydev *usX2Y) usX2Y 256 sound/usb/usx2y/usbusx2y.c usX2Y->AS04.buffer = kmalloc_array(URBS_AsyncSeq, usX2Y 258 sound/usb/usx2y/usbusx2y.c if (NULL == usX2Y->AS04.buffer) { usX2Y 262 sound/usb/usx2y/usbusx2y.c if (NULL == (usX2Y->AS04.urb[i] = usb_alloc_urb(0, GFP_KERNEL))) { usX2Y 266 sound/usb/usx2y/usbusx2y.c usb_fill_bulk_urb( usX2Y->AS04.urb[i], usX2Y->dev, usX2Y 267 sound/usb/usx2y/usbusx2y.c usb_sndbulkpipe(usX2Y->dev, 0x04), usX2Y 268 sound/usb/usx2y/usbusx2y.c usX2Y->AS04.buffer + URB_DataLen_AsyncSeq*i, 0, usX2Y 269 sound/usb/usx2y/usbusx2y.c i_usX2Y_Out04Int, usX2Y usX2Y 271 sound/usb/usx2y/usbusx2y.c err = usb_urb_ep_type_check(usX2Y->AS04.urb[i]); usX2Y 278 sound/usb/usx2y/usbusx2y.c int usX2Y_In04_init(struct usX2Ydev *usX2Y) usX2Y 280 sound/usb/usx2y/usbusx2y.c if (! (usX2Y->In04urb = usb_alloc_urb(0, GFP_KERNEL))) usX2Y 283 sound/usb/usx2y/usbusx2y.c if (! (usX2Y->In04Buf = kmalloc(21, GFP_KERNEL))) usX2Y 286 sound/usb/usx2y/usbusx2y.c init_waitqueue_head(&usX2Y->In04WaitQueue); usX2Y 287 sound/usb/usx2y/usbusx2y.c usb_fill_int_urb(usX2Y->In04urb, usX2Y->dev, usb_rcvintpipe(usX2Y->dev, 0x4), usX2Y 288 sound/usb/usx2y/usbusx2y.c usX2Y->In04Buf, 21, usX2Y 289 sound/usb/usx2y/usbusx2y.c i_usX2Y_In04Int, usX2Y, usX2Y 291 sound/usb/usx2y/usbusx2y.c if (usb_urb_ep_type_check(usX2Y->In04urb)) usX2Y 293 sound/usb/usx2y/usbusx2y.c return usb_submit_urb(usX2Y->In04urb, GFP_KERNEL); usX2Y 344 sound/usb/usx2y/usbusx2y.c snd_usX2Y_card_used[usX2Y(card)->card_index = dev] = 1; usX2Y 346 sound/usb/usx2y/usbusx2y.c usX2Y(card)->dev = device; usX2Y 347 sound/usb/usx2y/usbusx2y.c init_waitqueue_head(&usX2Y(card)->prepare_wait_queue); usX2Y 348 sound/usb/usx2y/usbusx2y.c mutex_init(&usX2Y(card)->pcm_mutex); usX2Y 349 sound/usb/usx2y/usbusx2y.c INIT_LIST_HEAD(&usX2Y(card)->midi_list); usX2Y 357 sound/usb/usx2y/usbusx2y.c usX2Y(card)->dev->bus->busnum, usX2Y(card)->dev->devnum usX2Y 422 sound/usb/usx2y/usbusx2y.c kfree(usX2Y(card)->In04Buf); usX2Y 423 sound/usb/usx2y/usbusx2y.c usb_free_urb(usX2Y(card)->In04urb); usX2Y 424 sound/usb/usx2y/usbusx2y.c if (usX2Y(card)->us428ctls_sharedmem) usX2Y 425 sound/usb/usx2y/usbusx2y.c free_pages_exact(usX2Y(card)->us428ctls_sharedmem, usX2Y 426 sound/usb/usx2y/usbusx2y.c sizeof(*usX2Y(card)->us428ctls_sharedmem)); usX2Y 427 sound/usb/usx2y/usbusx2y.c if (usX2Y(card)->card_index >= 0 && usX2Y(card)->card_index < SNDRV_CARDS) usX2Y 428 sound/usb/usx2y/usbusx2y.c snd_usX2Y_card_used[usX2Y(card)->card_index] = 0; usX2Y 438 sound/usb/usx2y/usbusx2y.c struct usX2Ydev *usX2Y = usX2Y(card); usX2Y 440 sound/usb/usx2y/usbusx2y.c usX2Y->chip_status = USX2Y_STAT_CHIP_HUP; usX2Y 441 sound/usb/usx2y/usbusx2y.c usX2Y_unlinkSeq(&usX2Y->AS04); usX2Y 442 sound/usb/usx2y/usbusx2y.c usb_kill_urb(usX2Y->In04urb); usX2Y 445 sound/usb/usx2y/usbusx2y.c list_for_each(p, &usX2Y->midi_list) { usX2Y 448 sound/usb/usx2y/usbusx2y.c if (usX2Y->us428ctls_sharedmem) usX2Y 449 sound/usb/usx2y/usbusx2y.c wake_up(&usX2Y->us428ctls_wait_queue_head); usX2Y 55 sound/usb/usx2y/usbusx2y.h struct usX2Ydev *usX2Y; usX2Y 84 sound/usb/usx2y/usbusx2y.h int usX2Y_AsyncSeq04_init(struct usX2Ydev *usX2Y); usX2Y 85 sound/usb/usx2y/usbusx2y.h int usX2Y_In04_init(struct usX2Ydev *usX2Y); usX2Y 63 sound/usb/usx2y/usbusx2yaudio.c struct usX2Ydev *usX2Y = subs->usX2Y; usX2Y 73 sound/usb/usx2y/usbusx2yaudio.c len = urb->iso_frame_desc[i].actual_length / usX2Y->stride; usX2Y 82 sound/usb/usx2y/usbusx2yaudio.c int blen = cnt * usX2Y->stride; usX2Y 83 sound/usb/usx2y/usbusx2yaudio.c memcpy(runtime->dma_area + hwptr_done * usX2Y->stride, cp, blen); usX2Y 84 sound/usb/usx2y/usbusx2yaudio.c memcpy(runtime->dma_area, cp + blen, len * usX2Y->stride - blen); usX2Y 86 sound/usb/usx2y/usbusx2yaudio.c memcpy(runtime->dma_area + hwptr_done * usX2Y->stride, cp, usX2Y 87 sound/usb/usx2y/usbusx2yaudio.c len * usX2Y->stride); usX2Y 118 sound/usb/usx2y/usbusx2yaudio.c struct usX2Ydev *usX2Y = subs->usX2Y; usX2Y 124 sound/usb/usx2y/usbusx2yaudio.c counts = cap_urb->iso_frame_desc[pack].actual_length / usX2Y->stride; usX2Y 146 sound/usb/usx2y/usbusx2yaudio.c subs->hwptr * usX2Y->stride, len * usX2Y->stride); usX2Y 147 sound/usb/usx2y/usbusx2yaudio.c memcpy(subs->tmpbuf + len * usX2Y->stride, usX2Y 148 sound/usb/usx2y/usbusx2yaudio.c runtime->dma_area, (count - len) * usX2Y->stride); usX2Y 153 sound/usb/usx2y/usbusx2yaudio.c urb->transfer_buffer = runtime->dma_area + subs->hwptr * usX2Y->stride; usX2Y 159 sound/usb/usx2y/usbusx2yaudio.c urb->transfer_buffer_length = count * usX2Y->stride; usX2Y 171 sound/usb/usx2y/usbusx2yaudio.c int len = urb->actual_length / subs->usX2Y->stride; usX2Y 190 sound/usb/usx2y/usbusx2yaudio.c urb->dev = subs->usX2Y->dev; /* we need to set this at each time */ usX2Y 247 sound/usb/usx2y/usbusx2yaudio.c static void usX2Y_clients_stop(struct usX2Ydev *usX2Y) usX2Y 252 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *subs = usX2Y->subs[s]; usX2Y 259 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *subs = usX2Y->subs[s]; usX2Y 271 sound/usb/usx2y/usbusx2yaudio.c usX2Y->prepare_subs = NULL; usX2Y 272 sound/usb/usx2y/usbusx2yaudio.c wake_up(&usX2Y->prepare_wait_queue); usX2Y 275 sound/usb/usx2y/usbusx2yaudio.c static void usX2Y_error_urb_status(struct usX2Ydev *usX2Y, usX2Y 280 sound/usb/usx2y/usbusx2yaudio.c usX2Y_clients_stop(usX2Y); usX2Y 286 sound/usb/usx2y/usbusx2yaudio.c struct usX2Ydev *usX2Y = subs->usX2Y; usX2Y 290 sound/usb/usx2y/usbusx2yaudio.c usb_get_current_frame_number(usX2Y->dev), usX2Y 296 sound/usb/usx2y/usbusx2yaudio.c usX2Y_error_urb_status(usX2Y, subs, urb); usX2Y 303 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *capsubs = usX2Y->subs[SNDRV_PCM_STREAM_CAPTURE], usX2Y 304 sound/usb/usx2y/usbusx2yaudio.c *playbacksubs = usX2Y->subs[SNDRV_PCM_STREAM_PLAYBACK]; usX2Y 310 sound/usb/usx2y/usbusx2yaudio.c usX2Y->wait_iso_frame += nr_of_packs(); usX2Y 313 sound/usb/usx2y/usbusx2yaudio.c usX2Y_clients_stop(usX2Y); usX2Y 319 sound/usb/usx2y/usbusx2yaudio.c static void usX2Y_urbs_set_complete(struct usX2Ydev * usX2Y, usX2Y 324 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *subs = usX2Y->subs[s]; usX2Y 334 sound/usb/usx2y/usbusx2yaudio.c static void usX2Y_subs_startup_finish(struct usX2Ydev * usX2Y) usX2Y 336 sound/usb/usx2y/usbusx2yaudio.c usX2Y_urbs_set_complete(usX2Y, i_usX2Y_urb_complete); usX2Y 337 sound/usb/usx2y/usbusx2yaudio.c usX2Y->prepare_subs = NULL; usX2Y 343 sound/usb/usx2y/usbusx2yaudio.c struct usX2Ydev *usX2Y = subs->usX2Y; usX2Y 344 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *prepare_subs = usX2Y->prepare_subs; usX2Y 347 sound/usb/usx2y/usbusx2yaudio.c usX2Y_subs_startup_finish(usX2Y); usX2Y 349 sound/usb/usx2y/usbusx2yaudio.c wake_up(&usX2Y->prepare_wait_queue); usX2Y 385 sound/usb/usx2y/usbusx2yaudio.c subs != subs->usX2Y->subs[SNDRV_PCM_STREAM_PLAYBACK]); usX2Y 397 sound/usb/usx2y/usbusx2yaudio.c int is_playback = subs == subs->usX2Y->subs[SNDRV_PCM_STREAM_PLAYBACK]; usX2Y 398 sound/usb/usx2y/usbusx2yaudio.c struct usb_device *dev = subs->usX2Y->dev; usX2Y 445 sound/usb/usx2y/usbusx2yaudio.c struct usX2Ydev *usX2Y = subs->usX2Y; usX2Y 446 sound/usb/usx2y/usbusx2yaudio.c usX2Y->prepare_subs = subs; usX2Y 449 sound/usb/usx2y/usbusx2yaudio.c usX2Y_urbs_set_complete(usX2Y, i_usX2Y_subs_startup); usX2Y 455 sound/usb/usx2y/usbusx2yaudio.c struct usX2Ydev *usX2Y = subs->usX2Y; usX2Y 461 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *subs = usX2Y->subs[i]; usX2Y 474 sound/usb/usx2y/usbusx2yaudio.c urb->dev = usX2Y->dev; usX2Y 486 sound/usb/usx2y/usbusx2yaudio.c usX2Y->wait_iso_frame = urb->start_frame; usX2Y 494 sound/usb/usx2y/usbusx2yaudio.c wait_event(usX2Y->prepare_wait_queue, NULL == usX2Y->prepare_subs); usX2Y 500 sound/usb/usx2y/usbusx2yaudio.c usX2Y_subs_startup_finish(usX2Y); usX2Y 501 sound/usb/usx2y/usbusx2yaudio.c usX2Y_clients_stop(usX2Y); // something is completely wroong > stop evrything usX2Y 525 sound/usb/usx2y/usbusx2yaudio.c atomic_read(&subs->usX2Y->subs[SNDRV_PCM_STREAM_CAPTURE]->state) >= state_PREPARED) { usX2Y 632 sound/usb/usx2y/usbusx2yaudio.c struct usX2Ydev *usX2Y = urb->context; usX2Y 636 sound/usb/usx2y/usbusx2yaudio.c if (0 == --usX2Y->US04->len) usX2Y 637 sound/usb/usx2y/usbusx2yaudio.c wake_up(&usX2Y->In04WaitQueue); usX2Y 640 sound/usb/usx2y/usbusx2yaudio.c static int usX2Y_rate_set(struct usX2Ydev *usX2Y, int rate) usX2Y 647 sound/usb/usx2y/usbusx2yaudio.c if (usX2Y->rate != rate) { usX2Y 666 sound/usb/usx2y/usbusx2yaudio.c usb_fill_bulk_urb(us->urb[i], usX2Y->dev, usb_sndbulkpipe(usX2Y->dev, 4), usX2Y 667 sound/usb/usx2y/usbusx2yaudio.c usbdata + i, 2, i_usX2Y_04Int, usX2Y); usX2Y 674 sound/usb/usx2y/usbusx2yaudio.c usX2Y->US04 = us; usX2Y 675 sound/usb/usx2y/usbusx2yaudio.c wait_event_timeout(usX2Y->In04WaitQueue, 0 == us->len, HZ); usX2Y 676 sound/usb/usx2y/usbusx2yaudio.c usX2Y->US04 = NULL; usX2Y 693 sound/usb/usx2y/usbusx2yaudio.c usX2Y->US04 = NULL; usX2Y 697 sound/usb/usx2y/usbusx2yaudio.c usX2Y->rate = rate; usX2Y 705 sound/usb/usx2y/usbusx2yaudio.c static int usX2Y_format_set(struct usX2Ydev *usX2Y, snd_pcm_format_t format) usX2Y 711 sound/usb/usx2y/usbusx2yaudio.c usX2Y->stride = 6; usX2Y 714 sound/usb/usx2y/usbusx2yaudio.c usX2Y->stride = 4; usX2Y 716 sound/usb/usx2y/usbusx2yaudio.c list_for_each(p, &usX2Y->midi_list) { usX2Y 719 sound/usb/usx2y/usbusx2yaudio.c usb_kill_urb(usX2Y->In04urb); usX2Y 720 sound/usb/usx2y/usbusx2yaudio.c if ((err = usb_set_interface(usX2Y->dev, 0, alternate))) { usX2Y 724 sound/usb/usx2y/usbusx2yaudio.c usX2Y->In04urb->dev = usX2Y->dev; usX2Y 725 sound/usb/usx2y/usbusx2yaudio.c err = usb_submit_urb(usX2Y->In04urb, GFP_KERNEL); usX2Y 726 sound/usb/usx2y/usbusx2yaudio.c list_for_each(p, &usX2Y->midi_list) { usX2Y 729 sound/usb/usx2y/usbusx2yaudio.c usX2Y->format = format; usX2Y 730 sound/usb/usx2y/usbusx2yaudio.c usX2Y->rate = 0; usX2Y 742 sound/usb/usx2y/usbusx2yaudio.c struct usX2Ydev *dev = usX2Y(card); usX2Y 745 sound/usb/usx2y/usbusx2yaudio.c mutex_lock(&usX2Y(card)->pcm_mutex); usX2Y 778 sound/usb/usx2y/usbusx2yaudio.c mutex_unlock(&usX2Y(card)->pcm_mutex); usX2Y 789 sound/usb/usx2y/usbusx2yaudio.c mutex_lock(&subs->usX2Y->pcm_mutex); usX2Y 793 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *cap_subs = subs->usX2Y->subs[SNDRV_PCM_STREAM_CAPTURE]; usX2Y 804 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *playback_subs = subs->usX2Y->subs[SNDRV_PCM_STREAM_PLAYBACK]; usX2Y 810 sound/usb/usx2y/usbusx2yaudio.c mutex_unlock(&subs->usX2Y->pcm_mutex); usX2Y 822 sound/usb/usx2y/usbusx2yaudio.c struct usX2Ydev *usX2Y = subs->usX2Y; usX2Y 823 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *capsubs = subs->usX2Y->subs[SNDRV_PCM_STREAM_CAPTURE]; usX2Y 827 sound/usb/usx2y/usbusx2yaudio.c mutex_lock(&usX2Y->pcm_mutex); usX2Y 832 sound/usb/usx2y/usbusx2yaudio.c if (usX2Y->format != runtime->format) usX2Y 833 sound/usb/usx2y/usbusx2yaudio.c if ((err = usX2Y_format_set(usX2Y, runtime->format)) < 0) usX2Y 835 sound/usb/usx2y/usbusx2yaudio.c if (usX2Y->rate != runtime->rate) usX2Y 836 sound/usb/usx2y/usbusx2yaudio.c if ((err = usX2Y_rate_set(usX2Y, runtime->rate)) < 0) usX2Y 847 sound/usb/usx2y/usbusx2yaudio.c mutex_unlock(&usX2Y->pcm_mutex); usX2Y 879 sound/usb/usx2y/usbusx2yaudio.c if (subs->usX2Y->chip_status & USX2Y_STAT_CHIP_MMAP_PCM_URBS) usX2Y 939 sound/usb/usx2y/usbusx2yaudio.c usX2Y(card)->subs + 2 * usX2Y(card)->pcm_devs; usX2Y 947 sound/usb/usx2y/usbusx2yaudio.c usX2Y_substream[i]->usX2Y = usX2Y(card); usX2Y 954 sound/usb/usx2y/usbusx2yaudio.c err = snd_pcm_new(card, NAME_ALLCAPS" Audio", usX2Y(card)->pcm_devs, usX2Y 970 sound/usb/usx2y/usbusx2yaudio.c sprintf(pcm->name, NAME_ALLCAPS" Audio #%d", usX2Y(card)->pcm_devs); usX2Y 983 sound/usb/usx2y/usbusx2yaudio.c usX2Y(card)->pcm_devs++; usX2Y 995 sound/usb/usx2y/usbusx2yaudio.c INIT_LIST_HEAD(&usX2Y(card)->pcm_list); usX2Y 999 sound/usb/usx2y/usbusx2yaudio.c if (le16_to_cpu(usX2Y(card)->dev->descriptor.idProduct) == USB_ID_US428) usX2Y 1002 sound/usb/usx2y/usbusx2yaudio.c if (le16_to_cpu(usX2Y(card)->dev->descriptor.idProduct) != USB_ID_US122) usX2Y 1003 sound/usb/usx2y/usbusx2yaudio.c err = usX2Y_rate_set(usX2Y(card), 44100); // Lets us428 recognize output-volume settings, disturbs us122. usX2Y 55 sound/usb/usx2y/usx2yhwdeppcm.c struct usX2Ydev *usX2Y = subs->usX2Y; usX2Y 56 sound/usb/usx2y/usx2yhwdeppcm.c if (0 > usX2Y->hwdep_pcm_shm->capture_iso_start) { //FIXME usX2Y 57 sound/usb/usx2y/usx2yhwdeppcm.c int head = usX2Y->hwdep_pcm_shm->captured_iso_head + 1; usX2Y 58 sound/usb/usx2y/usx2yhwdeppcm.c if (head >= ARRAY_SIZE(usX2Y->hwdep_pcm_shm->captured_iso)) usX2Y 60 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y->hwdep_pcm_shm->capture_iso_start = head; usX2Y 68 sound/usb/usx2y/usx2yhwdeppcm.c lens += urb->iso_frame_desc[i].actual_length / usX2Y->stride; usX2Y 83 sound/usb/usx2y/usx2yhwdeppcm.c struct usX2Ydev * usX2Y) usX2Y 85 sound/usb/usx2y/usx2yhwdeppcm.c return (runtime->buffer_size * 1000) / usX2Y->rate + 1; //FIXME: so far only correct period_size == 2^x ? usX2Y 102 sound/usb/usx2y/usx2yhwdeppcm.c struct usX2Ydev *usX2Y = subs->usX2Y; usX2Y 103 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_hwdep_pcm_shm *shm = usX2Y->hwdep_pcm_shm; usX2Y 108 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y_iso_frames_per_buffer(runtime, usX2Y); usX2Y 117 sound/usb/usx2y/usx2yhwdeppcm.c counts = shm->captured_iso[shm->playback_iso_head].length / usX2Y->stride; usX2Y 132 sound/usb/usx2y/usx2yhwdeppcm.c urb->transfer_buffer_length = count * usX2Y->stride; usX2Y 144 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_hwdep_pcm_shm *shm = subs->usX2Y->hwdep_pcm_shm; usX2Y 221 sound/usb/usx2y/usx2yhwdeppcm.c struct usX2Ydev *usX2Y = subs->usX2Y; usX2Y 226 sound/usb/usx2y/usx2yhwdeppcm.c usb_get_current_frame_number(usX2Y->dev), usX2Y 232 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y_error_urb_status(usX2Y, subs, urb); usX2Y 237 sound/usb/usx2y/usx2yhwdeppcm.c capsubs = usX2Y->subs[SNDRV_PCM_STREAM_CAPTURE]; usX2Y 238 sound/usb/usx2y/usx2yhwdeppcm.c capsubs2 = usX2Y->subs[SNDRV_PCM_STREAM_CAPTURE + 2]; usX2Y 239 sound/usb/usx2y/usx2yhwdeppcm.c playbacksubs = usX2Y->subs[SNDRV_PCM_STREAM_PLAYBACK]; usX2Y 244 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y->wait_iso_frame += nr_of_packs(); usX2Y 247 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y_clients_stop(usX2Y); usX2Y 271 sound/usb/usx2y/usx2yhwdeppcm.c static void usX2Y_usbpcm_subs_startup_finish(struct usX2Ydev * usX2Y) usX2Y 273 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y_urbs_set_complete(usX2Y, i_usX2Y_usbpcm_urb_complete); usX2Y 274 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y->prepare_subs = NULL; usX2Y 280 sound/usb/usx2y/usx2yhwdeppcm.c struct usX2Ydev *usX2Y = subs->usX2Y; usX2Y 281 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_substream *prepare_subs = usX2Y->prepare_subs; usX2Y 285 sound/usb/usx2y/usx2yhwdeppcm.c if (prepare_subs == usX2Y->subs[SNDRV_PCM_STREAM_CAPTURE]) { usX2Y 286 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_substream *cap_subs2 = usX2Y->subs[SNDRV_PCM_STREAM_CAPTURE + 2]; usX2Y 290 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y_usbpcm_subs_startup_finish(usX2Y); usX2Y 291 sound/usb/usx2y/usx2yhwdeppcm.c wake_up(&usX2Y->prepare_wait_queue); usX2Y 304 sound/usb/usx2y/usx2yhwdeppcm.c int is_playback = subs == subs->usX2Y->subs[SNDRV_PCM_STREAM_PLAYBACK]; usX2Y 305 sound/usb/usx2y/usx2yhwdeppcm.c struct usb_device *dev = subs->usX2Y->dev; usX2Y 326 sound/usb/usx2y/usx2yhwdeppcm.c subs->usX2Y->hwdep_pcm_shm->playback : ( usX2Y 328 sound/usb/usx2y/usx2yhwdeppcm.c subs->usX2Y->hwdep_pcm_shm->capture0x8 : usX2Y 329 sound/usb/usx2y/usx2yhwdeppcm.c subs->usX2Y->hwdep_pcm_shm->capture0xA); usX2Y 348 sound/usb/usx2y/usx2yhwdeppcm.c *cap_subs2 = subs->usX2Y->subs[SNDRV_PCM_STREAM_CAPTURE + 2]; usX2Y 349 sound/usb/usx2y/usx2yhwdeppcm.c mutex_lock(&subs->usX2Y->pcm_mutex); usX2Y 353 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_substream *cap_subs = subs->usX2Y->subs[SNDRV_PCM_STREAM_CAPTURE]; usX2Y 368 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_substream *playback_subs = subs->usX2Y->subs[SNDRV_PCM_STREAM_PLAYBACK]; usX2Y 378 sound/usb/usx2y/usx2yhwdeppcm.c mutex_unlock(&subs->usX2Y->pcm_mutex); usX2Y 384 sound/usb/usx2y/usx2yhwdeppcm.c struct usX2Ydev * usX2Y = subs->usX2Y; usX2Y 385 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y->prepare_subs = subs; usX2Y 388 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y_urbs_set_complete(usX2Y, i_usX2Y_usbpcm_subs_startup); usX2Y 395 sound/usb/usx2y/usx2yhwdeppcm.c struct usX2Ydev *usX2Y = subs->usX2Y; usX2Y 398 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y->hwdep_pcm_shm->captured_iso_head = -1; usX2Y 399 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y->hwdep_pcm_shm->captured_iso_frames = 0; usX2Y 403 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_substream *subs = usX2Y->subs[stream + p]; usX2Y 412 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_substream *subs = usX2Y->subs[p]; usX2Y 421 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_substream *subs = usX2Y->subs[stream + p]; usX2Y 428 sound/usb/usx2y/usx2yhwdeppcm.c urb->dev = usX2Y->dev; usX2Y 441 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y->wait_iso_frame = urb->start_frame; usX2Y 452 sound/usb/usx2y/usx2yhwdeppcm.c wait_event(usX2Y->prepare_wait_queue, NULL == usX2Y->prepare_subs); usX2Y 458 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y_subs_startup_finish(usX2Y); // Call it now usX2Y 459 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y_clients_stop(usX2Y); // something is completely wroong > stop evrything usX2Y 473 sound/usb/usx2y/usx2yhwdeppcm.c struct usX2Ydev *usX2Y = subs->usX2Y; usX2Y 474 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_substream *capsubs = subs->usX2Y->subs[SNDRV_PCM_STREAM_CAPTURE]; usX2Y 478 sound/usb/usx2y/usx2yhwdeppcm.c if (NULL == usX2Y->hwdep_pcm_shm) { usX2Y 479 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y->hwdep_pcm_shm = alloc_pages_exact(sizeof(struct snd_usX2Y_hwdep_pcm_shm), usX2Y 481 sound/usb/usx2y/usx2yhwdeppcm.c if (!usX2Y->hwdep_pcm_shm) usX2Y 483 sound/usb/usx2y/usx2yhwdeppcm.c memset(usX2Y->hwdep_pcm_shm, 0, sizeof(struct snd_usX2Y_hwdep_pcm_shm)); usX2Y 486 sound/usb/usx2y/usx2yhwdeppcm.c mutex_lock(&usX2Y->pcm_mutex); usX2Y 491 sound/usb/usx2y/usx2yhwdeppcm.c if (usX2Y->format != runtime->format) usX2Y 492 sound/usb/usx2y/usx2yhwdeppcm.c if ((err = usX2Y_format_set(usX2Y, runtime->format)) < 0) usX2Y 494 sound/usb/usx2y/usx2yhwdeppcm.c if (usX2Y->rate != runtime->rate) usX2Y 495 sound/usb/usx2y/usx2yhwdeppcm.c if ((err = usX2Y_rate_set(usX2Y, runtime->rate)) < 0) usX2Y 504 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y->hwdep_pcm_shm->playback_iso_start = -1; usX2Y 506 sound/usb/usx2y/usx2yhwdeppcm.c while (usX2Y_iso_frames_per_buffer(runtime, usX2Y) > usX2Y 507 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y->hwdep_pcm_shm->captured_iso_frames) { usX2Y 510 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y_iso_frames_per_buffer(runtime, usX2Y), usX2Y 511 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y->hwdep_pcm_shm->captured_iso_frames); usX2Y 521 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y_iso_frames_per_buffer(runtime, usX2Y), usX2Y 522 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y->hwdep_pcm_shm->captured_iso_frames); usX2Y 524 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y->hwdep_pcm_shm->capture_iso_start = -1; usX2Y 527 sound/usb/usx2y/usx2yhwdeppcm.c mutex_unlock(&usX2Y->pcm_mutex); usX2Y 558 sound/usb/usx2y/usx2yhwdeppcm.c if (!(subs->usX2Y->chip_status & USX2Y_STAT_CHIP_MMAP_PCM_URBS)) usX2Y 562 sound/usb/usx2y/usx2yhwdeppcm.c (subs->usX2Y->subs[3] ? snd_usX2Y_4c : snd_usX2Y_2c); usX2Y 595 sound/usb/usx2y/usx2yhwdeppcm.c struct usX2Ydev *dev = usX2Y(card); usX2Y 612 sound/usb/usx2y/usx2yhwdeppcm.c mutex_lock(&usX2Y(card)->pcm_mutex); usX2Y 615 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y(card)->chip_status |= USX2Y_STAT_CHIP_MMAP_PCM_URBS; usX2Y 616 sound/usb/usx2y/usx2yhwdeppcm.c mutex_unlock(&usX2Y(card)->pcm_mutex); usX2Y 626 sound/usb/usx2y/usx2yhwdeppcm.c mutex_lock(&usX2Y(card)->pcm_mutex); usX2Y 629 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y(hw->card)->chip_status &= ~USX2Y_STAT_CHIP_MMAP_PCM_URBS; usX2Y 630 sound/usb/usx2y/usx2yhwdeppcm.c mutex_unlock(&usX2Y(card)->pcm_mutex); usX2Y 668 sound/usb/usx2y/usx2yhwdeppcm.c struct usX2Ydev *usX2Y = hw->private_data; usX2Y 670 sound/usb/usx2y/usx2yhwdeppcm.c if (!(usX2Y->chip_status & USX2Y_STAT_CHIP_INIT)) usX2Y 679 sound/usb/usx2y/usx2yhwdeppcm.c if (!usX2Y->hwdep_pcm_shm) { usX2Y 691 sound/usb/usx2y/usx2yhwdeppcm.c struct usX2Ydev *usX2Y = hwdep->private_data; usX2Y 692 sound/usb/usx2y/usx2yhwdeppcm.c if (NULL != usX2Y->hwdep_pcm_shm) usX2Y 693 sound/usb/usx2y/usx2yhwdeppcm.c free_pages_exact(usX2Y->hwdep_pcm_shm, sizeof(struct snd_usX2Y_hwdep_pcm_shm)); usX2Y 702 sound/usb/usx2y/usx2yhwdeppcm.c struct usb_device *dev = usX2Y(card)->dev; usX2Y 710 sound/usb/usx2y/usx2yhwdeppcm.c hw->private_data = usX2Y(card); usX2Y 725 sound/usb/usx2y/usx2yhwdeppcm.c pcm->private_data = usX2Y(card)->subs;