Debian Codegraph @

src/mainboard/google/poppy/variants/nocturne/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 /* MAXIM Smart Amps for left and right speakers. */
15 /* Render time_slot is 0 and feedback time_slot is 2 */
16 if (nhlt_soc_add_max98373(nhlt, AUDIO_LINK_SSP0, 0, 2))
17 printk(BIOS_ERR, "Couldn't add Maxim 98373 codec.\n");
18 }
19
20 void variant_nhlt_oem_overrides(const char **oem_id, const char **oem_table_id,
21 uint32_t *oem_revision)
22 {
23 *oem_id = "GOOGLE";
24 *oem_table_id = "NOCTURNE";
25 *oem_revision = 0;
26 }