diff options
author | Anil Kumar <anil.kumar.k@intel.corp-partner.google.com> | 2024-02-02 16:50:16 -0800 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2024-08-20 03:59:32 +0000 |
commit | 6c3fed5bf495c0969adb311f6cd2acd88dc2d8bc (patch) | |
tree | dd118a77ce915629a25dd41f1a4fa975121f465a /src/include | |
parent | 888166e6ead8469f217320b7798f168313434881 (diff) |
drivers/soundwire: Support Realtek ALC722 codec
This patch adds SoundWire driver to support ALC722 audio codec.
The existing ALC711 codec driver is refactored to include support for
ALC722 device based on config flag.
The ACPI address for the codec is calculated with the information in
the codec driver combined with the devicetree.cb hierarchy where the
link and unique IDs are extracted from the device path.
For example this device is connected to master link ID 0 and has strap
settings configuring it for unique ID 1:
chip drivers/soundwire/alc711
register "desc" = ""Headset Codec""
device generic 0.1 on end
end
reference datasheet: Realtek ALC722-CG ver. 0.56
TEST=This driver was tested on Intel RVP with on board ALC722 codec
by booting and disassembling the runtime SSDT to ensure that the
devices have the expected address and properties. Test soundcard
binding works and devices are detected and check for audio playback
using speaker output.
Signed-off-by: Anil Kumar <anil.kumar.k@intel.com>
Change-Id: Ieb16a1c6f3a79321fdc35987468daa8be33b6e49
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81920
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/mipi/ids.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/mipi/ids.h b/src/include/mipi/ids.h index 5aa5a679a8..4e54b62660 100644 --- a/src/include/mipi/ids.h +++ b/src/include/mipi/ids.h @@ -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_ALC722 0x0722 #define MIPI_DEV_ID_REALTEK_ALC1308 0x1308 #define MIPI_MFG_ID_MAXIM 0x019f |