Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61343
b: refs/heads/master
c: 829ea96
h: refs/heads/master
i:
  61341: de0e19c
  61339: 9cb545b
  61335: 0ebdca7
  61327: 02349a1
  61311: f1606b5
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jul 18, 2007
1 parent 95a1eb9 commit c6e2370
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e7d11ecbde987e56845cff012b4a28d7001667b8
refs/heads/master: 829ea96477e775df0698b54dbfa913b6b55a4d6d
11 changes: 7 additions & 4 deletions trunk/drivers/media/video/cx88/cx88-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ static void cx88_ir_handle_key(struct cx88_IR *ir)

/* read gpio value */
gpio = cx_read(ir->gpio_addr);
if (core->board == CX88_BOARD_NPGTECH_REALTV_TOP10FM) {
switch (core->board) {
case CX88_BOARD_NPGTECH_REALTV_TOP10FM:
/* This board apparently uses a combination of 2 GPIO
to represent the keys. Additionally, the second GPIO
can be used for parity.
Expand All @@ -90,12 +91,14 @@ static void cx88_ir_handle_key(struct cx88_IR *ir)
auxgpio = cx_read(MO_GP1_IO);
/* Take out the parity part */
gpio=(gpio & 0x7fd) + (auxgpio & 0xef);
} else if (core->board == CX88_BOARD_WINFAST_DTV1000) {
break;
case CX88_BOARD_WINFAST_DTV1000:
gpio = (gpio & 0x6ff) | ((cx_read(MO_GP1_IO) << 8) & 0x900);
auxgpio = gpio;
} else
break;
default:
auxgpio = gpio;

}
if (ir->polling) {
if (ir->last_gpio == auxgpio)
return;
Expand Down

0 comments on commit c6e2370

Please sign in to comment.