From 8159b2e06cfd72ee24dedbbb7ec8f5befc485cb9 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Fri, 5 Sep 2025 10:46:52 -0500 Subject: [PATCH] device/azalia_codec: Add header with enums for Realtek node IDs Add enums for the output pin widget node IDs for Realtek ALC256 and ALC269 codecs, to be used in HDA verb tables. Sources: ALC256-CG Datasheet Rev 1.1 ALC269-VB Datasheet Rev 0.14N ALC269-VC Datasheet Rev 0.83 Change-Id: I1b60dd1ce2c1c790e22058d10234856f8b9b9416 Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/89075 Reviewed-by: Sean Rhodes Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Nicholas Sudsgaard Reviewed-by: Elyes Haouas --- src/include/device/azalia_codec/realtek.h | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/include/device/azalia_codec/realtek.h diff --git a/src/include/device/azalia_codec/realtek.h b/src/include/device/azalia_codec/realtek.h new file mode 100644 index 0000000000..12c9ed2d0a --- /dev/null +++ b/src/include/device/azalia_codec/realtek.h @@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef DEVICE_AZALIA_CODEC_REALTEK_H +#define DEVICE_AZALIA_CODEC_REALTEK_H + +enum alc256_pin_widget { + ALC256_DMIC12 = 0x12, + ALC256_DMIC34 = 0x13, + ALC256_SPEAKERS = 0x14, // Port-D + ALC256_MIC2 = 0x19, // Port-F + ALC256_LINE1 = 0x1a, // Port-C + ALC256_LINE2 = 0x1b, // Port-E + ALC256_PC_BEEP = 0x1d, + ALC256_SPDIF_OUT = 0x1e, + ALC256_HP_OUT = 0x21, // Port-I +}; + +enum alc269_pin_widget { + ALC269_DMIC12 = 0x12, + ALC269_SPEAKERS = 0x14, // Port-D + ALC269_VC_HP_OUT = 0x15, // Port-A, ALC269-VCx only + ALC269_MONO = 0x17, // Port-H + ALC269_MIC1 = 0x18, // Port-B + ALC269_MIC2 = 0x19, // Port-F + ALC269_LINE1 = 0x1a, // Port-C + ALC269_LINE2 = 0x1b, // Port-E + ALC269_PC_BEEP = 0x1d, + ALC269_SPDIF_OUT = 0x1e, + ALC269_VB_HP_OUT = 0x21, // Port-I, ALC269-VBx only +}; + +#endif /* DEVICE_AZALIA_CODEC_REALTEK_H */