{device/azalia_codec,mainboard}: Use node ID enums for Realtek ALC887

Add enums for the output pin widget node IDs for Realtek ALC887 [1] and
use these enums in the motherboard configuration.

[1] Figure 1, Block Diagram, ALC887-GR Datasheet, Rev. 1.0, 24 July 2008

Change-Id: Iaa2ebd7447a19dfc98b006c851f1605851c1ea5d
Signed-off-by: Maxim Polyakov <max.senia.poliak@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/89364
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nicholas Sudsgaard <devel+coreboot@nsudsgaard.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
Maxim Polyakov 2025-09-25 15:08:28 +03:00 committed by Matt DeVillier
commit d5f1ecedf7
24 changed files with 366 additions and 322 deletions

View file

@ -29,4 +29,21 @@ enum alc269_pin_widget {
ALC269_VB_HP_OUT = 0x21, // Port-I, ALC269-VBx only
};
enum alc887_pin_widget {
ALC887_SPDIF_OUT2 = 0x11,
ALC887_DMIC_LR = 0x12,
ALC887_FRONT = 0x14, // Port-D
ALC887_SURROUND = 0x15, // Port-A
ALC887_CENTER_LFE = 0x16, // Port-G
ALC887_SIDE_SURROUND = 0x17, // Port-H
ALC887_MIC1 = 0x18, // Port-B
ALC887_MIC2 = 0x19, // Port-F
ALC887_LINE1 = 0x1a, // Port-C
ALC887_LINE2 = 0x1b, // Port-E
ALC887_CD = 0x1c,
ALC887_PC_BEEP = 0x1d,
ALC887_SPDIF_OUT1 = 0x1e,
ALC887_SPDIF_IN = 0x1f,
};
#endif /* DEVICE_AZALIA_CODEC_REALTEK_H */