mb/purism/librem_14/hda_verb.c: Fix subsystem, verb count, jack detect

- set subsystem/subvendor ID to Realtek default, as the one dumped
  from the vendor UEFI firmware provides no advantages
- fix the number of verb entries, which excluded the 4 following the
  pin configs
- issue the reset *before* setting the subvendor, and use the Azalia macro
- disable jack detect for the 3.5mm jack, both line out and mic, since
  it's not currently working, so that the outputs can be manually selected

Change-Id: Icd961c3c5aec23cf61d6a9ad65c603c6dc04697a
Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55659
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Matt DeVillier 2021-06-17 18:54:16 -05:00 committed by Patrick Georgi
parent 46b642f86c
commit bb4669c29f
1 changed files with 6 additions and 11 deletions

View File

@ -4,27 +4,22 @@
const u32 cim_verb_data[] = {
0x10ec0256, /* Codec Vendor/Device ID: Realtek ALC256 */
0x1b50580a, /* Subsystem ID */
12, /* Number of entries */
0x10ec0256, /* Subsystem ID */
16, /* Number of entries */
AZALIA_SUBVENDOR(0, 0x1b50580a),
/* Widget node 0x01 */
0x0017ff00,
0x0017ff00,
0x0017ff00,
0x0017ff00,
AZALIA_RESET(0x1),
AZALIA_SUBVENDOR(0, 0x10ec0256),
AZALIA_PIN_CFG(0, 0x12, 0x90a60140), /* Front digital mic */
AZALIA_PIN_CFG(0, 0x13, 0x411111f0), /* NC */
AZALIA_PIN_CFG(0, 0x14, 0x90170110), /* Internal speakers */
AZALIA_PIN_CFG(0, 0x18, 0x411111f0), /* NC */
AZALIA_PIN_CFG(0, 0x19, 0x04a11030), /* Jack analog mic */
AZALIA_PIN_CFG(0, 0x19, 0x04a11130), /* Jack analog mic */
AZALIA_PIN_CFG(0, 0x1a, 0x411111f0), /* NC */
AZALIA_PIN_CFG(0, 0x1b, 0x411111f0), /* NC */
AZALIA_PIN_CFG(0, 0x1d, 0x411111f0), /* NC */
AZALIA_PIN_CFG(0, 0x1e, 0x411111f0), /* NC */
AZALIA_PIN_CFG(0, 0x21, 0x04211020), /* Jack analog out */
AZALIA_PIN_CFG(0, 0x21, 0x04211120), /* Jack analog out */
/* Hidden SW reset */
0x0205001a,