---------- Forwarded message ---------- From: Leon Romanovsky <[email protected]> Date: Tue, Oct 18, 2011 at 21:30 Subject: [PATCH 2/3] staging: nvec: Fix of the speaker for the suspend/resume stages. To: [email protected] Cc: Leon Romanovsky <[email protected]>
Mute speakers before entering to the suspend state and unmute at the resume state. Signed-off-by: Leon Romanovsky <[email protected]> --- drivers/staging/nvec/nvec.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 3c76433..52af8ec 100644 --- a/drivers/staging/nvec/nvec.c +++ b/drivers/staging/nvec/nvec.c @@ -801,6 +801,7 @@ static int tegra_nvec_suspend(struct platform_device *pdev, pm_message_t state) struct nvec_msg *msg; dev_dbg(nvec->dev, "suspending\n"); + nvec_write_async(nvec, "\x0d\x10\x59\x94", 4); /* keep these sync or you'll break suspend */ msg = nvec_write_sync(nvec, EC_DISABLE_EVENT_REPORTING, 3); @@ -823,6 +824,7 @@ static int tegra_nvec_resume(struct platform_device *pdev) /* when making the next line nvec_write_sync, resume seems to stop working */ nvec_write_async(nvec, EC_ENABLE_EVENT_REPORTING, 3); + nvec_write_async(nvec, "\x0d\x10\x59\x95", 4); return 0; } -- 1.7.3.4 -- Leon Romanovsky | Independent Linux Consultant www.leon.nu | [email protected] _______________________________________________ Mailing list: https://launchpad.net/~ac100 Post to : [email protected] Unsubscribe : https://launchpad.net/~ac100 More help : https://help.launchpad.net/ListHelp

