aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-08-09 20:47:08 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-08-21 16:25:06 -0400
commit345e3bfdadf4ae12df6251d4bcb6b9fb48037690 (patch)
tree5d0f8fb53267805cb5dfba80a411dbd7563a2e0f
parente9018af0b8897b02dc8e83e6cd75391afcadf894 (diff)
[media] au0828: handle IR int during suspend/resume
It doesn't make sense to handle an IR code given before suspending after the device resume. So, turn off IR int while suspending. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r--drivers/media/usb/au0828/au0828-input.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/usb/au0828/au0828-input.c b/drivers/media/usb/au0828/au0828-input.c
index 47ef07a693af..7a5437a4d938 100644
--- a/drivers/media/usb/au0828/au0828-input.c
+++ b/drivers/media/usb/au0828/au0828-input.c
@@ -380,6 +380,9 @@ int au0828_rc_suspend(struct au0828_dev *dev)
380 380
381 cancel_delayed_work_sync(&ir->work); 381 cancel_delayed_work_sync(&ir->work);
382 382
383 /* Disable IR */
384 au8522_rc_clear(ir, 0xe0, 1 << 4);
385
383 return 0; 386 return 0;
384} 387}
385 388
@@ -390,6 +393,9 @@ int au0828_rc_resume(struct au0828_dev *dev)
390 if (!ir) 393 if (!ir)
391 return 0; 394 return 0;
392 395
396 /* Enable IR */
397 au8522_rc_set(ir, 0xe0, 1 << 4);
398
393 schedule_delayed_work(&ir->work, msecs_to_jiffies(ir->polling)); 399 schedule_delayed_work(&ir->work, msecs_to_jiffies(ir->polling));
394 400
395 return 0; 401 return 0;