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>
This commit is contained in:
Varun Upadhyay 2024-10-01 09:52:56 +05:30 committed by Martin L Roth
commit e7a0bf3080
3 changed files with 11 additions and 0 deletions

View file

@ -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

View file

@ -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,

View file

@ -21,6 +21,7 @@
#define MIPI_MFG_ID_REALTEK 0x025d
#define MIPI_DEV_ID_REALTEK_ALC5682 0x5682
#define MIPI_DEV_ID_REALTEK_ALC711 0x0711
#define MIPI_DEV_ID_REALTEK_ALC721 0x0721
#define MIPI_DEV_ID_REALTEK_ALC722 0x0722
#define MIPI_DEV_ID_REALTEK_ALC1308 0x1308