Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25529265rwd; Sun, 2 Jul 2023 19:43:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlGEcETB0/586w5QodyOi5UbZoK9NgwV61J+L/i5YWg1kvel1BI6AoB5jEmLmynfDrna6QV4 X-Received: by 2002:a05:6871:404e:b0:1b0:222f:9cda with SMTP id ky14-20020a056871404e00b001b0222f9cdamr8117378oab.0.1688352186644; Sun, 02 Jul 2023 19:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688352186; cv=none; d=google.com; s=arc-20160816; b=Pt9o34S+UyPznYD2U8RPWBSHHiwQLUPpi+VdODF53BGTCCAQ1+Dw3n56LNRvFVLRoY QHw9UGXQSnny5dFVDt226ha+Vnd4wBCqXdlEFcZlP7XZsYu2zkgMD2Oll4dApGs7BMjG mzxMkLicdHlq/hPPPW2xpKgaOwI5+ERMGAwDLSUXrfd7HPm4I9nupJ8yXFFhowtd4sul ItU9kLWqkUe6UgGwWbyLgB7kcXgXK8HmQKHi5h/yo/G9PuKau4CnxZ1p5JkmfsJTkA+Y ApOz5AxnxP/SslrUpIz+bVrfsw02awQfofQhW3dY39MPdv8U9oR0sYmk6CsgJh+T/++4 8bfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=S96ZOv5sHdu/IU9VVty3Hgo2nU3DMszhhsdwNMxkzlE=; fh=L6uRqLANR/53YUx/8NpjVoKE667aJCLOnawoivFEm2s=; b=qPV4WO5GOPU5Ekm+ejMdfBymaqJRFJ2CPs00EV0hqC8PhCI1hDhEIBmx8zTwtlLAVV pC3UaMKxb2i2RlTV/wmhUxK7Ox+7RH6uC+dIbSBVcrlh4uvCw7tJuteCEJVyUFVLTigv 7Tf39AVsFfNdA7lTglYXid8TC6KFVa7QG83GHqAGbSRrpLK4NAsf2/bAt2465JzxPlNd 6qeN9N7b6WSKJ+gbBrTqmLV2mvXeYj38OIcs7yJTuqzGkUf8BaUBaqAALTlqCtYKXpLW CYR0HEil9tdtuLhm+p3HGVXqKR+G4wExihxa4aWiAP+remD9g8GIgPPcHZAHTXzLdP0j 6Tbg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b24-20020a17090ae39800b00262e99964bdsi14959379pjz.99.2023.07.02.19.42.55; Sun, 02 Jul 2023 19:43:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230027AbjGCCSL (ORCPT + 99 others); Sun, 2 Jul 2023 22:18:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229568AbjGCCSK (ORCPT ); Sun, 2 Jul 2023 22:18:10 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 66585188 for ; Sun, 2 Jul 2023 19:18:07 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 6E1146091588A; Mon, 3 Jul 2023 10:18:04 +0800 (CST) X-MD-Sfrom: dengxiang@nfschina.com X-MD-SrcIP: 180.167.10.98 From: dengxiang To: tiwai@suse.com, yangyingliang@huawei.com, perex@perex.cz Cc: linux-kernel@vger.kernel.org, dengxiang@nfschina.com Subject: [PATCH v5] ALSA: hda/realtek: Add quirks for Unis H3C Desktop B760 & Q760 Date: Mon, 3 Jul 2023 10:17:51 +0800 Message-Id: <20230703021751.2945750-1-dengxiang@nfschina.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 These models use NSIWAY amplifiers for internal speaker, but cannot put sound outside from these amplifiers. So eapd verbs are needed to initialize the amplifiers. They can be added during boot to get working sound out of internal speaker. --- V5: - remove pci ssid 0x10ec0897 for specific unis device. V4: - put at the right position to keep the PCI SSID order for the whole. V3: - do some adjustment for eapd verbs and keep the capital letters for ALC_* enums. v2: - remove warning about unused variable 'spec'. Signed-off-by: dengxiang --- sound/pci/hda/patch_realtek.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index afe8253f9a4f..cbfb3260ab6d 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -11286,6 +11286,7 @@ enum { ALC897_FIXUP_HP_HSMIC_VERB, ALC897_FIXUP_LENOVO_HEADSET_MODE, ALC897_FIXUP_HEADSET_MIC_PIN2, + ALC897_FIXUP_UNIS_H3C_X500S, }; static const struct hda_fixup alc662_fixups[] = { @@ -11725,6 +11726,13 @@ static const struct hda_fixup alc662_fixups[] = { .chained = true, .chain_id = ALC897_FIXUP_LENOVO_HEADSET_MODE }, + [ALC897_FIXUP_UNIS_H3C_X500S] = { + .type = HDA_FIXUP_VERBS, + .v.verbs = (const struct hda_verb[]) { + { 0x14, AC_VERB_SET_EAPD_BTLENABLE, 0 }, + {} + }, + }, }; static const struct snd_pci_quirk alc662_fixup_tbl[] = { @@ -11886,6 +11894,7 @@ static const struct hda_model_fixup alc662_fixup_models[] = { {.id = ALC662_FIXUP_USI_HEADSET_MODE, .name = "usi-headset"}, {.id = ALC662_FIXUP_LENOVO_MULTI_CODECS, .name = "dual-codecs"}, {.id = ALC669_FIXUP_ACER_ASPIRE_ETHOS, .name = "aspire-ethos"}, + {.id = ALC897_FIXUP_UNIS_H3C_X500S, .name = "unis-h3c-x500s"}, {} }; -- 2.30.2