Advertisement
Guest User

Untitled

a guest
Oct 15th, 2011
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c
  2. index 3c76433..3a141e8 100644
  3. --- a/drivers/staging/nvec/nvec.c
  4. +++ b/drivers/staging/nvec/nvec.c
  5. @@ -801,6 +801,7 @@ static int tegra_nvec_suspend(struct platform_device *pdev, pm_message_t state)
  6. struct nvec_msg *msg;
  7.  
  8. dev_dbg(nvec->dev, "suspending\n");
  9. + nvec_write_async(nvec, "\x0d\x10\x59\x94", 4);
  10.  
  11. /* keep these sync or you'll break suspend */
  12. msg = nvec_write_sync(nvec, EC_DISABLE_EVENT_REPORTING, 3);
  13. @@ -822,7 +823,8 @@ static int tegra_nvec_resume(struct platform_device *pdev)
  14. enable_irq(nvec->irq);
  15. /* when making the next line nvec_write_sync, resume seems to stop working */
  16. nvec_write_async(nvec, EC_ENABLE_EVENT_REPORTING, 3);
  17. -
  18. + /* unmute speaker*/
  19. + nvec_write_async(nvec, "\x0d\x10\x59\x95", 4);
  20. return 0;
  21. }
  22.  
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement