summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@puri.sm>2021-06-17 18:58:45 -0500
committerPatrick Georgi <pgeorgi@google.com>2021-06-21 05:33:22 +0000
commit99aecad387190ad09f5ee4f5ee5f53e8ec783a0c (patch)
treec7e827537612915f8fd247e96cc0f587fdf0f4fe /src
parentbb4669c29f880ca66cdaca2a5cf5a1d7b6ff482b (diff)
mb/purism/librem_mini/hda_verb.c: Fix subsystem, jack detect
- set subsystem/subvendor ID to Realtek default, as the one dumped from the vendor UEFI firmware provides no advantages - Add a codec reset before setting the subvendor ID using the Azalia macro for consistency with all other Realtek HDA codecs - disable jack detect for the external mic on the 3.5mm jack, since it's not currently working, so that the external microphone can be manually selected Change-Id: Ib0f99e5088973a721c0a295899012c9aea5009cf Signed-off-by: Matt DeVillier <matt.devillier@puri.sm> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55660 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/purism/librem_cnl/variants/librem_mini/hda_verb.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mainboard/purism/librem_cnl/variants/librem_mini/hda_verb.c b/src/mainboard/purism/librem_cnl/variants/librem_mini/hda_verb.c
index 93dd2702bf..5a9aead2e7 100644
--- a/src/mainboard/purism/librem_cnl/variants/librem_mini/hda_verb.c
+++ b/src/mainboard/purism/librem_cnl/variants/librem_mini/hda_verb.c
@@ -3,16 +3,18 @@
#include <device/azalia_device.h>
const u32 cim_verb_data[] = {
- 0x10ec0269, /* Codec Vendor/Device ID: Realtek ALC293 */
- 0x10ec0000, /* Subsystem ID */
- 11, /* Number of entries */
+ 0x10ec0269, /* Codec Vendor/Device ID: Realtek ALC269 */
+ 0x10ec0269, /* Subsystem ID */
+ 12, /* Number of entries */
- AZALIA_SUBVENDOR(0, 0x10ec0000),
+ AZALIA_RESET(0x1),
+
+ AZALIA_SUBVENDOR(0, 0x10ec0269),
AZALIA_PIN_CFG(0, 0x12, 0x411111f0), /* NC */
AZALIA_PIN_CFG(0, 0x14, 0x411111f0), /* NC */
AZALIA_PIN_CFG(0, 0x15, 0x02211010), /* Jack analog out */
AZALIA_PIN_CFG(0, 0x17, 0x411111f0), /* NC */
- AZALIA_PIN_CFG(0, 0x18, 0x02a11020), /* Jack analog mic */
+ AZALIA_PIN_CFG(0, 0x18, 0x02a11120), /* Jack analog mic, no presence detect */
AZALIA_PIN_CFG(0, 0x19, 0x411111f0), /* NC */
AZALIA_PIN_CFG(0, 0x1a, 0x411111f0), /* NC */
AZALIA_PIN_CFG(0, 0x1b, 0x411111f0), /* NC */