Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1132075rwo; Wed, 2 Aug 2023 09:08:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlEiB8LyK5tcc+eBIt7dJijwCCx5+UVsgiiSbDctdWevMqhsV84HBPqPUIoNQXxLa3t+Ftqd X-Received: by 2002:aa7:de0a:0:b0:521:d75d:ef69 with SMTP id h10-20020aa7de0a000000b00521d75def69mr6246552edv.31.1690992523400; Wed, 02 Aug 2023 09:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690992523; cv=none; d=google.com; s=arc-20160816; b=XYEoGScUubLaQxpBnO84lV0RGZCR/9tKeTTbd2xlKcVP5hjW5vTpIsZOgYj4g14tdn 5Scw3etF7/hvKFFBLK09LZfcV9DnCjD4l7FrsTGzzVrxr2dRk7pqPdx+ahxJIE+FKK6z eRzGgLL3nxPtrXALhUMsGJjEJ9ifS8RtUMSu3yHgw21OmOKbXsEUDKW2Ea54Kn4rhws2 MX/LZGVTYxHQZGHAFpzjJm3G8yJnni5d0H7derRtJ5Sf3J6uZyEiAfAlpQKxG2aOzdlO KFdlgOKbyJSS5sc4qiYPVwcqUGnNuY4gvWhQ8Ve7FhvLnqJMmLL6jG35gys2zNW446En ZWKg== 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=DpvkF7h/6CHY1yRubkDyJc0q7vYwpDpt2jComXffOdQ=; fh=VlirkJon5SjFVl5iVLPfyuhIsaxnNm4ThegWDjuiz/I=; b=qh5bOPcALhALb/w0ShS9ELXLjLFfl2MxbdVQMDb/CLLF7Xg+Pid5OrMmdBKAgJS5qh QV5MwqLlzDx7RxpmQ+H8IYBese1OrRqrGW07Jb7TTXnBrycbSW6EPXTwwiawTb+uk9HT unk1iqZF3UtIgCisnpZryIeDUWzB0vVPoqpzFzufbF0I/cweutvN7505Y0A0mTZuzl6c kO2tqhl3WurOE1EZSFjr1+GjYNjiPDA/6+RhaUZu/Fm/T8xwS7BbQnjGDwOyOS0hlR0T xSlnpNvBnHbc018+dobl0Wx7pPjFqVBJbfC9QmbvlaP1b9uDIN5RwdHHhievu6YaHCh8 Kqiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=xp7T6BbW; 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 b26-20020a05640202da00b005222117c6fasi10323633edx.614.2023.08.02.09.08.09; Wed, 02 Aug 2023 09:08:43 -0700 (PDT) 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=xp7T6BbW; 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 S235377AbjHBPz2 (ORCPT + 99 others); Wed, 2 Aug 2023 11:55:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235387AbjHBPzK (ORCPT ); Wed, 2 Aug 2023 11:55:10 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 927003C14 for ; Wed, 2 Aug 2023 08:54:30 -0700 (PDT) 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 E3C9F1F37C; Wed, 2 Aug 2023 15:54:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1690991668; 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=DpvkF7h/6CHY1yRubkDyJc0q7vYwpDpt2jComXffOdQ=; b=xp7T6BbWPDzODxs+8z1dlCsYH2dEpvz+dKStQDFNSv/XuDNKaBwWCS+Y3pxaCDSJ3xHZze QI9FXGwZoOEU3RYP2DT6U4DJthtkEcjGOPXCvadjOuEiiiA4k//yT5X8XvtlN/623HSXnJ W3hg/2dZq4jgC2dPFY12uzLEG7CqIs0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1690991668; 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=DpvkF7h/6CHY1yRubkDyJc0q7vYwpDpt2jComXffOdQ=; b=i98CGzjHOQKbfazm2d3tzxMuoDpRAzJVLI79wUtG0ZXxmsMKXUYqOLTCAs05BXdhUIrhx3 zFw03QK0cW8V39BQ== 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 B064A13909; Wed, 2 Aug 2023 15:54:28 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id cDJCKjR8ymROOwAAMHmgww (envelope-from ); Wed, 02 Aug 2023 15:54:28 +0000 Date: Wed, 02 Aug 2023 17:54:28 +0200 Message-ID: <87il9xcudn.wl-tiwai@suse.de> From: Takashi Iwai To: Matthew Anderson Cc: tiwai@suse.com, perex@perex.cz, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] ALSA: hda/realtek: Add headphone quirk for Aya Neo 2 In-Reply-To: <20230802153730.39273-3-ruinairas1992@gmail.com> References: <20230802153730.39273-1-ruinairas1992@gmail.com> <20230802153730.39273-3-ruinairas1992@gmail.com> 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Wed, 02 Aug 2023 17:37:30 +0200, Matthew Anderson wrote: > > This fixes the headphones on the Aya Neo 2 handheld. > Signed-off-by: Matthew Anderson > --- > sound/pci/hda/patch_realtek.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c > index 33f9beec8179..5d31cbe5d40b 100644 > --- a/sound/pci/hda/patch_realtek.c > +++ b/sound/pci/hda/patch_realtek.c > @@ -7030,6 +7030,7 @@ enum { > ALC269_FIXUP_DELL3_MIC_NO_PRESENCE, > ALC269_FIXUP_DELL4_MIC_NO_PRESENCE, > ALC269_FIXUP_DELL4_MIC_NO_PRESENCE_QUIET, > + ALC269_FIXUP_HEADSET_AYA_2, > ALC269_FIXUP_HEADSET_AYA_GEEK, > ALC269_FIXUP_HEADSET_MODE, > ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC, > @@ -8455,6 +8456,10 @@ static const struct hda_fixup alc269_fixups[] = { > .chained = true, > .chain_id = ALC256_FIXUP_ASUS_HEADSET_MODE > }, > + [ALC269_FIXUP_HEADSET_AYA_2] = { > + .type = HDA_FIXUP_FUNC, > + .v.func = alc269_fixup_headphone_volume, > + }, > [ALC269_FIXUP_HEADSET_AYA_GEEK] = { > .type = HDA_FIXUP_FUNC, > .v.func = alc269_fixup_headphone_volume, > @@ -9953,6 +9958,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { > SND_PCI_QUIRK(0x1d72, 0x1901, "RedmiBook 14", ALC256_FIXUP_ASUS_HEADSET_MIC), > SND_PCI_QUIRK(0x1d72, 0x1945, "Redmi G", ALC256_FIXUP_ASUS_HEADSET_MIC), > SND_PCI_QUIRK(0x1d72, 0x1947, "RedmiBook Air", ALC255_FIXUP_XIAOMI_HEADSET_MIC), > + SND_PCI_QUIRK(0x1f66, 0x0101, "AYANEO 2", ALC269_FIXUP_HEADSET_AYA_2), > SND_PCI_QUIRK(0x1f66, 0x0101, "GEEK", ALC269_FIXUP_HEADSET_AYA_GEEK), > SND_PCI_QUIRK(0x8086, 0x2074, "Intel NUC 8", ALC233_FIXUP_INTEL_NUC8_DMIC), > SND_PCI_QUIRK(0x8086, 0x2080, "Intel NUC 8 Rugged", ALC256_FIXUP_INTEL_NUC8_RUGGED), Hmm, both devices have the very same SSID (1f66:0101)? Then it's superfluous. And, if you have two devices that require the same quirk but with different SSIDs, both can use the same ALC269_FIXUP_HEADSET_AYA_GEEK, instead of defining two. thanks, Takashi