lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230627062551.25775-1-dengxiang@nfschina.com>
Date:   Tue, 27 Jun 2023 14:25:51 +0800
From:   dengxiang <dengxiang@...china.com>
To:     tiwai@...e.com, yangyingliang@...wei.com
Cc:     linux-kernel@...r.kernel.org, dengxiang@...china.com
Subject: [PATCH] Asoc: alc897: EAPD pin47 cannot work.

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 <dengxiang@...china.com>
---
 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ