/sound/usb/line6/ |
D | driver.c | 46 struct usb_line6 *line6; member 62 static int line6_start_listen(struct usb_line6 *line6) in line6_start_listen() argument 66 if (line6->properties->capabilities & LINE6_CAP_CONTROL_MIDI) { in line6_start_listen() 67 usb_fill_int_urb(line6->urb_listen, line6->usbdev, in line6_start_listen() 68 usb_rcvintpipe(line6->usbdev, line6->properties->ep_ctrl_r), in line6_start_listen() 69 line6->buffer_listen, LINE6_BUFSIZE_LISTEN, in line6_start_listen() 70 line6_data_received, line6, line6->interval); in line6_start_listen() 72 usb_fill_bulk_urb(line6->urb_listen, line6->usbdev, in line6_start_listen() 73 usb_rcvbulkpipe(line6->usbdev, line6->properties->ep_ctrl_r), in line6_start_listen() 74 line6->buffer_listen, LINE6_BUFSIZE_LISTEN, in line6_start_listen() [all …]
|
D | midi.c | 20 static int send_midi_async(struct usb_line6 *line6, unsigned char *data, 26 void line6_midi_receive(struct usb_line6 *line6, unsigned char *data, in line6_midi_receive() argument 29 if (line6->line6midi->substream_receive) in line6_midi_receive() 30 snd_rawmidi_receive(line6->line6midi->substream_receive, in line6_midi_receive() 39 struct usb_line6 *line6 = in line6_midi_transmit() local 40 line6_rawmidi_substream_midi(substream)->line6; in line6_midi_transmit() 41 struct snd_line6_midi *line6midi = line6->line6midi; in line6_midi_transmit() 47 req = min3(line6_midibuf_bytes_free(mb), line6->max_packet_size, in line6_midi_transmit() 66 send_midi_async(line6, chunk, done); in line6_midi_transmit() 78 struct usb_line6 *line6 = (struct usb_line6 *)urb->context; in midi_sent() local [all …]
|
D | variax.c | 37 struct usb_line6 line6; member 46 #define line6_to_variax(x) container_of(x, struct usb_line6_variax, line6) 74 line6_send_raw_message_async(&variax->line6, variax->buffer_activate, in variax_activate_async() 85 static void variax_startup(struct usb_line6 *line6) in variax_startup() argument 87 struct usb_line6_variax *variax = line6_to_variax(line6); in variax_startup() 92 schedule_delayed_work(&line6->startup_work, in variax_startup() 95 line6_version_request_async(line6); in variax_startup() 101 schedule_delayed_work(&line6->startup_work, in variax_startup() 106 snd_card_register(variax->line6.card); in variax_startup() 114 static void line6_variax_process_message(struct usb_line6 *line6) in line6_variax_process_message() argument [all …]
|
D | podhd.c | 34 struct usb_line6 line6; member 46 #define line6_to_podhd(x) container_of(x, struct usb_line6_podhd, line6) 188 struct usb_device *usbdev = pod->line6.usbdev; in podhd_dev_start() 195 dev_err(pod->line6.ifcdev, "read request failed (error %d)\n", ret); in podhd_dev_start() 205 dev_err(pod->line6.ifcdev, in podhd_dev_start() 214 ret = line6_read_data(&pod->line6, 0xf000 + 0x08 * i, init_bytes, 8); in podhd_dev_start() 228 static void podhd_startup(struct usb_line6 *line6) in podhd_startup() argument 230 struct usb_line6_podhd *pod = line6_to_podhd(line6); in podhd_startup() 233 line6_read_serial_number(&pod->line6, &pod->serial_number); in podhd_startup() 234 if (snd_card_register(line6->card)) in podhd_startup() [all …]
|
D | toneport.c | 42 struct usb_line6 line6; member 60 #define line6_to_toneport(x) container_of(x, struct usb_line6_toneport, line6) 213 struct usb_line6_toneport *toneport = line6_to_toneport(line6pcm->line6); in snd_toneport_source_get() 224 struct usb_line6_toneport *toneport = line6_to_toneport(line6pcm->line6); in snd_toneport_source_put() 234 toneport_send_cmd(toneport->line6.usbdev, in snd_toneport_source_put() 239 static void toneport_startup(struct usb_line6 *line6) in toneport_startup() argument 241 line6_pcm_acquire(line6->line6pcm, LINE6_STREAM_MONITOR, true); in toneport_startup() 291 toneport_send_cmd(toneport->line6.usbdev, in toneport_update_led() 306 struct device *dev = &toneport->line6.usbdev->dev; in toneport_init_leds() 363 struct usb_line6 *line6 = &toneport->line6; in toneport_setup() local [all …]
|
D | pod.c | 55 struct usb_line6 line6; member 73 #define line6_to_pod(x) container_of(x, struct usb_line6_pod, line6) 170 return line6_alloc_sysex_buffer(&pod->line6, POD_SYSEX_CODE, code, in pod_alloc_sysex_buffer() 177 static void line6_pod_process_message(struct usb_line6 *line6) in line6_pod_process_message() argument 179 struct usb_line6_pod *pod = line6_to_pod(line6); in line6_pod_process_message() 180 const unsigned char *buf = pod->line6.buffer_message; in line6_pod_process_message() 188 schedule_delayed_work(&line6->startup_work, 0); in line6_pod_process_message() 225 line6_send_sysex_message(&pod->line6, sysex, size); in pod_set_system_param_int() 274 static void pod_startup(struct usb_line6 *line6) in pod_startup() argument 276 struct usb_line6_pod *pod = line6_to_pod(line6); in pod_startup() [all …]
|
D | driver.h | 180 void (*disconnect)(struct usb_line6 *line6); 181 void (*startup)(struct usb_line6 *line6); 184 extern char *line6_alloc_sysex_buffer(struct usb_line6 *line6, int code1, 186 extern int line6_read_data(struct usb_line6 *line6, unsigned address, 188 extern int line6_read_serial_number(struct usb_line6 *line6, 190 extern int line6_send_raw_message(struct usb_line6 *line6, 192 extern int line6_send_raw_message_async(struct usb_line6 *line6, 194 extern int line6_send_sysex_message(struct usb_line6 *line6, 198 extern int line6_version_request_async(struct usb_line6 *line6); 199 extern int line6_write_data(struct usb_line6 *line6, unsigned address,
|
D | pcm.c | 103 for (i = 0; i < line6pcm->line6->iso_buffers; i++) { in line6_unlink_audio_urbs() 123 for (i = 0; i < line6pcm->line6->iso_buffers; i++) { in line6_wait_clear_audio_urbs() 133 dev_err(line6pcm->line6->ifcdev, in line6_wait_clear_audio_urbs() 158 kmalloc(array3_size(line6pcm->line6->iso_buffers, in line6_buffer_acquire() 244 (line6pcm->line6->properties->capabilities & in snd_line6_trigger() 260 (line6pcm->line6->properties->capabilities & in snd_line6_trigger() 473 cleanup_urbs(&line6pcm->out, line6pcm->line6->iso_buffers); in line6_cleanup_pcm() 474 cleanup_urbs(&line6pcm->in, line6pcm->line6->iso_buffers); in line6_cleanup_pcm() 479 static int snd_line6_new_pcm(struct usb_line6 *line6, struct snd_pcm **pcm_ret) in snd_line6_new_pcm() argument 484 err = snd_pcm_new(line6->card, (char *)line6->properties->name, in snd_line6_new_pcm() [all …]
|
D | capture.c | 29 line6pcm->line6->iso_buffers); in submit_audio_in_urb() 31 if (index < 0 || index >= line6pcm->line6->iso_buffers) { in submit_audio_in_urb() 32 dev_err(line6pcm->line6->ifcdev, "no free URB found\n"); in submit_audio_in_urb() 58 dev_err(line6pcm->line6->ifcdev, in submit_audio_in_urb() 72 for (i = 0; i < line6pcm->line6->iso_buffers; ++i) { in line6_submit_audio_in_all_urbs() 114 dev_err(line6pcm->line6->ifcdev, in line6_capture_copy() 155 for (index = 0; index < line6pcm->line6->iso_buffers; ++index) in audio_in_callback() 175 dev_err(line6pcm->line6->ifcdev, in audio_in_callback() 259 struct usb_line6 *line6 = line6pcm->line6; in line6_create_audio_in_urbs() local 262 line6pcm->in.urbs = kcalloc(line6->iso_buffers, sizeof(struct urb *), in line6_create_audio_in_urbs() [all …]
|
D | playback.c | 152 (line6pcm->line6->intervals_per_second / LINE6_ISO_INTERVAL); in submit_audio_out_urb() 156 line6pcm->line6->iso_buffers); in submit_audio_out_urb() 158 if (index < 0 || index >= line6pcm->line6->iso_buffers) { in submit_audio_out_urb() 159 dev_err(line6pcm->line6->ifcdev, "no free URB found\n"); in submit_audio_out_urb() 192 dev_err(line6pcm->line6->ifcdev, "driver bug: urb_size = 0\n"); in submit_audio_out_urb() 226 dev_err(line6pcm->line6->ifcdev, "driver bug: len = %d\n", in submit_audio_out_urb() 260 if (!(line6pcm->line6->properties->capabilities & LINE6_CAP_HWMON) in submit_audio_out_urb() 276 dev_err(line6pcm->line6->ifcdev, in submit_audio_out_urb() 290 for (i = 0; i < line6pcm->line6->iso_buffers; ++i) { in line6_submit_audio_out_all_urbs() 320 for (index = 0; index < line6pcm->line6->iso_buffers; index++) in audio_out_callback() [all …]
|
D | midi.h | 19 struct usb_line6 *line6; member 43 extern int line6_init_midi(struct usb_line6 *line6); 44 extern void line6_midi_receive(struct usb_line6 *line6, unsigned char *data,
|
D | Makefile | 2 snd-usb-line6-y := \ 15 obj-$(CONFIG_SND_USB_LINE6) += snd-usb-line6.o
|
D | pcm.h | 138 struct usb_line6 *line6; member 182 extern int line6_init_pcm(struct usb_line6 *line6,
|
/sound/usb/ |
D | Makefile | 36 obj-$(CONFIG_SND_USB_LINE6) += line6/
|
D | Kconfig | 168 source "sound/usb/line6/Kconfig"
|