Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17250490rwd; Mon, 26 Jun 2023 23:48:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5jP/wNWhRJH/e1S5jlLRE1eWO4+Qn7WGItpABkvU1Zwe4Nq9MeXkCqtNqSXbF0GOWIts2U X-Received: by 2002:a05:6808:b07:b0:3a1:d1d9:d59c with SMTP id s7-20020a0568080b0700b003a1d1d9d59cmr6417238oij.33.1687848531228; Mon, 26 Jun 2023 23:48:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687848531; cv=none; d=google.com; s=arc-20160816; b=elF01hKtMdd4Z7AomjMp00QljTyWJjEP8VBqa6EEhVBgDJfgI1VszkgcGDTVugbd1i vWslDpKBgc/1v2jsvB5dxGgIvSHaqUBsf7mGvHbTREs6yPlIcOwYgv2S84HdgUmf3Mxu 0dKsYwFhZtken3fm9aTiXqxJTTmVszIqJ0d5rREJlUaS8rhZt1e93t30bj2bAUsths7F MrCLhmggb75Cexc2Uukm9xIYF2oUXL48ZxvCuiXOAGtqFZXZ6moWUmj4AfjMmPsadsvQ jTVr2OjfUCqVVecryCrc9Dd+fsSVgxX5kvt7nqxrwsacoJdcw/n7nw8dWUys1mD0HumZ TkZg== 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=iZI11woalsB8e26Lk2Mpqx3J24ayYTV8fcZjg4miewA=; fh=oMy+aQOFn+8VRhKH968S5FwJeghTDc+HZp1WTfvGJDI=; b=V13mlSV23H1DwnUVy+YowM0EL7UCV98J1aiukTzEJV1udNKmg6ms9zUuCqoxajim7G p+s5uahdiWvrboubMbj0SadQmeeReIlv9KqgW8wm8UHbDrOoc0etZhQCazrK/5l2SIlp mOtyHyXY8D7ZAzDjHIFl/2OjvV3WluYHKDlC2wTEZQj2kaA/L5/QMuQ/lpRsBdMF1EAI LiYkz1LDnHHpxNHaIDNKU7gMYaf/T/od104otcvWyQW3U3Xp2o8FjBuTc7lO67Dp03rM E0zAb7DCiDuFsWYSVuPTAKMLKCIt+04TGgpjFUTFiZ2yIVBAH3Qjkv88PT6a7Oz4LYZX qGbg== 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 u14-20020aa7848e000000b0066e96a581c8si5222296pfn.261.2023.06.26.23.48.38; Mon, 26 Jun 2023 23:48:50 -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 S230401AbjF0G0m (ORCPT + 99 others); Tue, 27 Jun 2023 02:26:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230363AbjF0G0T (ORCPT ); Tue, 27 Jun 2023 02:26:19 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id DAD882117 for ; Mon, 26 Jun 2023 23:26:11 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 93E676027C75A; Tue, 27 Jun 2023 14:26:02 +0800 (CST) X-MD-Sfrom: dengxiang@nfschina.com X-MD-SrcIP: 180.167.10.98 From: dengxiang To: tiwai@suse.com, yangyingliang@huawei.com Cc: linux-kernel@vger.kernel.org, dengxiang@nfschina.com Subject: [PATCH] Asoc: alc897: EAPD pin47 cannot work. Date: Tue, 27 Jun 2023 14:25:51 +0800 Message-Id: <20230627062551.25775-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 Due to unknown reason that snd_hda_intel would disable codec wakeup twice during snd_hda_intel initialization, Internal SPK is forbidden to put sound outside with snd_hda_intel driver on Unis B760 sku machine. PIN47 EAPD status need be pulled down to work normally. Signed-off-by: dengxiang --- sound/pci/hda/patch_realtek.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index a7e4765eff80..89a5d067b36d 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -534,6 +534,16 @@ static void set_eapd(struct hda_codec *codec, hda_nid_t nid, int on) { if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) return; + + switch (codec->core.vendor_id) { + case 0x10ec0897: + case 0x80867a50: + on = 0; + break; + default: + break; + } + if (snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_EAPD) snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_EAPD_BTLENABLE, on ? 2 : 0); -- 2.30.2