diff options
author | Kapil Porwal <kapilporwal@google.com> | 2023-09-11 05:37:28 +0000 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2023-11-27 12:57:47 +0000 |
commit | 642b789e70fcd5d14338307b78d4e88785b60e0a (patch) | |
tree | 205b3aa83c9a1e3b2c946f28d79d1c35d0dc2f98 | |
parent | 64c9520b0c0577b7a790d6e59486ec4a9d972b71 (diff) |
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 <kapilporwal@google.com>
Change-Id: I6c713752f3f0bf58b5ebd78b904e773fdbf16e06
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77755
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Wentao Qin <qinwentao@huaqin.corp-partner.google.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
-rw-r--r-- | src/mainboard/google/rex/variants/screebo/variant.c | 3 |
1 files changed, 3 insertions, 0 deletions
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. |