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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53F0AC433EF for ; Wed, 12 Jan 2022 10:13:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352400AbiALKNq (ORCPT ); Wed, 12 Jan 2022 05:13:46 -0500 Received: from smtp-out1.suse.de ([195.135.220.28]:37354 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352380AbiALKNp (ORCPT ); Wed, 12 Jan 2022 05:13:45 -0500 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 9EE2B212CC; Wed, 12 Jan 2022 10:13:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1641982424; 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=WAuqoJikNaKlAZZLVtTf/B6Ec8TCbF3YJ/K9z4Q4nGk=; b=XbR0K9NhA6MzKVwWKrJO+4FaVIZs3RdMrC2xEEYk/I4YAcB90d8eWDd7VQNV7Q6BjPUnwC W/GgGJRESiV5ymiU+mW4+AZn/aK/c5HfSwsNoBt3WkkZkbQ71x+JBj7A21hBByeZV5RGUp jfC+wmgT+BHaWhlXXsb5sQrTeQOsvDI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1641982424; 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=WAuqoJikNaKlAZZLVtTf/B6Ec8TCbF3YJ/K9z4Q4nGk=; b=JQH7OOvploefYR5ShciVwymR3bdB5HhWRsB0TeFzVD5+gEbCuhIxEeXCHZiGClg5VK+kmX CYoV4Jr5mmaA0SBQ== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 9160AA3B8F; Wed, 12 Jan 2022 10:13:44 +0000 (UTC) Date: Wed, 12 Jan 2022 11:13:44 +0100 Message-ID: From: Takashi Iwai To: Alexander Sergeyev Cc: Jeremy Szu , tiwai@suse.com, "moderated list:SOUND" , Kailang Yang , open list , Huacai Chen , Jian-Hong Pan , Hui Wang , PeiSen Hou Subject: Re: [PATCH 1/4] ALSA: hda/realtek: fix mute/micmute LEDs for HP 855 G8 In-Reply-To: <20220112101249.ya73jvpmqmeh4ggg@localhost.localdomain> References: <20210519170357.58410-1-jeremy.szu@canonical.com> <20220111195229.a77wrpjclqwrx4bx@localhost.localdomain> <20220112101249.ya73jvpmqmeh4ggg@localhost.localdomain> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 Jan 2022 11:12:49 +0100, Alexander Sergeyev wrote: > > On Wed, Jan 12, 2022 at 10:45:46AM +0100, Takashi Iwai wrote: > > The problem is about the built-in drivers, or do you see the very > > same problem even with modules? > > The problem is definitely there for the built-in drivers which I've > tested quite a lot. It's the primary usecase for me, as I tend to > build minimal device-specific and self-contained kernels in Gentoo. > > For builds with modules things are not very consistent. Live Ubuntu > with an older (and probably vendor-patched) kernel works just fine, > but when I pull Ubuntu kernel sources and build it with the mostly > same config (including modules) it boots with no sound in > Gentoo. Mostly same -- because I need nvme drivers to be built-in as I > don't use initrd. Sounds like some timing issue, then. It's pretty hard to debug, unfortunately. You may try to get the codec proc dump with COEF by passing snd_hda_codec.dump_coef=1 module option for both working and non-working cases. Check the difference of the COEF and apply the difference with hda-verb manually. > > AFAIK, quite a few AMD platforms tend to have some issues with > > various devices showing initialization problems at the early > > boot. Just reloading / rebinding the device later often helps. > > Is it possible to do with the built-in drivers? You can unbind and re-bind the PCI (HD-audio controller) device via sysfs. Takashi 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 308AEC433EF for ; Wed, 12 Jan 2022 10:14:41 +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 C87C318B7; Wed, 12 Jan 2022 11:13:49 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C87C318B7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1641982479; bh=k5ofVPaXI+WYuqgi2UgjWrPHsuusyiezHiE7ipT/A6I=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=vjMAO5yt7dqVZmPlUQmCaFYPoBTte5OzI8WSRW8MKXnKW6jUAtPcZMtj+Nnsz58HN xMjc/+QJ1moRsi2OEX9JY7IkqjkxGYui21C9FpT11tCKUfqZU2QAinsfPOMOxSL1/p K8LCWdYoNhfQbnJHdsGNRmQZy108F/CMVIglPf6Q= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 55514F8025E; Wed, 12 Jan 2022 11:13:49 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 01F95F80236; Wed, 12 Jan 2022 11:13:47 +0100 (CET) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (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 B0841F80236 for ; Wed, 12 Jan 2022 11:13:45 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B0841F80236 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="XbR0K9Nh"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="JQH7OOvp" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 9EE2B212CC; Wed, 12 Jan 2022 10:13:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1641982424; 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=WAuqoJikNaKlAZZLVtTf/B6Ec8TCbF3YJ/K9z4Q4nGk=; b=XbR0K9NhA6MzKVwWKrJO+4FaVIZs3RdMrC2xEEYk/I4YAcB90d8eWDd7VQNV7Q6BjPUnwC W/GgGJRESiV5ymiU+mW4+AZn/aK/c5HfSwsNoBt3WkkZkbQ71x+JBj7A21hBByeZV5RGUp jfC+wmgT+BHaWhlXXsb5sQrTeQOsvDI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1641982424; 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=WAuqoJikNaKlAZZLVtTf/B6Ec8TCbF3YJ/K9z4Q4nGk=; b=JQH7OOvploefYR5ShciVwymR3bdB5HhWRsB0TeFzVD5+gEbCuhIxEeXCHZiGClg5VK+kmX CYoV4Jr5mmaA0SBQ== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 9160AA3B8F; Wed, 12 Jan 2022 10:13:44 +0000 (UTC) Date: Wed, 12 Jan 2022 11:13:44 +0100 Message-ID: From: Takashi Iwai To: Alexander Sergeyev Subject: Re: [PATCH 1/4] ALSA: hda/realtek: fix mute/micmute LEDs for HP 855 G8 In-Reply-To: <20220112101249.ya73jvpmqmeh4ggg@localhost.localdomain> References: <20210519170357.58410-1-jeremy.szu@canonical.com> <20220111195229.a77wrpjclqwrx4bx@localhost.localdomain> <20220112101249.ya73jvpmqmeh4ggg@localhost.localdomain> 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: "moderated list:SOUND" , Kailang Yang , Jeremy Szu , Huacai Chen , open list , tiwai@suse.com, Hui Wang , PeiSen Hou , Jian-Hong Pan 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 Wed, 12 Jan 2022 11:12:49 +0100, Alexander Sergeyev wrote: > > On Wed, Jan 12, 2022 at 10:45:46AM +0100, Takashi Iwai wrote: > > The problem is about the built-in drivers, or do you see the very > > same problem even with modules? > > The problem is definitely there for the built-in drivers which I've > tested quite a lot. It's the primary usecase for me, as I tend to > build minimal device-specific and self-contained kernels in Gentoo. > > For builds with modules things are not very consistent. Live Ubuntu > with an older (and probably vendor-patched) kernel works just fine, > but when I pull Ubuntu kernel sources and build it with the mostly > same config (including modules) it boots with no sound in > Gentoo. Mostly same -- because I need nvme drivers to be built-in as I > don't use initrd. Sounds like some timing issue, then. It's pretty hard to debug, unfortunately. You may try to get the codec proc dump with COEF by passing snd_hda_codec.dump_coef=1 module option for both working and non-working cases. Check the difference of the COEF and apply the difference with hda-verb manually. > > AFAIK, quite a few AMD platforms tend to have some issues with > > various devices showing initialization problems at the early > > boot. Just reloading / rebinding the device later often helps. > > Is it possible to do with the built-in drivers? You can unbind and re-bind the PCI (HD-audio controller) device via sysfs. Takashi