14 Aug
2012
14 Aug
'12
12:08 p.m.
Date 14.8.2012 19:56, mengdong.lin@intel.com wrote:
From: Mengdong Lin mengdong.lin@intel.com
(sorry, this patch is resent with title updated)
This patch sets up a timer to monitor changes of the parameter 'power_save' and suspend any idle codecs if power save is re-enabled by the user.
A codec won't be suspended if it becomes idle when power save is disabled. And it will remain unsuspended if power save is enabled later but no further user operations comes. So a timer is used here to find and suspend such idle codecs when power save is re-enabled.
Now the timer has a fixed interval of 1 second.
I would prefer to create a sysfs file to track the writes rather than using this timer hack.
Jaroslav
--
Jaroslav Kysela perex@perex.cz
Linux Kernel Sound Maintainer
ALSA Project; Red Hat, Inc.