Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id CD35DC433EF for ; Tue, 5 Apr 2022 16:20:11 +0000 (UTC) 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 0539417A0; Tue, 5 Apr 2022 18:19:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0539417A0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1649175608; bh=rg1a7NuVcrgejck2X2pgwmxSZcENh9+kvoPYI+VIxE8=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ZfleV69trOh+6w/ZFP1l/ZyfoZewYb7UHCVfjYZXPP2HPeLEiMf+5vc+AkTYDbOA0 UeXZ6WhW50NdKt+gdm38B9AJCYR6sAJAu1hyQZfmUeIkzHKR6Eh7WNAjtD/rj3FMeq nIF+Q8lVdDVo8xIsnuro7Jd5dXWQdAMpA23MizVI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 98FBBF8014B; Tue, 5 Apr 2022 18:19:17 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id CB248F8016A; Tue, 5 Apr 2022 18:19:15 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D1EA8F800D1 for ; Tue, 5 Apr 2022 18:19:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D1EA8F800D1 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="AKj9LJnI"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="p6524sDS" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 770131F38D; Tue, 5 Apr 2022 16:19:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1649175548; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=O/Lxv7V91iXt+be8I3irqo2pfP3pYV7z7H3BgavzGfM=; b=AKj9LJnI9wTB0kI+PLFWEtGPX+E+x1oEh5cS/fW36DYXivEO7/t3AmcklojEr0/whX6ldD eXhzXnRDhsmXXgGImGdLNSD20hmYC4FrLG3znppjpKbd59V0PXxiNwy5+37XQtiRqdicDt bMoYhXqkWdz7GXAjcfn/UyvYNSwCrLE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1649175548; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=O/Lxv7V91iXt+be8I3irqo2pfP3pYV7z7H3BgavzGfM=; b=p6524sDSUcPhZwISQfSF9lOtX4uHz7anLmhHnu5Hzn0uupUT0BcHWeEsr8N20lLcjO2/PE 7tqOJnzdTYe2mwDQ== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 68498A3B83; Tue, 5 Apr 2022 16:19:08 +0000 (UTC) Date: Tue, 05 Apr 2022 18:19:08 +0200 Message-ID: From: Takashi Iwai To: Kai Vehmanen Subject: Re: [PATCH v2] ALSA: hda/i915 - skip acomp init if no matching display In-Reply-To: <20220405123622.2874457-1-kai.vehmanen@linux.intel.com> References: <20220405123622.2874457-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, Lucas De Marchi 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 Tue, 05 Apr 2022 14:36:22 +0200, Kai Vehmanen wrote: > > In systems with only a discrete i915 GPU, the acomp init will > always timeout for the PCH HDA controller instance. > > Avoid the timeout by checking the PCI device hierarchy > whether any display class PCI device can be found on the system, > and at the same level as the HDA PCI device. If found, proceed > with the acomp init, which will wait until i915 probe is complete > and component binding can proceed. If no matching display > device is found, the audio component bind can be safely skipped. > > The bind timeout will still be hit if the display is present > in the system, but i915 driver does not bind to it by configuration > choice or probe error. In this case the 60sec timeout will be > hit. > > Signed-off-by: Kai Vehmanen > Acked-by: Lucas De Marchi Thanks, applied now. Takashi