diff options
author | Dmitry Torokhov <dtor@mail.ru> | 2007-11-21 10:45:23 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:29:27 -0500 |
commit | b18b493f27bfb0d112a54ef24a1db32e898abff9 (patch) | |
tree | 1b4b69f643bb4705ffd105dfa00ac7aa987185aa /sound/usb/caiaq/caiaq-device.h | |
parent | ee6df2e1849403b5805018193a1454f6d39f9498 (diff) |
[ALSA] caiaq - misc input handling fixes
- link input device with its parent so that it placed in proper spot
in sysfs hierarchy
- drivers that allow changing their keymaps should use private copy
of the keymap so that one instance of a device does not affect
another instance
- it is preferred for drivers to properly set up input_dev->phys to
help userspace locate devices
- drivers should use usb_to_input_id(), or perform endianess conversion,
themselves, otherwise ID is not correct on big-endian boxes
- whitespace and formatting cleanup
Acked-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/usb/caiaq/caiaq-device.h')
-rw-r--r-- | sound/usb/caiaq/caiaq-device.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sound/usb/caiaq/caiaq-device.h b/sound/usb/caiaq/caiaq-device.h index 79bc5be2df7a..685761279f1a 100644 --- a/sound/usb/caiaq/caiaq-device.h +++ b/sound/usb/caiaq/caiaq-device.h | |||
@@ -7,7 +7,7 @@ | |||
7 | 7 | ||
8 | #define USB_PID_RIGKONTROL2 0x1969 | 8 | #define USB_PID_RIGKONTROL2 0x1969 |
9 | #define USB_PID_RIGKONTROL3 0x1940 | 9 | #define USB_PID_RIGKONTROL3 0x1940 |
10 | #define USB_PID_KORECONTROLLER 0x4711 | 10 | #define USB_PID_KORECONTROLLER 0x4711 |
11 | #define USB_PID_AK1 0x0815 | 11 | #define USB_PID_AK1 0x0815 |
12 | #define USB_PID_AUDIO8DJ 0x1978 | 12 | #define USB_PID_AUDIO8DJ 0x1978 |
13 | 13 | ||
@@ -62,7 +62,7 @@ struct snd_usb_caiaqdev { | |||
62 | struct urb **data_urbs_in; | 62 | struct urb **data_urbs_in; |
63 | struct urb **data_urbs_out; | 63 | struct urb **data_urbs_out; |
64 | struct snd_usb_caiaq_cb_info *data_cb_info; | 64 | struct snd_usb_caiaq_cb_info *data_cb_info; |
65 | 65 | ||
66 | unsigned char ep1_in_buf[EP1_BUFSIZE]; | 66 | unsigned char ep1_in_buf[EP1_BUFSIZE]; |
67 | unsigned char ep1_out_buf[EP1_BUFSIZE]; | 67 | unsigned char ep1_out_buf[EP1_BUFSIZE]; |
68 | unsigned char midi_out_buf[EP1_BUFSIZE]; | 68 | unsigned char midi_out_buf[EP1_BUFSIZE]; |
@@ -72,7 +72,7 @@ struct snd_usb_caiaqdev { | |||
72 | wait_queue_head_t ep1_wait_queue; | 72 | wait_queue_head_t ep1_wait_queue; |
73 | wait_queue_head_t prepare_wait_queue; | 73 | wait_queue_head_t prepare_wait_queue; |
74 | int spec_received, audio_parm_answer; | 74 | int spec_received, audio_parm_answer; |
75 | 75 | ||
76 | char vendor_name[CAIAQ_USB_STR_LEN]; | 76 | char vendor_name[CAIAQ_USB_STR_LEN]; |
77 | char product_name[CAIAQ_USB_STR_LEN]; | 77 | char product_name[CAIAQ_USB_STR_LEN]; |
78 | char serial[CAIAQ_USB_STR_LEN]; | 78 | char serial[CAIAQ_USB_STR_LEN]; |
@@ -93,8 +93,10 @@ struct snd_usb_caiaqdev { | |||
93 | /* Linux input */ | 93 | /* Linux input */ |
94 | #ifdef CONFIG_SND_USB_CAIAQ_INPUT | 94 | #ifdef CONFIG_SND_USB_CAIAQ_INPUT |
95 | struct input_dev *input_dev; | 95 | struct input_dev *input_dev; |
96 | char phys[64]; /* physical device path */ | ||
97 | unsigned short keycode[10]; | ||
96 | #endif | 98 | #endif |
97 | 99 | ||
98 | /* ALSA */ | 100 | /* ALSA */ |
99 | struct snd_pcm *pcm; | 101 | struct snd_pcm *pcm; |
100 | struct snd_pcm_hardware pcm_info; | 102 | struct snd_pcm_hardware pcm_info; |