Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C20DC433DB for ; Thu, 4 Feb 2021 09:15:34 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9B55E64F4E for ; Thu, 4 Feb 2021 09:15:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9B55E64F4E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id F0A5816E4; Thu, 4 Feb 2021 10:14:39 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz F0A5816E4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1612430130; bh=ryhlAGLT3eZKDffMw6jZNbKDnep7BHNG5/0RUiliE/k=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=PAoQ996uQcdITSd+4BXiUCCv6/5nw2O0eJ36+DakEbqDNo5m7KIkpTsNBAOlDl9Ap JzHI3DwmbW2+UA5uGfdFehSxxJu7RwRJL/kWhHvEqS8x6vhM5lG1cGOfi+l21kJm4Y k7tPo/qG3ogQ/AJRlnhl0hsPVB6sn7yqxgqWDONQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 6FEA4F80155; Thu, 4 Feb 2021 10:14:39 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 37356F80171; Thu, 4 Feb 2021 10:14:37 +0100 (CET) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 2B120F80154 for ; Thu, 4 Feb 2021 10:14:29 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2B120F80154 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 3F510AC97; Thu, 4 Feb 2021 09:14:28 +0000 (UTC) Date: Thu, 04 Feb 2021 10:14:28 +0100 Message-ID: From: Takashi Iwai To: Kai Vehmanen Subject: Re: [RFC PATCH] ALSA: hda: call ext hda codec link up/down if available In-Reply-To: References: <20210204075821.1503539-1-kai.vehmanen@linux.intel.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/25.3 (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 Cc: alsa-devel@alsa-project.org, Ranjani Sridharan X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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" On Thu, 04 Feb 2021 09:07:09 +0100, Kai Vehmanen wrote: > > Hi, > > On Thu, 4 Feb 2021, Kai Vehmanen wrote: > > To support more fine-grained control of link power, this patch > > implements new helper functions for codec drivers to turn codec links > > up and down. The HDA common suspend/resume code is modified to use > > the new functions. This allows to fully reuse the driver code both > > for plain and extended HDA controllers. > > Takashi and others, this patch is a follow-up to the earlier thread about > hdac link management: > https://mailman.alsa-project.org/pipermail/alsa-devel/2021-January/179715.html > > We have absolutely no calls from sound/pci/hda/ to hdaudio_ext.h before > this patch, so I'm wondering if this is the right approach to take. An obvious drawback by this patch is that it'll make the hda-ext code always loaded whenever it's enabled, no matter whether it's really used or not. Maybe adding a new callback (link) in hdac_bus_ops can help? > It does seem to be the natural path forward and mimics what was done in > e.g. hdac_hdmi. But we want to keep reusing driver code for all HDA > implementations, so adding hdac-ext support to codec drivers seem like the > best path. Yes, I find we're heading to the right direction. thanks, Takashi