From mboxrd@z Thu Jan 1 00:00:00 1970 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 5C996C433EF for ; Sun, 13 Feb 2022 09:09:48 +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 936D416E6; Sun, 13 Feb 2022 10:08:56 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 936D416E6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1644743386; bh=4a5gFunWmn6VwJJNUeM21bywOcW6RzPtRg8Kyab4l8o=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=vWHXQlVvH4HvcSELkdxNlxq+oENzOWxdLBZhQP3/cPoyzyw2d/Kwsxk9NfzFZxtKu xa5D+JbA4QJYSyhvy2A2MleCBhkLnCcvLa89F8l6zNqIJ+z47LYXnUF6E4T74t8PuJ 5+s/ueV3dbP3yvgm7vBlGQ6V/socUl5skEwz42UA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 2C513F8019D; Sun, 13 Feb 2022 10:08:56 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DD1CEF800B0; Sun, 13 Feb 2022 10:08:53 +0100 (CET) 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 9D810F800B0 for ; Sun, 13 Feb 2022 10:08:47 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9D810F800B0 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="N/A6p0pr"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="qFfcMbNH" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 4FF301F384; Sun, 13 Feb 2022 09:08:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1644743326; 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=uCmvbLOHJFZENkXaQ6vcyVHwtO8xuZgKohdFDiCLBTU=; b=N/A6p0prkhv/yDYLwqDf5c+phmC4L6kwKVCRl2exrbORrLITE/CVBvZjlwgGC5SPXK4IU1 nBWY3CPV6FYe5RBfkro1toqZa49LouSvmQbfEK02N1XTBPw8EX5C1aVjl+3iXKowvJcT/D /+u/C+S6/DftO1oWKgz62Ft/WOy7Uwc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1644743326; 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=uCmvbLOHJFZENkXaQ6vcyVHwtO8xuZgKohdFDiCLBTU=; b=qFfcMbNHF/ZhU8rw93uuBg5DdRRz6yNIEQJJ3HrMuDLd4GX354S3FlPLDZyFxB9q7jqd35 dVKNSpMj15kpVFAA== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 3C5C2A3B84; Sun, 13 Feb 2022 09:08:46 +0000 (UTC) Date: Sun, 13 Feb 2022 10:08:46 +0100 Message-ID: From: Takashi Iwai To: Pierre-Louis Bossart Subject: Re: Cannon Lake PCH cAVS (ALC892) not detected by kernel driver In-Reply-To: <2db61794-d772-8df6-a843-fd1512cfaa57@linux.intel.com> References: <209270c3-4a46-d6a1-0f1d-d4400ecc5962@linux.intel.com> <2db61794-d772-8df6-a843-fd1512cfaa57@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: "Vehmanen, Kai" , alsa-devel@alsa-project.org, dmummenschanz@web.de 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 Sat, 12 Feb 2022 20:42:28 +0100, Pierre-Louis Bossart wrote: > > > > On 2/12/22 05:33, dmummenschanz@web.de wrote: > > I did some more digging into the code to find out what goes boink. > > For comparison I took my wife's desktop wich has a Cannon Lake chipset > > as well along with a working a ALC892 AVS device. > > > > It seems there is a codec mask issue selected in the chip->bus struct. > > Inside the function > > > > static int azx_probe_continue(struct azx *chip) > > > > of hda_intel.c the bus->codec_mask on my wife's pc contains the integer > > value "5" and both ALC892 and the HDMI is found. On my device it is "4" > > and only the HDMI is found. > > > > /* create codec instances */ > > if (bus->codec_mask) { > > err = azx_probe_codecs(chip, azx_max_codecs[chip->driver_type]); > > if (err < 0) > > goto out_free; > > } > > > > After forcing the falue before probing: "bus->codec_mask = 5;" the > > ALC892 is finally detected on my system and I have sound! alsa-info > > below: Please pardon the trash printk's in the log ;-) > > > > http://alsa-project.org/db/?f=057aac1a0e9591de3847dca5ebc424dd65c8a221 > > > > I'll do some more digging into it next week but it would probably > > save tons of time if someone could point me is the right direction > > where to look further? > > Adding Kai and Takashi, in case they haven't see this codec_mask issue. > I personally don't recall having seen this before. This means BIOS trying to hide this codec by some reason. It's seen sometimes in the past although it's rare. You can forcibly probe it via probe_mask=0x105 option for snd-hda-intel module in this case. If this is confirmed to work reliably, we can add a static quirk table in the driver cideo. HTH, Takashi