~ubuntu-branches/ubuntu/precise/alsa-driver/precise

« back to all changes in this revision

Viewing changes to usb/caiaq/input.patch

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2011-02-21 18:06:40 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20110221180640-a8p2yxtvgf7xbxub
Tags: 1.0.24+dfsg-0ubuntu1
* New upstream release
* Refreshed patches:
  - distinguish_kernel_makefile_and_source_dirs.patch
  - debian_dfsg_configure.patch
* debian/control: Update Vcs-bzr field to point to new branch location

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- ../../alsa-kernel/usb/caiaq/input.c 2010-03-22 16:10:59.103773419 +0100
2
 
+++ input.c     2010-03-22 18:06:20.773262057 +0100
 
1
--- ../../alsa-kernel/usb/caiaq/input.c 2010-09-30 23:00:05.768410444 +0200
 
2
+++ input.c     2010-11-02 16:47:34.561332208 +0100
3
3
@@ -1,3 +1,5 @@
4
4
+#include "adriver.h"
5
5
+#include "../usbcompat.h"
6
6
 /*
7
7
  *   Copyright (c) 2006,2007 Daniel Mack, Tim Ruetz
8
8
  *
9
 
@@ -18,13 +20,30 @@
10
 
 
 
9
@@ -19,13 +21,30 @@
 
10
 #include <linux/gfp.h>
11
11
 #include <linux/init.h>
12
12
 #include <linux/usb.h>
13
13
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 18)
37
37
 static unsigned short keycode_ak1[] =  { KEY_C, KEY_B, KEY_A };
38
38
 static unsigned short keycode_rk2[] =  { KEY_1, KEY_2, KEY_3, KEY_4,
39
39
                                         KEY_5, KEY_6, KEY_7 };
40
 
@@ -281,7 +300,11 @@
 
40
@@ -436,7 +455,11 @@ requeue:
41
41
 
42
42
 static int snd_usb_caiaq_input_open(struct input_dev *idev)
43
43
 {
49
49
 
50
50
        if (!dev)
51
51
                return -EINVAL;
52
 
@@ -298,7 +321,11 @@
 
52
@@ -454,7 +477,11 @@ static int snd_usb_caiaq_input_open(stru
53
53
 
54
54
 static void snd_usb_caiaq_input_close(struct input_dev *idev)
55
55
 {
61
61
 
62
62
        if (!dev)
63
63
                return;
64
 
@@ -336,7 +363,11 @@
 
64
@@ -493,7 +520,11 @@ int snd_usb_caiaq_input_init(struct snd_
65
65
        struct input_dev *input;
66
66
        int i, ret = 0;
67
67
 
73
73
        if (!input)
74
74
                return -ENOMEM;
75
75
 
76
 
@@ -346,9 +377,17 @@
 
76
@@ -503,9 +534,17 @@ int snd_usb_caiaq_input_init(struct snd_
77
77
        input->name = dev->product_name;
78
78
        input->phys = dev->phys;
79
79
        usb_to_input_id(usb_dev, &input->id);
91
91
 
92
92
        switch (dev->chip.usb_id) {
93
93
        case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_RIGKONTROL2):
94
 
@@ -467,9 +506,13 @@
 
94
@@ -664,9 +703,13 @@ int snd_usb_caiaq_input_init(struct snd_
95
95
        for (i = 0; i < input->keycodemax; i++)
96
96
                __set_bit(dev->keycode[i], input->keybit);
97
97