summaryrefslogtreecommitdiff
path: root/src/mainboard/google/volteer/variants/delbin/variant.c
blob: cdb165d523285a350a5dda8d386d5d7a32660523 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0-or-later */

#include <baseboard/variants.h>
#include <fw_config.h>
#include <drivers/i2c/hid/chip.h>
#include <device/device.h>

static void audio_codec_update(void)
{
	struct device *codec = DEV_PTR(audio_codec);
	struct drivers_i2c_generic_config *config;

	config = codec->chip_info;
	if (fw_config_probe(FW_CONFIG(AUDIO_CODEC_SOURCE, AUDIO_CODEC_ALC5682I_VS)))
		config->hid = "RTL5682";
	else
		config->hid = "10EC5682";
}
void variant_devtree_update(void)
{
	audio_codec_update();
}