ac100 team mailing list archive
-
ac100 team
-
Mailing list archive
-
Message #00365
Fwd: [PATCH 2/3] staging: nvec: Fix of the speaker for the suspend/resume stages.
---------- Forwarded message ----------
From: Leon Romanovsky <leon@xxxxxxx>
Date: Tue, Oct 18, 2011 at 21:30
Subject: [PATCH 2/3] staging: nvec: Fix of the speaker for the
suspend/resume stages.
To: marvin24@xxxxxx
Cc: Leon Romanovsky <leon@xxxxxxx>
Mute speakers before entering to the suspend state and unmute at the
resume state.
Signed-off-by: Leon Romanovsky <leon@xxxxxxx>
---
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 | leon@xxxxxxx
Follow ups