From 844af665f340fa46bc511158625cbad1abdd7bd3 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Thu, 22 Nov 2012 20:49:07 +0100 Subject: [PATCH] --- yaml --- r: 338230 b: refs/heads/master c: baa081f127dcb213e06dec828c091e4f1048e4b3 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/staging/line6/pod.c | 21 --------------------- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/[refs] b/[refs] index 3105f7081ca0..7a6f63ae4fe6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e62025281bb565f2cdb3e42e900caf972809eb35 +refs/heads/master: baa081f127dcb213e06dec828c091e4f1048e4b3 diff --git a/trunk/drivers/staging/line6/pod.c b/trunk/drivers/staging/line6/pod.c index db9c905b27f0..157ef687eddc 100644 --- a/trunk/drivers/staging/line6/pod.c +++ b/trunk/drivers/staging/line6/pod.c @@ -40,10 +40,6 @@ enum { enum { POD_monitor_level = 0x04, - POD_tuner_mute = 0x13, - POD_tuner_freq = 0x15, - POD_tuner_note = 0x16, - POD_tuner_pitch = 0x17, POD_system_invalid = 0x10000 }; @@ -297,20 +293,8 @@ void line6_pod_transmit_parameter(struct usb_line6_pod *pod, int param, line6_invalidate_current(&pod->dumpreq); } -/* - Identify system parameters related to the tuner. -*/ -static bool pod_is_tuner(int code) -{ - return - (code == POD_tuner_mute) || - (code == POD_tuner_freq) || - (code == POD_tuner_note) || (code == POD_tuner_pitch); -} - /* Send system parameter (from integer). - @param tuner non-zero, if code refers to a tuner parameter */ static int pod_set_system_param_int(struct usb_line6_pod *pod, int value, int code) @@ -318,11 +302,6 @@ static int pod_set_system_param_int(struct usb_line6_pod *pod, int value, char *sysex; static const int size = 5; - if (((pod->prog_data.control[POD_tuner] & 0x40) == 0) - && pod_is_tuner(code)) - return -EINVAL; - - /* send value to tuner: */ sysex = pod_alloc_sysex_buffer(pod, POD_SYSEX_SYSTEM, size); if (!sysex) return -ENOMEM;