diff options
author | Malik_Hsu <malik_hsu@wistron.corp-partner.google.com> | 2021-11-17 09:47:16 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-11-22 14:53:53 +0000 |
commit | 797bc1b8e4a6a8497be8c5e2d5db57e6071579fb (patch) | |
tree | 3794df508ec52722c7b6b0ca1dcc3d92a75caeaf /src/mainboard/google/brya/variants/primus/variant.c | |
parent | 6b81adf8bcd3684f109ed21ed8892c3ccd943708 (diff) |
mb/google/brya/variants/primus: add fw_config_probe for ALC5682I-VS
Added fw_config_probe method to distinguish different audio codecs to
facilitate the use of different topology files by the OS.
BUG=b:205883511
TEST=emerge-brya coreboot chromeos-bootimage and check audio function
Signed-off-by: Malik_Hsu <malik_hsu@wistron.corp-partner.google.com>
Change-Id: I0d5b95e89154b2cb6b371f24cc1b151c23ff642f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59367
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/mainboard/google/brya/variants/primus/variant.c')
-rw-r--r-- | src/mainboard/google/brya/variants/primus/variant.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mainboard/google/brya/variants/primus/variant.c b/src/mainboard/google/brya/variants/primus/variant.c index b783ac08e7..e10648d6c3 100644 --- a/src/mainboard/google/brya/variants/primus/variant.c +++ b/src/mainboard/google/brya/variants/primus/variant.c @@ -4,6 +4,7 @@ #include <boardid.h> #include <device/device.h> #include <drivers/i2c/hid/chip.h> +#include <fw_config.h> static void devtree_update_emmc_rtd3(uint32_t board_ver) { @@ -22,8 +23,8 @@ static void devtree_update_audio_codec(uint32_t board_ver) if (board_ver <= 1) return; - config->hid = "RTL5682"; - audio_codec->enabled = 1; + if (fw_config_probe(FW_CONFIG(AUDIO, MAX98360_ALC5682I_VS_I2S))) + config->hid = "RTL5682"; } void variant_devtree_update(void) |