summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSridhar Siricilla <sridhar.siricilla@intel.com>2020-11-05 14:18:38 +0530
committerSubrata Banik <subrata.banik@intel.com>2020-11-07 08:55:53 +0000
commitf2de1e7e19dccb1901c93ff5093360566f6b88e8 (patch)
tree33681b7f0b505f7e53e6ac1359221585864da9a0
parent73caae977213b8d25616dcaa043259c7b2dc2a60 (diff)
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 <sridhar.siricilla@intel.com> Change-Id: I73f480dad1047cebd7ffc66e0104ff10cacc300b Reviewed-on: https://review.coreboot.org/c/coreboot/+/47278 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subrata.banik@intel.com> Reviewed-by: V Sowmya <v.sowmya@intel.com>
-rw-r--r--src/mainboard/intel/adlrvp/Kconfig1
-rw-r--r--src/mainboard/intel/adlrvp/variants/adlrvp_p/devicetree.cb5
-rw-r--r--src/soc/intel/alderlake/soundwire.c3
3 files changed, 7 insertions, 2 deletions
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
}
};