From patchwork Wed Mar 18 08:50:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takashi Iwai X-Patchwork-Id: 6037041 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CCB49BF90F for ; Wed, 18 Mar 2015 08:51:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C6275204F6 for ; Wed, 18 Mar 2015 08:51:23 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 69C6E204EC for ; Wed, 18 Mar 2015 08:51:22 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id D1922260656; Wed, 18 Mar 2015 09:51:17 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 84EF42604FC; Wed, 18 Mar 2015 09:51:09 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 69F8F26052F; Wed, 18 Mar 2015 09:51:08 +0100 (CET) Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 590F72604DE for ; Wed, 18 Mar 2015 09:51:01 +0100 (CET) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 5CAF3ABF1; Wed, 18 Mar 2015 08:51:00 +0000 (UTC) From: Takashi Iwai To: alsa-devel@alsa-project.org Date: Wed, 18 Mar 2015 09:50:54 +0100 Message-Id: <1426668658-15911-1-git-send-email-tiwai@suse.de> X-Mailer: git-send-email 2.3.3 Cc: David Henningsson Subject: [alsa-devel] [PATCH 0/4] More aggressive PM for HD-audio X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, here is a patchset for supporting more aggressive PM for HD-audio. This allows to change the power state of each widget more dynamically with jack and stream states. It's activated only when the codec driver (or via sysfs or f/w patch) sets codec->power_mgmt flag. In theory, this should work for the recent Realtek codecs, but currently I have no machine for test. David, could you or your team check whether this works for ALC282 or such? Just add like: The patchset is for for-next branch of sound git tree, but they might be applicable to 4.0-rc (or even older), too. The current patches are found in topic/hda-power branch. thanks, Takashi === Takashi Iwai (4): ALSA: hda - Simplify PCM setup overrides ALSA: hda - Support advanced power state controls ALSA: hda - Use the new power control for VIA codecs ALSA: hda - Adjust power of beep widget and outputs sound/pci/hda/hda_beep.c | 29 +- sound/pci/hda/hda_beep.h | 1 + sound/pci/hda/hda_codec.c | 4 + sound/pci/hda/hda_codec.h | 2 + sound/pci/hda/hda_generic.c | 480 ++++++++++++++++++++++++------ sound/pci/hda/hda_generic.h | 5 +- sound/pci/hda/patch_realtek.c | 41 --- sound/pci/hda/patch_sigmatel.c | 5 + sound/pci/hda/patch_via.c | 662 +---------------------------------------- 9 files changed, 427 insertions(+), 802 deletions(-) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5415,6 +5415,7 @@ static int patch_alc269(struct hda_codec *codec) spec = codec->spec; spec->gen.shared_mic_vref_pin = 0x18; + codec->power_mgmt = 1; snd_hda_pick_fixup(codec, alc269_fixup_models, alc269_fixup_tbl, alc269_fixups);