From f2de1e7e19dccb1901c93ff5093360566f6b88e8 Mon Sep 17 00:00:00 2001 From: Sridhar Siricilla Date: Thu, 5 Nov 2020 14:18:38 +0530 Subject: mb/intel: Enable ALC711 Audio codec over SNDW0 link The patch enables ALC711 Audio codec. Test=Verified on ADL RVP. Signed-off-by: Sridhar Siricilla Change-Id: I73f480dad1047cebd7ffc66e0104ff10cacc300b Reviewed-on: https://review.coreboot.org/c/coreboot/+/47278 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik Reviewed-by: V Sowmya --- src/mainboard/intel/adlrvp/Kconfig | 1 + src/mainboard/intel/adlrvp/variants/adlrvp_p/devicetree.cb | 5 +++++ src/soc/intel/alderlake/soundwire.c | 3 +-- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mainboard/intel/adlrvp/Kconfig b/src/mainboard/intel/adlrvp/Kconfig index 97b4bf7a2b..2a3dbb021c 100644 --- a/src/mainboard/intel/adlrvp/Kconfig +++ b/src/mainboard/intel/adlrvp/Kconfig @@ -13,6 +13,7 @@ config BOARD_SPECIFIC_OPTIONS select DRIVERS_SPI_ACPI select SOC_INTEL_ALDERLAKE select HAVE_SPD_IN_CBFS + select DRIVERS_SOUNDWIRE_ALC711 config CHROMEOS bool diff --git a/src/mainboard/intel/adlrvp/variants/adlrvp_p/devicetree.cb b/src/mainboard/intel/adlrvp/variants/adlrvp_p/devicetree.cb index 44c324bcbb..ce55fa3914 100644 --- a/src/mainboard/intel/adlrvp/variants/adlrvp_p/devicetree.cb +++ b/src/mainboard/intel/adlrvp/variants/adlrvp_p/devicetree.cb @@ -258,6 +258,11 @@ chip soc/intel/alderlake device pci 1f.3 on chip drivers/intel/soundwire device generic 0 on + chip drivers/soundwire/alc711 + # SoundWire Link 0 ID 1 + register "desc" = ""Headset Codec"" + device generic 0.1 on end + end end end end # Intel Audio SNDW diff --git a/src/soc/intel/alderlake/soundwire.c b/src/soc/intel/alderlake/soundwire.c index 38a2c37758..9899df36c2 100644 --- a/src/soc/intel/alderlake/soundwire.c +++ b/src/soc/intel/alderlake/soundwire.c @@ -37,8 +37,7 @@ static const struct soundwire_link link_xtal_24 = { static struct intel_soundwire_controller intel_controller = { .acpi_address = 0x40000000, .sdw = { - /* TODO: Verified Audio in nocodec mode, add codec support */ - .master_list_count = 0 + .master_list_count = 1 } }; -- cgit v1.2.3