Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330805
b: refs/heads/master
c: 4da212e
h: refs/heads/master
i:
  330803: d7ebc3d
v: v3
  • Loading branch information
Sean Young authored and Mauro Carvalho Chehab committed Aug 13, 2012
1 parent 6cd56df commit 58d4d19
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 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: b83bfd1b0127b0963fcac39280280e365e7e04d8
refs/heads/master: 4da212e2ffaa34edb887a3a86424124fe8341e34
10 changes: 3 additions & 7 deletions trunk/drivers/media/video/saa7134/saa7134-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,8 @@ static void saa7134_input_timer(unsigned long data)
static void ir_raw_decode_timer_end(unsigned long data)
{
struct saa7134_dev *dev = (struct saa7134_dev *)data;
struct saa7134_card_ir *ir = dev->remote;

ir_raw_event_handle(dev->remote->dev);

ir->active = false;
}

static int __saa7134_ir_start(void *priv)
Expand Down Expand Up @@ -501,7 +498,6 @@ static int __saa7134_ir_start(void *priv)
}

ir->running = true;
ir->active = false;

if (ir->polling) {
setup_timer(&ir->timer, saa7134_input_timer,
Expand Down Expand Up @@ -532,7 +528,6 @@ static void __saa7134_ir_stop(void *priv)
if (ir->polling || ir->raw_decode)
del_timer_sync(&ir->timer);

ir->active = false;
ir->running = false;

return;
Expand Down Expand Up @@ -1035,10 +1030,11 @@ static int saa7134_raw_decode_irq(struct saa7134_dev *dev)
* the event. This time is enough for NEC protocol. May need adjustments
* to work with other protocols.
*/
if (!ir->active) {
smp_mb();

if (!timer_pending(&ir->timer)) {
timeout = jiffies + msecs_to_jiffies(15);
mod_timer(&ir->timer, timeout);
ir->active = true;
}

return 1;
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/media/video/saa7134/saa7134.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ struct saa7134_card_ir {
u32 mask_keycode, mask_keydown, mask_keyup;

bool running;
bool active;

struct timer_list timer;

Expand Down

0 comments on commit 58d4d19

Please sign in to comment.