aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-19 10:38:23 -0500
committerTakashi Iwai <tiwai@suse.de>2015-01-20 02:19:12 -0500
commit4d79fb1ed2487f204a185b59895e9a92ac4b475a (patch)
treea8251060fe33b02db60971cc6863ff98a9ee0715 /sound/usb
parent73723190282d2d6dcb831b3d98f760337d83408c (diff)
ALSA: line6: Drop line6_send_program() and line6_transmit_parameter()
Both functions are used nowhere. Tested-by: Chris Rorvick <chris@rorvick.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/line6/driver.c59
-rw-r--r--sound/usb/line6/driver.h3
2 files changed, 0 insertions, 62 deletions
diff --git a/sound/usb/line6/driver.c b/sound/usb/line6/driver.c
index a2f72cc2bf96..a3da18b876d1 100644
--- a/sound/usb/line6/driver.c
+++ b/sound/usb/line6/driver.c
@@ -299,65 +299,6 @@ static void line6_data_received(struct urb *urb)
299} 299}
300 300
301/* 301/*
302 Send channel number (i.e., switch to a different sound).
303*/
304int line6_send_program(struct usb_line6 *line6, u8 value)
305{
306 int retval;
307 unsigned char *buffer;
308 int partial;
309
310 buffer = kmalloc(2, GFP_KERNEL);
311 if (!buffer)
312 return -ENOMEM;
313
314 buffer[0] = LINE6_PROGRAM_CHANGE | LINE6_CHANNEL_HOST;
315 buffer[1] = value;
316
317 retval = usb_interrupt_msg(line6->usbdev,
318 usb_sndintpipe(line6->usbdev,
319 line6->properties->ep_ctrl_w),
320 buffer, 2, &partial, LINE6_TIMEOUT * HZ);
321
322 if (retval)
323 dev_err(line6->ifcdev, "usb_interrupt_msg failed (%d)\n",
324 retval);
325
326 kfree(buffer);
327 return retval;
328}
329
330/*
331 Transmit Line6 control parameter.
332*/
333int line6_transmit_parameter(struct usb_line6 *line6, int param, u8 value)
334{
335 int retval;
336 unsigned char *buffer;
337 int partial;
338
339 buffer = kmalloc(3, GFP_KERNEL);
340 if (!buffer)
341 return -ENOMEM;
342
343 buffer[0] = LINE6_PARAM_CHANGE | LINE6_CHANNEL_HOST;
344 buffer[1] = param;
345 buffer[2] = value;
346
347 retval = usb_interrupt_msg(line6->usbdev,
348 usb_sndintpipe(line6->usbdev,
349 line6->properties->ep_ctrl_w),
350 buffer, 3, &partial, LINE6_TIMEOUT * HZ);
351
352 if (retval)
353 dev_err(line6->ifcdev, "usb_interrupt_msg failed (%d)\n",
354 retval);
355
356 kfree(buffer);
357 return retval;
358}
359
360/*
361 Read data from device. 302 Read data from device.
362*/ 303*/
363int line6_read_data(struct usb_line6 *line6, int address, void *data, 304int line6_read_data(struct usb_line6 *line6, int address, void *data,
diff --git a/sound/usb/line6/driver.h b/sound/usb/line6/driver.h
index 8fd65f2e1f06..d539c11d333d 100644
--- a/sound/usb/line6/driver.h
+++ b/sound/usb/line6/driver.h
@@ -168,7 +168,6 @@ extern int line6_read_data(struct usb_line6 *line6, int address, void *data,
168 size_t datalen); 168 size_t datalen);
169extern int line6_read_serial_number(struct usb_line6 *line6, 169extern int line6_read_serial_number(struct usb_line6 *line6,
170 int *serial_number); 170 int *serial_number);
171extern int line6_send_program(struct usb_line6 *line6, u8 value);
172extern int line6_send_raw_message_async(struct usb_line6 *line6, 171extern int line6_send_raw_message_async(struct usb_line6 *line6,
173 const char *buffer, int size); 172 const char *buffer, int size);
174extern int line6_send_sysex_message(struct usb_line6 *line6, 173extern int line6_send_sysex_message(struct usb_line6 *line6,
@@ -178,8 +177,6 @@ extern ssize_t line6_set_raw(struct device *dev, struct device_attribute *attr,
178extern void line6_start_timer(struct timer_list *timer, unsigned int msecs, 177extern void line6_start_timer(struct timer_list *timer, unsigned int msecs,
179 void (*function)(unsigned long), 178 void (*function)(unsigned long),
180 unsigned long data); 179 unsigned long data);
181extern int line6_transmit_parameter(struct usb_line6 *line6, int param,
182 u8 value);
183extern int line6_version_request_async(struct usb_line6 *line6); 180extern int line6_version_request_async(struct usb_line6 *line6);
184extern int line6_write_data(struct usb_line6 *line6, int address, void *data, 181extern int line6_write_data(struct usb_line6 *line6, int address, void *data,
185 size_t datalen); 182 size_t datalen);