Commit 345e3bfd authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[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: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent e9018af0
...@@ -380,6 +380,9 @@ int au0828_rc_suspend(struct au0828_dev *dev) ...@@ -380,6 +380,9 @@ int au0828_rc_suspend(struct au0828_dev *dev)
cancel_delayed_work_sync(&ir->work); cancel_delayed_work_sync(&ir->work);
/* Disable IR */
au8522_rc_clear(ir, 0xe0, 1 << 4);
return 0; return 0;
} }
...@@ -390,6 +393,9 @@ int au0828_rc_resume(struct au0828_dev *dev) ...@@ -390,6 +393,9 @@ int au0828_rc_resume(struct au0828_dev *dev)
if (!ir) if (!ir)
return 0; return 0;
/* Enable IR */
au8522_rc_set(ir, 0xe0, 1 << 4);
schedule_delayed_work(&ir->work, msecs_to_jiffies(ir->polling)); schedule_delayed_work(&ir->work, msecs_to_jiffies(ir->polling));
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment