forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/ttpci/av7110.h
....@@ -81,22 +81,10 @@
8181
8282 /* infrared remote control */
8383 struct infrared {
84
- u16 key_map[256];
85
- struct input_dev *input_dev;
84
+ struct rc_dev *rcdev;
8685 char input_phys[32];
87
- struct timer_list keyup_timer;
88
- struct tasklet_struct ir_tasklet;
89
- void (*ir_handler)(struct av7110 *av7110, u32 ircom);
90
- u32 ir_command;
9186 u32 ir_config;
92
- u32 device_mask;
93
- u8 protocol;
94
- u8 inversion;
95
- u16 last_key;
96
- u16 last_toggle;
97
- bool keypressed;
9887 };
99
-
10088
10189 /* place to store all the necessary device information */
10290 struct av7110 {
....@@ -304,9 +292,10 @@
304292 extern int ChangePIDs(struct av7110 *av7110, u16 vpid, u16 apid, u16 ttpid,
305293 u16 subpid, u16 pcrpid);
306294
307
-extern int av7110_check_ir_config(struct av7110 *av7110, int force);
308
-extern int av7110_ir_init(struct av7110 *av7110);
309
-extern void av7110_ir_exit(struct av7110 *av7110);
295
+void av7110_ir_handler(struct av7110 *av7110, u32 ircom);
296
+int av7110_set_ir_config(struct av7110 *av7110);
297
+int av7110_ir_init(struct av7110 *av7110);
298
+void av7110_ir_exit(struct av7110 *av7110);
310299
311300 /* msp3400 i2c subaddresses */
312301 #define MSP_WR_DEM 0x10