/drivers/staging/line6/ |
D | driver.c | 108 struct usb_line6 *line6; member 124 static int line6_start_listen(struct usb_line6 *line6) in line6_start_listen() argument 128 usb_fill_int_urb(line6->urb_listen, line6->usbdev, in line6_start_listen() 129 usb_rcvintpipe(line6->usbdev, line6->ep_control_read), in line6_start_listen() 130 line6->buffer_listen, LINE6_BUFSIZE_LISTEN, in line6_start_listen() 131 line6_data_received, line6, line6->interval); in line6_start_listen() 132 line6->urb_listen->actual_length = 0; in line6_start_listen() 133 err = usb_submit_urb(line6->urb_listen, GFP_ATOMIC); in line6_start_listen() 140 static void line6_stop_listen(struct usb_line6 *line6) in line6_stop_listen() argument 142 usb_kill_urb(line6->urb_listen); in line6_stop_listen() [all …]
|
D | midi.c | 26 static int send_midi_async(struct usb_line6 *line6, unsigned char *data, 32 void line6_midi_receive(struct usb_line6 *line6, unsigned char *data, in line6_midi_receive() argument 35 if (line6->line6midi->substream_receive) in line6_midi_receive() 36 snd_rawmidi_receive(line6->line6midi->substream_receive, in line6_midi_receive() 45 struct usb_line6 *line6 = in line6_midi_transmit() local 46 line6_rawmidi_substream_midi(substream)->line6; in line6_midi_transmit() 47 struct snd_line6_midi *line6midi = line6->line6midi; in line6_midi_transmit() 53 spin_lock_irqsave(&line6->line6midi->midi_transmit_lock, flags); in line6_midi_transmit() 56 req = min(line6_midibuf_bytes_free(mb), line6->max_packet_size); in line6_midi_transmit() 73 send_midi_async(line6, chunk, done); in line6_midi_transmit() [all …]
|
D | toneport.c | 112 struct usb_line6 *line6; in toneport_update_led() local 117 line6 = &tp->line6; in toneport_update_led() 118 if (line6) in toneport_update_led() 119 toneport_send_cmd(line6->usbdev, (led_red << 8) | 0x0002, in toneport_update_led() 237 (struct usb_line6_toneport *)line6pcm->line6; in snd_toneport_source_get() 248 (struct usb_line6_toneport *)line6pcm->line6; in snd_toneport_source_put() 258 toneport_send_cmd(toneport->line6.usbdev, in snd_toneport_source_put() 266 struct usb_line6 *line6 = &toneport->line6; in toneport_start_pcm() local 268 line6_pcm_acquire(line6->line6pcm, LINE6_BITS_PCM_MONITOR); in toneport_start_pcm() 302 line6_cleanup_audio(&toneport->line6); in toneport_destruct() [all …]
|
D | audio.c | 22 int line6_init_audio(struct usb_line6 *line6) in line6_init_audio() argument 27 err = snd_card_new(line6->ifcdev, in line6_init_audio() 33 line6->card = card; in line6_init_audio() 35 strcpy(card->id, line6->properties->id); in line6_init_audio() 37 strcpy(card->shortname, line6->properties->name); in line6_init_audio() 39 sprintf(card->longname, "Line6 %s at USB %s", line6->properties->name, in line6_init_audio() 40 dev_name(line6->ifcdev)); in line6_init_audio() 47 int line6_register_audio(struct usb_line6 *line6) in line6_register_audio() argument 51 err = snd_card_register(line6->card); in line6_register_audio() 61 void line6_cleanup_audio(struct usb_line6 *line6) in line6_cleanup_audio() argument [all …]
|
D | pod.c | 127 return line6_alloc_sysex_buffer(&pod->line6, POD_SYSEX_CODE, code, in pod_alloc_sysex_buffer() 136 const unsigned char *buf = pod->line6.buffer_message; in line6_pod_process_message() 167 line6_transmit_parameter(&pod->line6, param, value); in line6_pod_transmit_parameter() 187 line6_send_sysex_message(&pod->line6, sysex, size); in pod_set_system_param_int() 248 struct usb_line6 *line6 = &pod->line6; in pod_startup2() local 253 line6_version_request_async(line6); in pod_startup2() 268 struct usb_line6 *line6 = &pod->line6; in pod_startup4() local 273 line6_read_serial_number(&pod->line6, &pod->serial_number); in pod_startup4() 276 line6_register_audio(line6); in pod_startup4() 300 struct usb_line6_pod *pod = (struct usb_line6_pod *)line6pcm->line6; in snd_pod_control_monitor_get() [all …]
|
D | pcm.c | 29 struct usb_line6 *line6 = usb_get_intfdata(interface); in dev2pcm() local 30 struct snd_line6_pcm *line6pcm = line6->line6pcm; in dev2pcm() 141 dev_err(line6pcm->line6->ifcdev, "Device not yet ready\n"); in line6_pcm_acquire() 175 dev_err(line6pcm->line6->ifcdev, "Device not yet ready\n"); in line6_pcm_acquire() 263 dev_err(line6pcm->line6->ifcdev, in snd_line6_trigger() 334 device_remove_file(line6pcm->line6->ifcdev, &dev_attr_impulse_volume); in line6_cleanup_pcm() 335 device_remove_file(line6pcm->line6->ifcdev, &dev_attr_impulse_period); in line6_cleanup_pcm() 356 err = snd_pcm_new(line6pcm->line6->card, in snd_line6_new_pcm() 357 (char *)line6pcm->line6->properties->name, in snd_line6_new_pcm() 365 strcpy(pcm->name, line6pcm->line6->properties->name); in snd_line6_new_pcm() [all …]
|
D | driver.h | 189 extern char *line6_alloc_sysex_buffer(struct usb_line6 *line6, int code1, 193 extern int line6_read_data(struct usb_line6 *line6, int address, void *data, 195 extern int line6_read_serial_number(struct usb_line6 *line6, 197 extern int line6_send_program(struct usb_line6 *line6, u8 value); 198 extern int line6_send_raw_message(struct usb_line6 *line6, const char *buffer, 200 extern int line6_send_raw_message_async(struct usb_line6 *line6, 202 extern int line6_send_sysex_message(struct usb_line6 *line6, 209 extern int line6_transmit_parameter(struct usb_line6 *line6, int param, 211 extern int line6_version_request_async(struct usb_line6 *line6); 212 extern int line6_write_data(struct usb_line6 *line6, int address, void *data,
|
D | variax.c | 49 line6_send_raw_message_async(&variax->line6, variax->buffer_activate, in variax_activate_async() 72 struct usb_line6 *line6 = &variax->line6; in variax_startup2() local 83 line6_version_request_async(line6); in variax_startup2() 127 line6_register_audio(&variax->line6); in variax_startup6() 135 const unsigned char *buf = variax->line6.buffer_message; in line6_variax_process_message() 139 dev_info(variax->line6.ifcdev, "VARIAX reset\n"); in line6_variax_process_message() 164 line6_cleanup_audio(&variax->line6); in variax_destruct() 198 err = line6_init_audio(&variax->line6); in variax_try_init() 203 err = line6_init_midi(&variax->line6); in variax_try_init()
|
D | podhd.c | 86 line6_cleanup_audio(&podhd->line6); in podhd_destruct() 96 struct usb_line6 *line6 = &podhd->line6; in podhd_try_init() local 102 err = line6_init_audio(line6); in podhd_try_init() 107 err = line6_init_midi(line6); in podhd_try_init() 112 err = line6_init_pcm(line6, &podhd_pcm_properties); in podhd_try_init() 117 err = line6_register_audio(line6); in podhd_try_init() 147 struct snd_line6_pcm *line6pcm = podhd->line6.line6pcm; in line6_podhd_disconnect()
|
D | midi.h | 25 struct usb_line6 *line6; member 68 extern int line6_init_midi(struct usb_line6 *line6); 69 extern void line6_midi_receive(struct usb_line6 *line6, unsigned char *data,
|
D | capture.c | 40 dev_err(line6pcm->line6->ifcdev, "no free URB found\n"); in submit_audio_in_urb() 66 dev_err(line6pcm->line6->ifcdev, in submit_audio_in_urb() 172 dev_err(line6pcm->line6->ifcdev, in line6_capture_copy() 237 dev_err(line6pcm->line6->ifcdev, in audio_in_callback() 414 dev_err(line6pcm->line6->ifcdev, "Out of memory\n"); in line6_create_audio_in_urbs() 418 urb->dev = line6pcm->line6->usbdev; in line6_create_audio_in_urbs() 420 usb_rcvisocpipe(line6pcm->line6->usbdev, in line6_create_audio_in_urbs()
|
D | playback.c | 160 dev_err(line6pcm->line6->ifcdev, "no free URB found\n"); in submit_audio_out_urb() 193 dev_err(line6pcm->line6->ifcdev, "driver bug: urb_size = 0\n"); in submit_audio_out_urb() 227 dev_err(line6pcm->line6->ifcdev, "driver bug: len = %d\n", in submit_audio_out_urb() 263 (line6pcm->line6-> in submit_audio_out_urb() 280 dev_err(line6pcm->line6->ifcdev, in submit_audio_out_urb() 574 dev_err(line6pcm->line6->ifcdev, "Out of memory\n"); in line6_create_audio_out_urbs() 578 urb->dev = line6pcm->line6->usbdev; in line6_create_audio_out_urbs() 580 usb_sndisocpipe(line6pcm->line6->usbdev, in line6_create_audio_out_urbs()
|
D | pcm.h | 186 struct usb_line6 *line6; member 374 extern int line6_init_pcm(struct usb_line6 *line6,
|
D | podhd.h | 23 struct usb_line6 line6; member
|
D | toneport.h | 24 struct usb_line6 line6; member
|
D | variax.h | 43 struct usb_line6 line6; member
|
D | pod.h | 57 struct usb_line6 line6; member
|
/drivers/staging/ |
D | Makefile | 18 obj-$(CONFIG_LINE6_USB) += line6/
|
D | Kconfig | 49 source "drivers/staging/line6/Kconfig"
|