From 642b789e70fcd5d14338307b78d4e88785b60e0a Mon Sep 17 00:00:00 2001 From: Kapil Porwal Date: Mon, 11 Sep 2023 05:37:28 +0000 Subject: mb/google/rex/var/screebo: Enable BT audio offload config Enable BT audio offload of ALC1019_ALC5682I_I2S based on fw_config. BUG=b:299510759 TEST=Build and boot to Screebo. Verify the config from serial logs. w/o this CL - ``` [SPEW ] ------------------ CNVi Config ------------------ [SPEW ] CNVi Mode = 1 [SPEW ] Wi-Fi Core = 1 [SPEW ] BT Core = 1 [SPEW ] BT Audio Offload = 0 [SPEW ] BT Interface = 1 ``` w/ this CL - ``` [SPEW ] ------------------ CNVi Config ------------------ [SPEW ] CNVi Mode = 1 [SPEW ] Wi-Fi Core = 1 [SPEW ] BT Core = 1 [SPEW ] BT Audio Offload = 1 [SPEW ] BT Interface = 1 ``` Signed-off-by: Kapil Porwal Change-Id: I6c713752f3f0bf58b5ebd78b904e773fdbf16e06 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77755 Reviewed-by: Subrata Banik Tested-by: build bot (Jenkins) Reviewed-by: Wentao Qin Reviewed-by: Paul Menzel --- src/mainboard/google/rex/variants/screebo/variant.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mainboard/google/rex') diff --git a/src/mainboard/google/rex/variants/screebo/variant.c b/src/mainboard/google/rex/variants/screebo/variant.c index 4ea659863e..1dd8b980e3 100644 --- a/src/mainboard/google/rex/variants/screebo/variant.c +++ b/src/mainboard/google/rex/variants/screebo/variant.c @@ -12,6 +12,9 @@ const char *get_wifi_sar_cbfs_filename(void) void variant_update_soc_chip_config(struct soc_intel_meteorlake_config *config) { + if (fw_config_probe(FW_CONFIG(AUDIO, ALC1019_ALC5682I_I2S))) + config->cnvi_bt_audio_offload = true; + /* SOC Aux orientation override: * This is a bitfield that corresponds to up to 4 TCSS ports. * Bits (0,1) allocated for TCSS Port1 configuration and Bits (2,3)for TCSS Port2. -- cgit v1.2.3