Debian Codegraph @

src/mainboard/google/poppy/variants/baseboard/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 __weak 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 MAX98927 Smart Amps for left and right channel */
15 /* Render time_slot is 0 and feedback time_slot is 2 */
16 if (nhlt_soc_add_max98927(nhlt, AUDIO_LINK_SSP0, 0, 2))
17 printk(BIOS_ERR, "Couldn't add Maxim MAX98927\n");
18
19 /* Realtek RT5663 Headset codec. */
20 if (nhlt_soc_add_rt5663(nhlt, AUDIO_LINK_SSP1))
21 printk(BIOS_ERR, "Couldn't add Realtek RT5663.\n");
22 }
23
24 void __weak variant_nhlt_oem_overrides(const char **oem_id,
25 const char **oem_table_id,
26 uint32_t *oem_revision)
27 {
28 *oem_id = "GOOGLE";
29 *oem_table_id = "POPPYMAX";
30 *oem_revision = 0;
31 }