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