mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / starlabs / byte_adl / hda_verb.c
blobca69ef9f7d6b80eeffc5a8e0936bcbf66083ed36
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <device/azalia_device.h>
5 #include <option.h>
6 #include <types.h>
8 #define AZALIA_CODEC_SN6140 0x14f11f87
10 static const u32 override_verb[] = {
11 AZALIA_PIN_CFG(0, 0x1a, 0x00000000),
14 static void disable_microphone(u8 *base)
16 azalia_program_verb_table(base, override_verb, ARRAY_SIZE(override_verb));
19 void mainboard_azalia_program_runtime_verbs(u8 *base, u32 viddid)
21 if (viddid == AZALIA_CODEC_SN6140) {
22 printk(BIOS_DEBUG, "CMOS: viddid = %08x\n", viddid);
23 if (get_uint_option("microphone", 1) == 0)
24 disable_microphone(base);