From 61e76b47a130e61d3122831b4ebd045129a17136 Mon Sep 17 00:00:00 2001 From: Dave Sparks Date: Tue, 27 Oct 2009 16:27:04 -0700 Subject: [PATCH] Add wakelock to audio HAL. Bug 2218158. Applications are supposed to hold a wakelock. However, since 1.0, the audio driver and/or HAL has held a partial wakelock. That means that many apps will be broken if we don't hold a wakelock while audio is playing. This patch holds a wakelock while the audio driver is open and releases it when it goes to standby mode.