/sound/usb/usx2y/ |
D | usbusx2yaudio.c | 73 struct urb *urb = subs->completed_urb; in usX2Y_urb_capt_retire() local 80 cp = (unsigned char*)urb->transfer_buffer + urb->iso_frame_desc[i].offset; in usX2Y_urb_capt_retire() 81 if (urb->iso_frame_desc[i].status) { /* active? hmm, skip this */ in usX2Y_urb_capt_retire() 84 urb->iso_frame_desc[i].status); in usX2Y_urb_capt_retire() 85 return urb->iso_frame_desc[i].status; in usX2Y_urb_capt_retire() 87 len = urb->iso_frame_desc[i].actual_length / usX2Y->stride; in usX2Y_urb_capt_retire() 128 struct urb *cap_urb, in usX2Y_urb_play_prepare() 129 struct urb *urb) in usX2Y_urb_play_prepare() argument 145 urb->iso_frame_desc[pack].offset = pack ? in usX2Y_urb_play_prepare() 146 urb->iso_frame_desc[pack - 1].offset + in usX2Y_urb_play_prepare() [all …]
|
D | usb_stream.c | 34 static void playback_prep_freqn(struct usb_stream_kernel *sk, struct urb *urb) in playback_prep_freqn() argument 45 urb->iso_frame_desc[pack].offset = lb; in playback_prep_freqn() 46 urb->iso_frame_desc[pack].length = l; in playback_prep_freqn() 52 urb->number_of_packets = pack; in playback_prep_freqn() 53 urb->transfer_buffer_length = lb; in playback_prep_freqn() 60 struct urb **urbs, char *transfer, in init_pipe_urbs() 70 struct urb *urb = urbs[u]; in init_pipe_urbs() local 72 urb->transfer_buffer = transfer; in init_pipe_urbs() 73 urb->dev = dev; in init_pipe_urbs() 74 urb->pipe = pipe; in init_pipe_urbs() [all …]
|
D | usx2yhwdeppcm.c | 64 struct urb *urb = subs->completed_urb; in usX2Y_usbpcm_urb_capt_retire() local 76 if (urb->iso_frame_desc[i].status) { /* active? hmm, skip this */ in usX2Y_usbpcm_urb_capt_retire() 77 …snd_printk(KERN_ERR "active frame status %i. Most probably some hardware problem.\n", urb->iso_fra… in usX2Y_usbpcm_urb_capt_retire() 78 return urb->iso_frame_desc[i].status; in usX2Y_usbpcm_urb_capt_retire() 80 lens += urb->iso_frame_desc[i].actual_length / usX2Y->stride; in usX2Y_usbpcm_urb_capt_retire() 111 struct urb *urb) in usX2Y_hwdep_urb_play_prepare() argument 135 urb->iso_frame_desc[pack].offset = shm->captured_iso[shm->playback_iso_head].offset; in usX2Y_hwdep_urb_play_prepare() 136 urb->iso_frame_desc[pack].length = shm->captured_iso[shm->playback_iso_head].length; in usX2Y_hwdep_urb_play_prepare() 138 memset((char *)urb->transfer_buffer + urb->iso_frame_desc[pack].offset, 0, in usX2Y_hwdep_urb_play_prepare() 139 urb->iso_frame_desc[pack].length); in usX2Y_hwdep_urb_play_prepare() [all …]
|
D | usbusx2y.c | 175 static void i_usX2Y_Out04Int(struct urb *urb) in i_usX2Y_Out04Int() argument 178 if (urb->status) { in i_usX2Y_Out04Int() 180 struct usX2Ydev *usX2Y = urb->context; in i_usX2Y_Out04Int() 181 for (i = 0; i < 10 && usX2Y->AS04.urb[i] != urb; i++); in i_usX2Y_Out04Int() 182 snd_printdd("i_usX2Y_Out04Int() urb %i status=%i\n", i, urb->status); in i_usX2Y_Out04Int() 187 static void i_usX2Y_In04Int(struct urb *urb) in i_usX2Y_In04Int() argument 190 struct usX2Ydev *usX2Y = urb->context; in i_usX2Y_In04Int() 195 if (urb->status) { in i_usX2Y_In04Int() 196 snd_printdd("Interrupt Pipe 4 came back with status=%i\n", urb->status); in i_usX2Y_In04Int() 232 err = usb_submit_urb(usX2Y->US04->urb[usX2Y->US04->submitted++], GFP_ATOMIC); in i_usX2Y_In04Int() [all …]
|
D | usbusx2y.h | 13 struct urb *urb[URBS_AsyncSeq]; member 20 struct urb *urb[0]; member 29 struct urb *In04urb; 73 struct urb *urb[NRURBS]; /* data urb table */ member 74 struct urb *completed_urb;
|
D | usb_stream.h | 16 struct urb *inurb[USB_STREAM_NURBS]; 17 struct urb *idle_inurb; 18 struct urb *completed_inurb; 19 struct urb *outurb[USB_STREAM_NURBS]; 20 struct urb *idle_outurb; 21 struct urb *completed_outurb; 22 struct urb *i_urb;
|
/sound/usb/6fire/ |
D | comm.c | 25 static void usb6fire_comm_init_urb(struct comm_runtime *rt, struct urb *urb, in usb6fire_comm_init_urb() argument 26 u8 *buffer, void *context, void(*handler)(struct urb *urb)) in usb6fire_comm_init_urb() argument 28 usb_init_urb(urb); in usb6fire_comm_init_urb() 29 urb->transfer_buffer = buffer; in usb6fire_comm_init_urb() 30 urb->pipe = usb_sndintpipe(rt->chip->dev, COMM_EP); in usb6fire_comm_init_urb() 31 urb->complete = handler; in usb6fire_comm_init_urb() 32 urb->context = context; in usb6fire_comm_init_urb() 33 urb->interval = 1; in usb6fire_comm_init_urb() 34 urb->dev = rt->chip->dev; in usb6fire_comm_init_urb() 37 static void usb6fire_comm_receiver_handler(struct urb *urb) in usb6fire_comm_receiver_handler() argument [all …]
|
D | midi.c | 26 static void usb6fire_midi_out_handler(struct urb *urb) in usb6fire_midi_out_handler() argument 28 struct midi_runtime *rt = urb->context; in usb6fire_midi_out_handler() 40 urb->transfer_buffer_length = ret + 4; in usb6fire_midi_out_handler() 42 ret = usb_submit_urb(urb, GFP_ATOMIC); in usb6fire_midi_out_handler() 44 dev_err(&urb->dev->dev, in usb6fire_midi_out_handler() 78 struct urb *urb = &rt->out_urb; in usb6fire_midi_out_trigger() local 94 urb->transfer_buffer_length = ret + 4; in usb6fire_midi_out_trigger() 96 ret = usb_submit_urb(urb, GFP_ATOMIC); in usb6fire_midi_out_trigger() 98 dev_err(&urb->dev->dev, in usb6fire_midi_out_trigger()
|
D | pcm.c | 196 static void usb6fire_pcm_capture(struct pcm_substream *sub, struct pcm_urb *urb) in usb6fire_pcm_capture() argument 214 if (urb->packets[i].actual_length > 4) in usb6fire_pcm_capture() 215 frame_count = (urb->packets[i].actual_length - 4) in usb6fire_pcm_capture() 221 src = (u32 *) (urb->buffer + total_length); in usb6fire_pcm_capture() 223 src = (u32 *) (urb->buffer - 1 + total_length); in usb6fire_pcm_capture() 227 total_length += urb->packets[i].length; in usb6fire_pcm_capture() 244 struct pcm_urb *urb) in usb6fire_pcm_playback() argument 259 dest = (u32 *) (urb->buffer - 1); in usb6fire_pcm_playback() 261 dest = (u32 *) (urb->buffer); in usb6fire_pcm_playback() 270 if (urb->packets[i].length > 4) in usb6fire_pcm_playback() [all …]
|
D | comm.h | 26 struct urb receiver; 31 void (*init_urb)(struct comm_runtime *rt, struct urb *urb, u8 *buffer, 32 void *context, void(*handler)(struct urb *urb));
|
/sound/usb/ |
D | endpoint.c | 91 u->urb->transfer_buffer, in release_urb_ctx() 92 u->urb->transfer_dma); in release_urb_ctx() 93 usb_free_urb(u->urb); in release_urb_ctx() 94 u->urb = NULL; in release_urb_ctx() 166 ep->retire_data_urb(ep->data_subs, urb_ctx->urb); in retire_outbound_urb() 172 struct urb *urb = urb_ctx->urb; in retire_inbound_urb() local 180 snd_usb_handle_sync_urb(ep->sync_slave, ep, urb); in retire_inbound_urb() 183 ep->retire_data_urb(ep->data_subs, urb); in retire_inbound_urb() 189 struct urb *urb = ctx->urb; in prepare_silent_urb() local 211 urb->iso_frame_desc[i].offset = offset; in prepare_silent_urb() [all …]
|
D | midi.c | 103 void (*output)(struct snd_usb_midi_out_endpoint *ep, struct urb *urb); 104 void (*output_packet)(struct urb*, uint8_t, uint8_t, uint8_t, uint8_t); 139 struct urb *urb; member 171 struct urb *urbs[INPUT_URBS]; 192 static int snd_usbmidi_submit_urb(struct urb *urb, gfp_t flags) in snd_usbmidi_submit_urb() argument 194 int err = usb_submit_urb(urb, flags); in snd_usbmidi_submit_urb() 196 dev_err(&urb->dev->dev, "usb_submit_urb: %d\n", err); in snd_usbmidi_submit_urb() 203 static int snd_usbmidi_urb_error(const struct urb *urb) in snd_usbmidi_urb_error() argument 205 switch (urb->status) { in snd_usbmidi_urb_error() 218 dev_err(&urb->dev->dev, "urb status %d\n", urb->status); in snd_usbmidi_urb_error() [all …]
|
D | card.h | 40 struct urb *urb; member 59 struct urb *urb); 61 struct urb *urb); 67 struct snd_urb_ctx urb[MAX_URBS]; member
|
D | pcm.c | 1278 struct urb *urb) in retire_capture_urb() argument 1292 for (i = 0; i < urb->number_of_packets; i++) { in retire_capture_urb() 1293 cp = (unsigned char *)urb->transfer_buffer + urb->iso_frame_desc[i].offset + subs->pkt_offset_adj; in retire_capture_urb() 1294 if (urb->iso_frame_desc[i].status && printk_ratelimit()) { in retire_capture_urb() 1296 i, urb->iso_frame_desc[i].status); in retire_capture_urb() 1299 bytes = urb->iso_frame_desc[i].actual_length; in retire_capture_urb() 1354 struct urb *urb, unsigned int bytes) in fill_playback_urb_dsd_dop() argument 1361 u8 *dst = urb->transfer_buffer; in fill_playback_urb_dsd_dop() 1410 static void copy_to_urb(struct snd_usb_substream *subs, struct urb *urb, in copy_to_urb() argument 1419 memcpy(urb->transfer_buffer + offset, in copy_to_urb() [all …]
|
/sound/usb/misc/ |
D | ua101.c | 123 struct urb urb; member 181 static void playback_urb_complete(struct urb *usb_urb) in playback_urb_complete() 183 struct ua101_urb *urb = (struct ua101_urb *)usb_urb; in playback_urb_complete() local 184 struct ua101 *ua = urb->urb.context; in playback_urb_complete() 187 if (unlikely(urb->urb.status == -ENOENT || /* unlinked */ in playback_urb_complete() 188 urb->urb.status == -ENODEV || /* device removed */ in playback_urb_complete() 189 urb->urb.status == -ECONNRESET || /* unlinked */ in playback_urb_complete() 190 urb->urb.status == -ESHUTDOWN)) { /* device disabled */ in playback_urb_complete() 199 list_add_tail(&urb->ready_list, &ua->ready_playback_urbs); in playback_urb_complete() 203 urb->urb.iso_frame_desc[0].length / in playback_urb_complete() [all …]
|
/sound/usb/line6/ |
D | capture.c | 30 struct urb *urb_in; in submit_audio_in_urb() 147 static void audio_in_callback(struct urb *urb) in audio_in_callback() argument 152 struct snd_line6_pcm *line6pcm = (struct snd_line6_pcm *)urb->context; in audio_in_callback() 154 line6pcm->in.last_frame = urb->start_frame; in audio_in_callback() 158 if (urb == line6pcm->in.urbs[index]) in audio_in_callback() 166 struct usb_iso_packet_descriptor *fin = &urb->iso_frame_desc[i]; in audio_in_callback() 173 fbuf = urb->transfer_buffer + fin->offset; in audio_in_callback() 252 struct urb *urb; in line6_create_audio_in_urbs() local 255 urb = line6pcm->in.urbs[i] = in line6_create_audio_in_urbs() 258 if (urb == NULL) in line6_create_audio_in_urbs() [all …]
|
D | playback.c | 25 static void change_volume(struct urb *urb_out, int volume[], in change_volume() 70 struct urb *urb_out, int bytes_per_frame) in create_impulse_test_signal() 112 static void add_monitor_signal(struct urb *urb_out, unsigned char *signal, in add_monitor_signal() 155 struct urb *urb_out; in submit_audio_out_urb() 301 static void audio_out_callback(struct urb *urb) in audio_out_callback() argument 305 struct snd_line6_pcm *line6pcm = (struct snd_line6_pcm *)urb->context; in audio_out_callback() 310 memset(urb->transfer_buffer, 0, urb->transfer_buffer_length); in audio_out_callback() 313 line6pcm->out.last_frame = urb->start_frame; in audio_out_callback() 317 if (urb == line6pcm->out.urbs[index]) in audio_out_callback() 324 length += urb->iso_frame_desc[i].length; in audio_out_callback() [all …]
|
D | driver.c | 58 static void line6_data_received(struct urb *urb); 60 struct urb *urb); 121 static void line6_async_request_sent(struct urb *urb) in line6_async_request_sent() argument 123 struct message *msg = (struct message *)urb->context; in line6_async_request_sent() 126 usb_free_urb(urb); in line6_async_request_sent() 129 line6_send_raw_message_async_part(msg, urb); in line6_async_request_sent() 136 struct urb *urb) in line6_send_raw_message_async_part() argument 143 usb_fill_int_urb(urb, line6->usbdev, in line6_send_raw_message_async_part() 149 retval = usb_submit_urb(urb, GFP_ATOMIC); in line6_send_raw_message_async_part() 154 usb_free_urb(urb); in line6_send_raw_message_async_part() [all …]
|
D | midi.c | 75 static void midi_sent(struct urb *urb) in midi_sent() argument 80 struct usb_line6 *line6 = (struct usb_line6 *)urb->context; in midi_sent() 82 status = urb->status; in midi_sent() 83 kfree(urb->transfer_buffer); in midi_sent() 84 usb_free_urb(urb); in midi_sent() 111 struct urb *urb; in send_midi_async() local 115 urb = usb_alloc_urb(0, GFP_ATOMIC); in send_midi_async() 117 if (urb == NULL) in send_midi_async() 123 usb_free_urb(urb); in send_midi_async() 127 usb_fill_int_urb(urb, line6->usbdev, in send_midi_async() [all …]
|
/sound/usb/caiaq/ |
D | audio.c | 378 const struct urb *urb, in read_in_urb_mode0() argument 381 unsigned char *usb_buf = urb->transfer_buffer + iso->offset; in read_in_urb_mode0() 406 const struct urb *urb, in read_in_urb_mode2() argument 409 unsigned char *usb_buf = urb->transfer_buffer + iso->offset; in read_in_urb_mode2() 453 const struct urb *urb, in read_in_urb_mode3() argument 456 unsigned char *usb_buf = urb->transfer_buffer + iso->offset; in read_in_urb_mode3() 509 const struct urb *urb, in read_in_urb() argument 522 read_in_urb_mode0(cdev, urb, iso); in read_in_urb() 525 read_in_urb_mode2(cdev, urb, iso); in read_in_urb() 528 read_in_urb_mode3(cdev, urb, iso); in read_in_urb() [all …]
|
D | device.h | 62 struct urb ep1_in_urb; 63 struct urb midi_out_urb; 64 struct urb **data_urbs_in; 65 struct urb **data_urbs_out; 105 struct urb *ep4_in_urb;
|
D | device.c | 158 static void usb_ep1_command_reply_dispatch (struct urb* urb) in usb_ep1_command_reply_dispatch() argument 161 struct device *dev = &urb->dev->dev; in usb_ep1_command_reply_dispatch() 162 struct snd_usb_caiaqdev *cdev = urb->context; in usb_ep1_command_reply_dispatch() 163 unsigned char *buf = urb->transfer_buffer; in usb_ep1_command_reply_dispatch() 165 if (urb->status || !cdev) { in usb_ep1_command_reply_dispatch() 166 dev_warn(dev, "received EP1 urb->status = %i\n", urb->status); in usb_ep1_command_reply_dispatch() 196 if (urb->actual_length > sizeof(cdev->control_state)) in usb_ep1_command_reply_dispatch() 197 urb->actual_length = sizeof(cdev->control_state); in usb_ep1_command_reply_dispatch() 198 memcpy(cdev->control_state, buf + 1, urb->actual_length); in usb_ep1_command_reply_dispatch() 205 snd_usb_caiaq_input_dispatch(cdev, buf, urb->actual_length); in usb_ep1_command_reply_dispatch()
|
D | midi.c | 163 void snd_usb_caiaq_midi_output_done(struct urb* urb) in snd_usb_caiaq_midi_output_done() argument 165 struct snd_usb_caiaqdev *cdev = urb->context; in snd_usb_caiaq_midi_output_done() 168 if (urb->status != 0) in snd_usb_caiaq_midi_output_done()
|
/sound/usb/bcd2000/ |
D | bcd2000.c | 63 struct urb *midi_out_urb; 64 struct urb *midi_in_urb; 214 static void bcd2000_output_complete(struct urb *urb) in bcd2000_output_complete() argument 216 struct bcd2000 *bcd2k = urb->context; in bcd2000_output_complete() 220 if (urb->status) in bcd2000_output_complete() 221 dev_warn(&urb->dev->dev, in bcd2000_output_complete() 222 PREFIX "output urb->status: %d\n", urb->status); in bcd2000_output_complete() 224 if (urb->status == -ESHUTDOWN) in bcd2000_output_complete() 231 static void bcd2000_input_complete(struct urb *urb) in bcd2000_input_complete() argument 234 struct bcd2000 *bcd2k = urb->context; in bcd2000_input_complete() [all …]
|
/sound/usb/hiface/ |
D | pcm.c | 31 struct urb instance; 261 static bool hiface_pcm_playback(struct pcm_substream *sub, struct pcm_urb *urb) in hiface_pcm_playback() argument 264 struct device *device = &urb->chip->dev->dev; in hiface_pcm_playback() 278 memcpy_swahw32(urb->buffer, source, PCM_PACKET_SIZE); in hiface_pcm_playback() 290 memcpy_swahw32(urb->buffer, source, len); in hiface_pcm_playback() 293 memcpy_swahw32(urb->buffer + len, source, in hiface_pcm_playback() 308 static void hiface_pcm_out_urb_handler(struct urb *usb_urb) in hiface_pcm_out_urb_handler() 529 static int hiface_pcm_init_urb(struct pcm_urb *urb, in hiface_pcm_init_urb() argument 532 void (*handler)(struct urb *)) in hiface_pcm_init_urb() argument 534 urb->chip = chip; in hiface_pcm_init_urb() [all …]
|