Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751914AbbDIGy7 (ORCPT ); Thu, 9 Apr 2015 02:54:59 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52338 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751610AbbDIGy5 (ORCPT ); Thu, 9 Apr 2015 02:54:57 -0400 Date: Thu, 09 Apr 2015 08:54:55 +0200 Message-ID: From: Takashi Iwai To: Matthew Garrett Cc: perex@perex.cz, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: hda - make power_save threshold per-codec In-Reply-To: References: <1428544428-6351-1-git-send-email-mjg59@coreos.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.4 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1774 Lines: 46 At Wed, 8 Apr 2015 23:24:52 -0700, Matthew Garrett wrote: > > On Wed, Apr 8, 2015 at 10:20 PM, Takashi Iwai wrote: > > > > At Wed, 8 Apr 2015 18:53:48 -0700, > > Matthew Garrett wrote: > > > > > > Modern hardware will often have multiple HDA devices, and the desired > > > power saving configuration may vary depending on the codecs attached to > > > each of them. Push the power_save value down to the individual codec > > > structures, keeping the module parameter as a global control mechanism > > > for compatibility purposes. > > > > This patch doesn't apply any longer at all to the recent code, since > > the power saving stuff has been already translated to the standard > > runtime PM. Take a look at linux-next tree. > > Ah! Wonderful! > > > Also we can't break the current behavior controlling the power save > > via option. Many programs rely on this mechanism, thus changing this > > would break its behavior. > > Yeah, I kept that behaviour - anything that touches > /sys/module/snd_hda_intel/parameters/power_save just changes the > settings for all codecs. > > > In the latest code, the common control via power_save module option is > > still there for compatibility, but you can also adjust the value for > > each codec in runtime attribute of each codec sysfs in addition. > > That's ideal - I'll pull down next and rewrite my udev rules. Thanks! Let me know if you find anything broken with the new code. It's pretty new, so any intensive testing is appreciated. thanks, Takashi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/