diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-19 10:38:23 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-20 02:19:12 -0500 |
commit | 4d79fb1ed2487f204a185b59895e9a92ac4b475a (patch) | |
tree | a8251060fe33b02db60971cc6863ff98a9ee0715 /sound/usb | |
parent | 73723190282d2d6dcb831b3d98f760337d83408c (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.c | 59 | ||||
-rw-r--r-- | sound/usb/line6/driver.h | 3 |
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 | */ | ||
304 | int 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 | */ | ||
333 | int 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 | */ |
363 | int line6_read_data(struct usb_line6 *line6, int address, void *data, | 304 | int 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); |
169 | extern int line6_read_serial_number(struct usb_line6 *line6, | 169 | extern int line6_read_serial_number(struct usb_line6 *line6, |
170 | int *serial_number); | 170 | int *serial_number); |
171 | extern int line6_send_program(struct usb_line6 *line6, u8 value); | ||
172 | extern int line6_send_raw_message_async(struct usb_line6 *line6, | 171 | extern int line6_send_raw_message_async(struct usb_line6 *line6, |
173 | const char *buffer, int size); | 172 | const char *buffer, int size); |
174 | extern int line6_send_sysex_message(struct usb_line6 *line6, | 173 | extern 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, | |||
178 | extern void line6_start_timer(struct timer_list *timer, unsigned int msecs, | 177 | extern 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); |
181 | extern int line6_transmit_parameter(struct usb_line6 *line6, int param, | ||
182 | u8 value); | ||
183 | extern int line6_version_request_async(struct usb_line6 *line6); | 180 | extern int line6_version_request_async(struct usb_line6 *line6); |
184 | extern int line6_write_data(struct usb_line6 *line6, int address, void *data, | 181 | extern int line6_write_data(struct usb_line6 *line6, int address, void *data, |
185 | size_t datalen); | 182 | size_t datalen); |