Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7465485rwl; Tue, 10 Jan 2023 00:52:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXswEYvJb04kYEGStLrhwv6OhaJwt8GHjIR4/SkTkcm4XIcvzNSTBpTctQhIs6sHUNwY1L5j X-Received: by 2002:a17:90b:2291:b0:226:3b78:36ab with SMTP id kx17-20020a17090b229100b002263b7836abmr39932066pjb.3.1673340749346; Tue, 10 Jan 2023 00:52:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673340749; cv=none; d=google.com; s=arc-20160816; b=D1FhAuN9mJL6UwvSMMq21k5IpWOj98bEwH1JPpnsjWYc4JKwyoOs078WT+/UhjaJWl oL6mJ2ugUqikhUaI5DxukqQtJFOhNbBxWaGQ+vivcjltC0JJZ0RODsUF9zsDyoHGvEHS K6dqeufIk+MrtQw4vT9B90f7O6/82uuX7LAPLnOI89fyXGrw1kdiEe9Q56jurRF967E8 zK+seNA+5MAPUGxPDVMKjgrQOqytaKynOJYoTL5OMsPbeBAJiZrJ03tNILrE3iMmsJb2 7w6JX9Wz4Cmq1etP4eNG+DB6vuFnIW9n0h2lndBjaZGk/It9pR4uelei3PGy3iMaLaDZ Ihcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=xvS//62VSffaOVkPd7AJ+WkPm2q+fEQoyqXPxSgE+Tc=; b=KhXC9CHjFS7tZJ7NhhZ899j1dPLR0r877v2pkNIVnc3uBtQ0wLArfg9C9Nt6oCtSjH Y/OU0wqGCGLH0DEEsYc/1QSRfT6Xns82Ao9/e9PP28JLXwcsELC8A56tuFBq5jbNaZoH mvxz9DEBWCxtm/20FSZuMHGc0htXaIK3iQnObhVMHwT49cO6PRQlu+jmDwXSNgRM9zBh F+zTmQzQm5yBF119QLjL92DTrR0GK3JR1HWR0MPB/V0OhzN8frOh5negu/ErfEjHXr8d LHfRlTp6Nmze5djTlsjE7hW6sBAjCoH6ykzb83f8kYZqiXbamdeSaNDvjW/bqZMBe6CM 0enw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=sLt1j2De; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lr18-20020a17090b4b9200b00228cb3af4aasi1534972pjb.99.2023.01.10.00.52.22; Tue, 10 Jan 2023 00:52:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=sLt1j2De; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237653AbjAJIhr (ORCPT + 53 others); Tue, 10 Jan 2023 03:37:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235654AbjAJIhP (ORCPT ); Tue, 10 Jan 2023 03:37:15 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87FEB4C71C for ; Tue, 10 Jan 2023 00:36:39 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 0F895678BF; Tue, 10 Jan 2023 08:36:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1673339798; 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=xvS//62VSffaOVkPd7AJ+WkPm2q+fEQoyqXPxSgE+Tc=; b=sLt1j2De2qQT5zPcMyDikiQPYwPstDNGwUA+QwDZTjMdEHh/s5GuDx/XkgrLZrCN0jpYtm r9IgMiVSFfcsQZ38yWwqsGfJvg7nDXXdaY2zBLTgU+35YhzPWPBlPxV4zmtKh15WqGnSk3 JD9CWhXokfnH500EdukLWNyDmWJtlME= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1673339798; 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=xvS//62VSffaOVkPd7AJ+WkPm2q+fEQoyqXPxSgE+Tc=; b=DZuJmvUtsJf4nJ5sVotgf+gUVorDRkWgCrx6j8e8mSNd7NpIaS3LmCPyRIX2wUu3KiDfVM q3zzuibEavQ5jADw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E2BC01358A; Tue, 10 Jan 2023 08:36:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id OUC5NpUjvWOyFgAAMHmgww (envelope-from ); Tue, 10 Jan 2023 08:36:37 +0000 Date: Tue, 10 Jan 2023 09:36:37 +0100 Message-ID: <87k01ueqga.wl-tiwai@suse.de> From: Takashi Iwai To: Luka Guzenko Cc: tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: hda/realtek: Enable mute/micmute LEDs on HP Spectre x360 13-aw0xxx In-Reply-To: <20230109235840.26452-1-l.guzenko@web.de> References: <20230109235840.26452-1-l.guzenko@web.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Jan 2023 00:58:40 +0100, Luka Guzenko wrote: > > The HP Spectre x360 13-aw0xxx devices use the ALC285 codec with GPIO 0x04 > controlling the micmute LED and COEF 0x0b index 8 controlling the mute LED. > A quirk was added to make these work as well as a fixup entry. > > Signed-off-by: Luka Guzenko > --- > sound/pci/hda/patch_realtek.c | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c > index 3794b522c222..6a76a2eddd3c 100644 > --- a/sound/pci/hda/patch_realtek.c > +++ b/sound/pci/hda/patch_realtek.c > @@ -4644,6 +4644,16 @@ static void alc285_fixup_hp_coef_micmute_led(struct hda_codec *codec, > } > } > > +static void alc285_fixup_hp_gpio_micmute_led(struct hda_codec *codec, > + const struct hda_fixup *fix, int action) > +{ > + struct alc_spec *spec = codec->spec; > + > + if (action != HDA_FIXUP_ACT_PRE_PROBE) > + spec->micmute_led_polarity = 1; Is this condition correct? It's usually other way round; a flag is set up only once at parsing. thanks, Takashi