diff options
Diffstat (limited to 'drivers/media/common/ir-functions.c')
-rw-r--r-- | drivers/media/common/ir-functions.c | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/drivers/media/common/ir-functions.c b/drivers/media/common/ir-functions.c index 266505207925..16792a68a449 100644 --- a/drivers/media/common/ir-functions.c +++ b/drivers/media/common/ir-functions.c | |||
@@ -66,7 +66,6 @@ void ir_input_init(struct input_dev *dev, struct ir_input_state *ir, | |||
66 | if (ir_codes) | 66 | if (ir_codes) |
67 | memcpy(ir->ir_codes, ir_codes, sizeof(ir->ir_codes)); | 67 | memcpy(ir->ir_codes, ir_codes, sizeof(ir->ir_codes)); |
68 | 68 | ||
69 | |||
70 | dev->keycode = ir->ir_codes; | 69 | dev->keycode = ir->ir_codes; |
71 | dev->keycodesize = sizeof(IR_KEYTAB_TYPE); | 70 | dev->keycodesize = sizeof(IR_KEYTAB_TYPE); |
72 | dev->keycodemax = IR_KEYTAB_SIZE; | 71 | dev->keycodemax = IR_KEYTAB_SIZE; |
@@ -78,6 +77,7 @@ void ir_input_init(struct input_dev *dev, struct ir_input_state *ir, | |||
78 | if (repeat) | 77 | if (repeat) |
79 | set_bit(EV_REP, dev->evbit); | 78 | set_bit(EV_REP, dev->evbit); |
80 | } | 79 | } |
80 | EXPORT_SYMBOL_GPL(ir_input_init); | ||
81 | 81 | ||
82 | void ir_input_nokey(struct input_dev *dev, struct ir_input_state *ir) | 82 | void ir_input_nokey(struct input_dev *dev, struct ir_input_state *ir) |
83 | { | 83 | { |
@@ -86,6 +86,7 @@ void ir_input_nokey(struct input_dev *dev, struct ir_input_state *ir) | |||
86 | ir_input_key_event(dev,ir); | 86 | ir_input_key_event(dev,ir); |
87 | } | 87 | } |
88 | } | 88 | } |
89 | EXPORT_SYMBOL_GPL(ir_input_nokey); | ||
89 | 90 | ||
90 | void ir_input_keydown(struct input_dev *dev, struct ir_input_state *ir, | 91 | void ir_input_keydown(struct input_dev *dev, struct ir_input_state *ir, |
91 | u32 ir_key, u32 ir_raw) | 92 | u32 ir_key, u32 ir_raw) |
@@ -104,6 +105,7 @@ void ir_input_keydown(struct input_dev *dev, struct ir_input_state *ir, | |||
104 | ir_input_key_event(dev,ir); | 105 | ir_input_key_event(dev,ir); |
105 | } | 106 | } |
106 | } | 107 | } |
108 | EXPORT_SYMBOL_GPL(ir_input_keydown); | ||
107 | 109 | ||
108 | /* -------------------------------------------------------------------------- */ | 110 | /* -------------------------------------------------------------------------- */ |
109 | /* extract mask bits out of data and pack them into the result */ | 111 | /* extract mask bits out of data and pack them into the result */ |
@@ -122,6 +124,7 @@ u32 ir_extract_bits(u32 data, u32 mask) | |||
122 | 124 | ||
123 | return value; | 125 | return value; |
124 | } | 126 | } |
127 | EXPORT_SYMBOL_GPL(ir_extract_bits); | ||
125 | 128 | ||
126 | static int inline getbit(u32 *samples, int bit) | 129 | static int inline getbit(u32 *samples, int bit) |
127 | { | 130 | { |
@@ -146,6 +149,7 @@ int ir_dump_samples(u32 *samples, int count) | |||
146 | printk("\n"); | 149 | printk("\n"); |
147 | return 0; | 150 | return 0; |
148 | } | 151 | } |
152 | EXPORT_SYMBOL_GPL(ir_dump_samples); | ||
149 | 153 | ||
150 | /* decode raw samples, pulse distance coding used by NEC remotes */ | 154 | /* decode raw samples, pulse distance coding used by NEC remotes */ |
151 | int ir_decode_pulsedistance(u32 *samples, int count, int low, int high) | 155 | int ir_decode_pulsedistance(u32 *samples, int count, int low, int high) |
@@ -212,6 +216,7 @@ int ir_decode_pulsedistance(u32 *samples, int count, int low, int high) | |||
212 | 216 | ||
213 | return value; | 217 | return value; |
214 | } | 218 | } |
219 | EXPORT_SYMBOL_GPL(ir_decode_pulsedistance); | ||
215 | 220 | ||
216 | /* decode raw samples, biphase coding, used by rc5 for example */ | 221 | /* decode raw samples, biphase coding, used by rc5 for example */ |
217 | int ir_decode_biphase(u32 *samples, int count, int low, int high) | 222 | int ir_decode_biphase(u32 *samples, int count, int low, int high) |
@@ -253,6 +258,7 @@ int ir_decode_biphase(u32 *samples, int count, int low, int high) | |||
253 | } | 258 | } |
254 | return value; | 259 | return value; |
255 | } | 260 | } |
261 | EXPORT_SYMBOL_GPL(ir_decode_biphase); | ||
256 | 262 | ||
257 | /* RC5 decoding stuff, moved from bttv-input.c to share it with | 263 | /* RC5 decoding stuff, moved from bttv-input.c to share it with |
258 | * saa7134 */ | 264 | * saa7134 */ |
@@ -353,6 +359,7 @@ void ir_rc5_timer_end(unsigned long data) | |||
353 | } | 359 | } |
354 | } | 360 | } |
355 | } | 361 | } |
362 | EXPORT_SYMBOL_GPL(ir_rc5_timer_end); | ||
356 | 363 | ||
357 | void ir_rc5_timer_keyup(unsigned long data) | 364 | void ir_rc5_timer_keyup(unsigned long data) |
358 | { | 365 | { |
@@ -361,21 +368,4 @@ void ir_rc5_timer_keyup(unsigned long data) | |||
361 | dprintk(1, "ir-common: key released\n"); | 368 | dprintk(1, "ir-common: key released\n"); |
362 | ir_input_nokey(ir->dev, &ir->ir); | 369 | ir_input_nokey(ir->dev, &ir->ir); |
363 | } | 370 | } |
364 | |||
365 | EXPORT_SYMBOL_GPL(ir_input_init); | ||
366 | EXPORT_SYMBOL_GPL(ir_input_nokey); | ||
367 | EXPORT_SYMBOL_GPL(ir_input_keydown); | ||
368 | |||
369 | EXPORT_SYMBOL_GPL(ir_extract_bits); | ||
370 | EXPORT_SYMBOL_GPL(ir_dump_samples); | ||
371 | EXPORT_SYMBOL_GPL(ir_decode_biphase); | ||
372 | EXPORT_SYMBOL_GPL(ir_decode_pulsedistance); | ||
373 | |||
374 | EXPORT_SYMBOL_GPL(ir_rc5_timer_end); | ||
375 | EXPORT_SYMBOL_GPL(ir_rc5_timer_keyup); | 371 | EXPORT_SYMBOL_GPL(ir_rc5_timer_keyup); |
376 | |||
377 | /* | ||
378 | * Local variables: | ||
379 | * c-basic-offset: 8 | ||
380 | * End: | ||
381 | */ | ||