From patchwork Tue Dec 11 13:53:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takashi Iwai X-Patchwork-Id: 10723853 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F2B0C15A6 for ; Tue, 11 Dec 2018 13:54:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E214228434 for ; Tue, 11 Dec 2018 13:54:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D5F6A28496; Tue, 11 Dec 2018 13:54:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 377E328434 for ; Tue, 11 Dec 2018 13:54:02 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 2DD46267BB8; Tue, 11 Dec 2018 14:53:57 +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 51650267BBF; Tue, 11 Dec 2018 14:53:54 +0100 (CET) Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id EA7CC267BB5 for ; Tue, 11 Dec 2018 14:53:49 +0100 (CET) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E1B5BABB1; Tue, 11 Dec 2018 13:53:48 +0000 (UTC) From: Takashi Iwai To: alsa-devel@alsa-project.org Date: Tue, 11 Dec 2018 14:53:34 +0100 Message-Id: <20181211135341.11383-1-tiwai@suse.de> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Cc: Liam Girdwood , Mark Brown , Jie Yang , Pierre-Louis Bossart Subject: [alsa-devel] [PATCH v2 0/7] ALSA: HD-audio display power fixes 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, this patch a revised patchset for fixing possible HD-audio display power unbalance. Basically the "fix" is done by refactoring the whole relevant code. It starts from the Intel HD-audio runtime PM refactoring, followed by the display PM API change, and lots of code cleanups. Since it changes the display power API function, it hits both legacy and ASoC drivers. The patches are kept in topic/hda-pm-refactor branch of my sound git tree. This will be an immutable branch once when merged to for-next, so that it can be merged to ASoC tree if any conflicting change needs to be applied. The major change in v2 series is the complete removal of AZX_DCAPS_I915_POWERWELL flag in patch#3, and other minor fixes suggested by Pierre. Takashi === Takashi Iwai (7): ALSA: hda/intel: Refactoring PM code ALSA: hda: Refactor display power management ALSA: hda/intel: Drop superfluous AZX_DCAPS_I915_POWERWELL checks ALSA: hda/intel: Properly free the display power at error path ALSA: hda: Make snd_hdac_display_power() void function ASoC: hdac_hdmi: Add missing display power-off at driver removal ALSA: hda/hdmi: Always set display_power_control for Intel HSW+ codecs include/sound/hda_codec.h | 1 + include/sound/hda_component.h | 11 +- include/sound/hdaudio.h | 7 +- sound/hda/hdac_component.c | 39 +++--- sound/hda/hdac_device.c | 17 --- sound/pci/hda/hda_codec.c | 16 ++- sound/pci/hda/hda_controller.c | 11 -- sound/pci/hda/hda_controller.h | 6 +- sound/pci/hda/hda_intel.c | 220 +++++++++++++-------------------- sound/pci/hda/patch_hdmi.c | 8 +- sound/soc/codecs/hdac_hdmi.c | 24 +--- sound/soc/intel/skylake/skl.c | 40 ++---- 12 files changed, 148 insertions(+), 252 deletions(-)