1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/variants.h>
4 #include <console/console.h>
8 #include <baseboard/gpio.h>
10 void __weak
variant_nhlt_init(struct nhlt
*nhlt
)
12 /* 1-dmic configuration */
13 if (CONFIG(NHLT_DMIC_1CH_16B
) &&
14 (!nhlt_soc_add_dmic_array(nhlt
, 1)))
15 printk(BIOS_INFO
, "Added 1CH DMIC array.\n");
16 /* 2-dmic configuration */
17 if (CONFIG(NHLT_DMIC_2CH_16B
) &&
18 (!nhlt_soc_add_dmic_array(nhlt
, 2)))
19 printk(BIOS_INFO
, "Added 2CH DMIC array.\n");
20 /* 4-dmic configuration */
21 if (CONFIG(NHLT_DMIC_4CH_16B
) &&
22 (!nhlt_soc_add_dmic_array(nhlt
, 4)))
23 printk(BIOS_INFO
, "Added 4CH DMIC array.\n");
24 /* Dialog for Headset codec.
25 * Headset codec is bi-directional but uses the same configuration
26 * settings for render and capture endpoints.
28 if (!nhlt_soc_add_da7219(nhlt
, AUDIO_LINK_SSP1
))
29 printk(BIOS_INFO
, "Added Dialog_7219 codec.\n");
31 /* MAXIM Smart Amps for left and right speakers. */
32 if (!nhlt_soc_add_max98357(nhlt
, AUDIO_LINK_SSP5
))
33 printk(BIOS_INFO
, "Added Maxim_98357 codec.\n");