summaryrefslogtreecommitdiff
path: root/src/drivers/soundwire
diff options
context:
space:
mode:
authorVarun Upadhyay <varun.upadhyay@intel.com>2024-10-01 09:52:56 +0530
committerMartin L Roth <gaumless@gmail.com>2024-10-07 20:40:20 +0000
commite7a0bf30809c3e0ba6f978c39ee37e362cf2d2a2 (patch)
treef4b9d5aed22a8eb097ef6a3237da2eed3e2d40c9 /src/drivers/soundwire
parent18890c82069414e1b13dada3567c95751326e81d (diff)
drivers/soundwire: Support Realtek ALC721 codec
This change updates SoundWire driver to support ALC721 audio codec based on config flag. reference datasheet: Realtek ALC721-VA0-CG Rev. 0.34 BUG=b:368495490 TEST=This driver was tested on Intel RVP with Add-on ALC721 codec card by testing soundcard binding/devices are detected and check for audio playback. Change-Id: I1022ee91b16374d0d4d07e5198226595d61403a6 Signed-off-by: Varun Upadhyay <varun.upadhyay@intel.com> Signed-off-by: Naveen M <naveen.m@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84610 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src/drivers/soundwire')
-rw-r--r--src/drivers/soundwire/alc711/Kconfig6
-rw-r--r--src/drivers/soundwire/alc711/alc711.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/drivers/soundwire/alc711/Kconfig b/src/drivers/soundwire/alc711/Kconfig
index 96ed819d7f..e9ba852d9a 100644
--- a/src/drivers/soundwire/alc711/Kconfig
+++ b/src/drivers/soundwire/alc711/Kconfig
@@ -11,6 +11,12 @@ config DRIVERS_SOUNDWIRE_ALC711
help
SoundWire driver for Realtek ALC711 device
+config DRIVERS_SOUNDWIRE_ALC721
+ bool
+ select DRIVERS_SOUNDWIRE_ALC_BASE_7XX
+ help
+ SoundWire driver for Realtek ALC721 device
+
config DRIVERS_SOUNDWIRE_ALC722
bool
select DRIVERS_SOUNDWIRE_ALC_BASE_7XX
diff --git a/src/drivers/soundwire/alc711/alc711.c b/src/drivers/soundwire/alc711/alc711.c
index 5384f606f5..1a31f0d4e0 100644
--- a/src/drivers/soundwire/alc711/alc711.c
+++ b/src/drivers/soundwire/alc711/alc711.c
@@ -15,6 +15,10 @@ static struct soundwire_address alc711_address = {
.version = SOUNDWIRE_VERSION_1_2,
.part_id = MIPI_DEV_ID_REALTEK_ALC722,
.class = MIPI_CLASS_SDCA,
+#elif CONFIG(DRIVERS_SOUNDWIRE_ALC721)
+ .version = SOUNDWIRE_VERSION_1_2,
+ .part_id = MIPI_DEV_ID_REALTEK_ALC721,
+ .class = MIPI_CLASS_SDCA,
#elif CONFIG(DRIVERS_SOUNDWIRE_ALC711)
.version = SOUNDWIRE_VERSION_1_1,
.part_id = MIPI_DEV_ID_REALTEK_ALC711,