diff options
author | Matt DeVillier <matt.devillier@gmail.com> | 2022-12-05 09:48:15 -0600 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2022-12-19 03:47:47 +0000 |
commit | 6dc05a369e5dc8f098fe2cb8254d69066e06705b (patch) | |
tree | cf064f244da569d3d0c2ed0bcd0718fcd65422f3 | |
parent | f8fdd7a8dee0a993fa68ecc759975814c129d78f (diff) |
mb/google/octopus: Add NHLT endpoints for Cirrus Logic codec
Add NHLT endpoints for octopus boards using CS42L42 codec.
Reuse method to add da7219 endpoint as the routing is identical.
TEST=boot Windows, verify audio working with coolstar's audio drivers.
Change-Id: Id68997073752f5d90b6fe21f666a6140e22d65eb
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70371
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r-- | src/mainboard/google/octopus/variants/baseboard/nhlt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/octopus/variants/baseboard/nhlt.c b/src/mainboard/google/octopus/variants/baseboard/nhlt.c index 38caa8537b..320e470c91 100644 --- a/src/mainboard/google/octopus/variants/baseboard/nhlt.c +++ b/src/mainboard/google/octopus/variants/baseboard/nhlt.c @@ -28,6 +28,12 @@ void __weak variant_nhlt_init(struct nhlt *nhlt) printk(BIOS_INFO, "Added Dialog_7219 codec.\n"); } + if (CONFIG(NHLT_DA7219) && codec == SSFC_AUDIO_CODEC_CS42L42) { + /* Use Dialog NHLT for Cirrus Logic */ + if (!nhlt_soc_add_da7219(nhlt, AUDIO_LINK_SSP2)) + printk(BIOS_INFO, "Added Cirrus Logic codec.\n"); + } + if (CONFIG(NHLT_RT5682) && (codec == SSFC_AUDIO_CODEC_RT5682 || codec == SSFC_AUDIO_CODEC_RT5682_VS)) { |