From: Jaroslav Kysela <perex@perex.cz>
To: mengdong.lin@intel.com
Cc: tiwai@suse.de, alsa-devel@alsa-project.org
Subject: Re: [RFC PATCH 1/1] ALSA: hda - add a timer to find and suspend idle codecs
Date: Tue, 14 Aug 2012 12:08:44 +0200 [thread overview]
Message-ID: <502A23AC.1000405@perex.cz> (raw)
In-Reply-To: <1344967003-5470-1-git-send-email-mengdong.lin@intel.com>
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.
next prev parent reply other threads:[~2012-08-14 9:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-14 17:56 [RFC PATCH 1/1] ALSA: hda - add a timer to find and suspend idle codecs mengdong.lin
2012-08-14 10:05 ` David Henningsson
2012-08-14 13:42 ` Lin, Mengdong
2012-08-14 10:08 ` Jaroslav Kysela [this message]
2012-08-14 13:55 ` Lin, Mengdong
2012-08-14 10:26 ` Takashi Iwai
2012-08-14 14:35 ` Lin, Mengdong
2012-08-14 14:42 ` Takashi Iwai
2012-08-14 15:19 ` Takashi Iwai
2012-08-14 15:20 ` [PATCH 1/2] ALSA: hda - Implement snd_hda_power_sync() helper function Takashi Iwai
2012-08-14 15:21 ` [PATCH 2/2] ALSA: hda - Check the power state when power_save option is changed Takashi Iwai
2012-08-15 4:19 ` Lin, Mengdong
2012-08-15 6:58 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2012-08-14 17:44 [RFC PATCH 1/1] ALSA: hda - add a timer to find and suspend idle codecs mengdong.lin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=502A23AC.1000405@perex.cz \
--to=perex@perex.cz \
--cc=alsa-devel@alsa-project.org \
--cc=mengdong.lin@intel.com \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.