Lines Matching defs:usX2Y
50 "All pcm substreams of one usX2Y have to operate at the same rate & format."
180 struct usX2Ydev *usX2Y = urb->context;
181 for (i = 0; i < 10 && usX2Y->AS04.urb[i] != urb; i++);
190 struct usX2Ydev *usX2Y = urb->context;
191 struct us428ctls_sharedmem *us428ctls = usX2Y->us428ctls_sharedmem;
193 usX2Y->In04IntCalls++;
200 // printk("%i:0x%02X ", 8, (int)((unsigned char*)usX2Y->In04Buf)[8]); Master volume shows 0 here if fader is at max during boot ?!?
205 memcpy(usX2Y->In04Last, usX2Y->In04Buf, sizeof(usX2Y->In04Last));
210 if (usX2Y->In04Last[i] != ((char*)usX2Y->In04Buf)[i]) {
213 usX2Y->In04Last[i] = ((char*)usX2Y->In04Buf)[i];
221 memcpy(us428ctls->CtlSnapShot + n, usX2Y->In04Buf, sizeof(us428ctls->CtlSnapShot[0]));
224 wake_up(&usX2Y->us428ctls_wait_queue_head);
229 if (usX2Y->US04) {
230 if (0 == usX2Y->US04->submitted)
232 err = usb_submit_urb(usX2Y->US04->urb[usX2Y->US04->submitted++], GFP_ATOMIC);
233 } while (!err && usX2Y->US04->submitted < usX2Y->US04->len);
241 if (0 == usX2Y->AS04.urb[j]->status) {
243 usb_fill_bulk_urb(usX2Y->AS04.urb[j], usX2Y->dev,
244 usb_sndbulkpipe(usX2Y->dev, 0x04), &p4out->val.vol,
246 i_usX2Y_Out04Int, usX2Y);
247 err = usb_submit_urb(usX2Y->AS04.urb[j], GFP_ATOMIC);
257 urb->dev = usX2Y->dev;
264 int usX2Y_AsyncSeq04_init(struct usX2Ydev *usX2Y)
269 if (NULL == (usX2Y->AS04.buffer = kmalloc(URB_DataLen_AsyncSeq*URBS_AsyncSeq, GFP_KERNEL))) {
273 if (NULL == (usX2Y->AS04.urb[i] = usb_alloc_urb(0, GFP_KERNEL))) {
277 usb_fill_bulk_urb( usX2Y->AS04.urb[i], usX2Y->dev,
278 usb_sndbulkpipe(usX2Y->dev, 0x04),
279 usX2Y->AS04.buffer + URB_DataLen_AsyncSeq*i, 0,
280 i_usX2Y_Out04Int, usX2Y
286 int usX2Y_In04_init(struct usX2Ydev *usX2Y)
288 if (! (usX2Y->In04urb = usb_alloc_urb(0, GFP_KERNEL)))
291 if (! (usX2Y->In04Buf = kmalloc(21, GFP_KERNEL))) {
292 usb_free_urb(usX2Y->In04urb);
296 init_waitqueue_head(&usX2Y->In04WaitQueue);
297 usb_fill_int_urb(usX2Y->In04urb, usX2Y->dev, usb_rcvintpipe(usX2Y->dev, 0x4),
298 usX2Y->In04Buf, 21,
299 i_usX2Y_In04Int, usX2Y,
301 return usb_submit_urb(usX2Y->In04urb, GFP_KERNEL);
352 snd_usX2Y_card_used[usX2Y(card)->card_index = dev] = 1;
354 usX2Y(card)->dev = device;
355 init_waitqueue_head(&usX2Y(card)->prepare_wait_queue);
356 mutex_init(&usX2Y(card)->prepare_mutex);
357 INIT_LIST_HEAD(&usX2Y(card)->midi_list);
365 usX2Y(card)->dev->bus->busnum, usX2Y(card)->dev->devnum
431 kfree(usX2Y(card)->In04Buf);
432 usb_free_urb(usX2Y(card)->In04urb);
433 if (usX2Y(card)->us428ctls_sharedmem)
434 snd_free_pages(usX2Y(card)->us428ctls_sharedmem, sizeof(*usX2Y(card)->us428ctls_sharedmem));
435 if (usX2Y(card)->card_index >= 0 && usX2Y(card)->card_index < SNDRV_CARDS)
436 snd_usX2Y_card_used[usX2Y(card)->card_index] = 0;
446 struct usX2Ydev *usX2Y = usX2Y(card);
448 usX2Y->chip_status = USX2Y_STAT_CHIP_HUP;
449 usX2Y_unlinkSeq(&usX2Y->AS04);
450 usb_kill_urb(usX2Y->In04urb);
453 list_for_each(p, &usX2Y->midi_list) {
456 if (usX2Y->us428ctls_sharedmem)
457 wake_up(&usX2Y->us428ctls_wait_queue_head);