coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
hda_verb.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <console/console.h>
4 #include <device/azalia_device.h>
5 #include <option.h>
6 #include <types.h>
7 
8 #define AZALIA_CODEC_ALC256 0x10ec0256
9 #define AZALIA_CODEC_ALC269 0x10ec0269
10 
11 static const u32 override_verb[] = {
12  AZALIA_PIN_CFG(0, 0x12, 0x411111f0),
13 };
14 
15 static void disable_microphone(u8 *base)
16 {
18 }
19 
21 {
22  if (viddid == AZALIA_CODEC_ALC256 || viddid == AZALIA_CODEC_ALC269) {
23  printk(BIOS_DEBUG, "CMOS: viddid = %08x\n", viddid);
24  if (get_uint_option("microphone", 1) == 0)
26  }
27 }
int azalia_program_verb_table(u8 *base, const u32 *verbs, u32 verb_size)
#define AZALIA_PIN_CFG(codec, pin, val)
#define ARRAY_SIZE(a)
Definition: helpers.h:12
#define printk(level,...)
Definition: stdlib.h:16
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
Definition: loglevel.h:128
void mainboard_azalia_program_runtime_verbs(u8 *base, u32 viddid)
Definition: hda_verb.c:160
static void disable_microphone(u8 *base)
Definition: hda_verb.c:15
#define AZALIA_CODEC_ALC269
Definition: hda_verb.c:9
#define AZALIA_CODEC_ALC256
Definition: hda_verb.c:8
static const u32 override_verb[]
Definition: hda_verb.c:11
unsigned int get_uint_option(const char *name, const unsigned int fallback)
Definition: option.c:116
uintptr_t base
Definition: uart.c:17
uint32_t u32
Definition: stdint.h:51
uint8_t u8
Definition: stdint.h:45