aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common/ir-functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/common/ir-functions.c')
-rw-r--r--drivers/media/common/ir-functions.c26
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}
80EXPORT_SYMBOL_GPL(ir_input_init);
81 81
82void ir_input_nokey(struct input_dev *dev, struct ir_input_state *ir) 82void 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}
89EXPORT_SYMBOL_GPL(ir_input_nokey);
89 90
90void ir_input_keydown(struct input_dev *dev, struct ir_input_state *ir, 91void 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}
108EXPORT_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}
127EXPORT_SYMBOL_GPL(ir_extract_bits);
125 128
126static int inline getbit(u32 *samples, int bit) 129static 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}
152EXPORT_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 */
151int ir_decode_pulsedistance(u32 *samples, int count, int low, int high) 155int 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}
219EXPORT_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 */
217int ir_decode_biphase(u32 *samples, int count, int low, int high) 222int 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}
261EXPORT_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}
362EXPORT_SYMBOL_GPL(ir_rc5_timer_end);
356 363
357void ir_rc5_timer_keyup(unsigned long data) 364void 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
365EXPORT_SYMBOL_GPL(ir_input_init);
366EXPORT_SYMBOL_GPL(ir_input_nokey);
367EXPORT_SYMBOL_GPL(ir_input_keydown);
368
369EXPORT_SYMBOL_GPL(ir_extract_bits);
370EXPORT_SYMBOL_GPL(ir_dump_samples);
371EXPORT_SYMBOL_GPL(ir_decode_biphase);
372EXPORT_SYMBOL_GPL(ir_decode_pulsedistance);
373
374EXPORT_SYMBOL_GPL(ir_rc5_timer_end);
375EXPORT_SYMBOL_GPL(ir_rc5_timer_keyup); 371EXPORT_SYMBOL_GPL(ir_rc5_timer_keyup);
376
377/*
378 * Local variables:
379 * c-basic-offset: 8
380 * End:
381 */