Debian Codegraph @

src/mainboard/google/fizz/variants/karma/nhlt.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <baseboard/variants.h>
4 #include <console/console.h>
5 #include <nhlt.h>
6 #include <soc/nhlt.h>
7
8 void variant_nhlt_init(struct nhlt *nhlt)
9 {
10 /* 2 Channel DMIC array. */
11 if (nhlt_soc_add_dmic_array(nhlt, 2))
12 printk(BIOS_ERR, "Couldn't add 2CH DMIC array.\n");
13
14 /* Dialog DA7219 Headset codec. */
15 if (nhlt_soc_add_da7219(nhlt, AUDIO_LINK_SSP1))
16 printk(BIOS_ERR, "Couldn't add Dialog DA7219.\n");
17
18 /* MAXIM Smart Amps for left and right speakers. */
19 if (nhlt_soc_add_max98357(nhlt, AUDIO_LINK_SSP0))
20 printk(BIOS_ERR, "Couldn't add Maxim_98357 codec.\n");
21 }
22
23 void variant_nhlt_oem_overrides(const char **oem_id,
24 const char **oem_table_id,
25 uint32_t *oem_revision)
26 {
27 *oem_id = "GOOGLE";
28 *oem_table_id = "KALISTA";
29 *oem_revision = 0;
30 }