summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/device/azalia_device.h5
-rw-r--r--src/mainboard/apple/macbook21/mainboard.c4
-rw-r--r--src/mainboard/asus/m2n-e/hda_verb.h2
-rw-r--r--src/mainboard/asus/m2n-e/mainboard.c1
-rw-r--r--src/mainboard/dmp/vortex86ex/hda_verb.h3
-rw-r--r--src/mainboard/dmp/vortex86ex/mainboard.c1
-rw-r--r--src/mainboard/getac/p470/hda_verb.h3
-rw-r--r--src/mainboard/getac/p470/mainboard.c2
-rw-r--r--src/mainboard/google/bolt/mainboard.c4
-rw-r--r--src/mainboard/google/butterfly/mainboard.c6
-rw-r--r--src/mainboard/google/falco/mainboard.c6
-rw-r--r--src/mainboard/google/link/mainboard.c6
-rw-r--r--src/mainboard/google/panther/mainboard.c6
-rw-r--r--src/mainboard/google/parrot/mainboard.c6
-rw-r--r--src/mainboard/google/peppy/mainboard.c6
-rw-r--r--src/mainboard/google/slippy/mainboard.c6
-rw-r--r--src/mainboard/google/stout/mainboard.c6
-rw-r--r--src/mainboard/ibase/mb899/mainboard.c5
-rw-r--r--src/mainboard/intel/baskingridge/mainboard.c4
-rw-r--r--src/mainboard/intel/cougar_canyon2/mainboard.c4
-rw-r--r--src/mainboard/intel/emeraldlake2/mainboard.c4
-rw-r--r--src/mainboard/intel/wtm2/mainboard.c4
-rw-r--r--src/mainboard/iwave/iWRainbowG6/hda_verb.h3
-rw-r--r--src/mainboard/iwave/iWRainbowG6/mainboard.c1
-rw-r--r--src/mainboard/kontron/986lcd-m/mainboard.c4
-rw-r--r--src/mainboard/kontron/ktqm77/mainboard.c4
-rw-r--r--src/mainboard/lenovo/t520/mainboard.c6
-rw-r--r--src/mainboard/lenovo/t530/mainboard.c6
-rw-r--r--src/mainboard/lenovo/x200/hda_verb.h4
-rw-r--r--src/mainboard/lenovo/x200/mainboard.c1
-rw-r--r--src/mainboard/lenovo/x201/mainboard.c4
-rw-r--r--src/mainboard/lenovo/x230/mainboard.c6
-rw-r--r--src/mainboard/msi/ms7260/mainboard.c1
-rw-r--r--src/mainboard/msi/ms9652_fam10/mainboard.c1
-rw-r--r--src/mainboard/nvidia/l1_2pvv/hda_verb.h3
-rw-r--r--src/mainboard/nvidia/l1_2pvv/mainboard.c1
-rw-r--r--src/mainboard/packardbell/ms2290/mainboard.c4
-rw-r--r--src/mainboard/roda/rk9/hda_verb.h4
-rw-r--r--src/mainboard/roda/rk9/mainboard.c1
-rw-r--r--src/mainboard/samsung/lumpy/mainboard.c6
-rw-r--r--src/mainboard/samsung/stumpy/mainboard.c6
41 files changed, 39 insertions, 121 deletions
diff --git a/src/include/device/azalia_device.h b/src/include/device/azalia_device.h
index 10bc77d8a3..2276047038 100644
--- a/src/include/device/azalia_device.h
+++ b/src/include/device/azalia_device.h
@@ -25,4 +25,9 @@
void azalia_audio_init(struct device *dev);
extern struct device_operations default_azalia_audio_ops;
+extern const u32 *cim_verb_data;
+extern u32 cim_verb_data_size;
+extern const u32 *pc_beep_verbs;
+extern u32 pc_beep_verbs_size;
+
#endif /* DEVICE_AZALIA_H */
diff --git a/src/mainboard/apple/macbook21/mainboard.c b/src/mainboard/apple/macbook21/mainboard.c
index 9a025ddf98..b537f78175 100644
--- a/src/mainboard/apple/macbook21/mainboard.c
+++ b/src/mainboard/apple/macbook21/mainboard.c
@@ -34,12 +34,10 @@
#include <arch/x86/include/arch/acpigen.h>
#include <smbios.h>
#include <x86emu/x86emu.h>
+#include <device/azalia_device.h>
#include "hda_verb.h"
#define PANEL INT15_5F35_CL_DISPLAY_DEFAULT
-extern const u32 *cim_verb_data;
-extern u32 cim_verb_data_size;
-
#if CONFIG_PCI_OPTION_ROM_RUN_YABEL || CONFIG_PCI_OPTION_ROM_RUN_REALMODE
static int int15_handler(void)
{
diff --git a/src/mainboard/asus/m2n-e/hda_verb.h b/src/mainboard/asus/m2n-e/hda_verb.h
index ec288ba41b..3adbd38859 100644
--- a/src/mainboard/asus/m2n-e/hda_verb.h
+++ b/src/mainboard/asus/m2n-e/hda_verb.h
@@ -118,5 +118,3 @@ static const u32 mainboard_cim_verb_data[] = {
0x02571f01,
};
-extern const u32 *cim_verb_data;
-extern u32 cim_verb_data_size;
diff --git a/src/mainboard/asus/m2n-e/mainboard.c b/src/mainboard/asus/m2n-e/mainboard.c
index b48d23ece2..51a44194d8 100644
--- a/src/mainboard/asus/m2n-e/mainboard.c
+++ b/src/mainboard/asus/m2n-e/mainboard.c
@@ -19,6 +19,7 @@
*/
#include <device/device.h>
+#include <device/azalia_device.h>
#include "hda_verb.h"
static void verb_setup(void)
diff --git a/src/mainboard/dmp/vortex86ex/hda_verb.h b/src/mainboard/dmp/vortex86ex/hda_verb.h
index 05563158d4..6b1620ba13 100644
--- a/src/mainboard/dmp/vortex86ex/hda_verb.h
+++ b/src/mainboard/dmp/vortex86ex/hda_verb.h
@@ -102,6 +102,3 @@ static const u32 mainboard_cim_verb_data[] = {
0x01f71e11,
0x01f71f41,
};
-
-extern const u32 *cim_verb_data;
-extern u32 cim_verb_data_size;
diff --git a/src/mainboard/dmp/vortex86ex/mainboard.c b/src/mainboard/dmp/vortex86ex/mainboard.c
index c824963b02..edf18c27a0 100644
--- a/src/mainboard/dmp/vortex86ex/mainboard.c
+++ b/src/mainboard/dmp/vortex86ex/mainboard.c
@@ -23,6 +23,7 @@
#include <arch/io.h>
#include <boot/tables.h>
#include <device/pci_def.h>
+#include <device/azalia_device.h>
#include "hda_verb.h"
static void verb_setup(void)
diff --git a/src/mainboard/getac/p470/hda_verb.h b/src/mainboard/getac/p470/hda_verb.h
index b7578cc810..dfc4d79f2e 100644
--- a/src/mainboard/getac/p470/hda_verb.h
+++ b/src/mainboard/getac/p470/hda_verb.h
@@ -103,6 +103,3 @@ static const u32 mainboard_cim_verb_data[] = {
0x01F71E11,
0x01F71F41,
};
-
-extern const u32 *cim_verb_data;
-extern u32 cim_verb_data_size;
diff --git a/src/mainboard/getac/p470/mainboard.c b/src/mainboard/getac/p470/mainboard.c
index ead665ec51..ac235d3b1f 100644
--- a/src/mainboard/getac/p470/mainboard.c
+++ b/src/mainboard/getac/p470/mainboard.c
@@ -24,6 +24,8 @@
#include <device/pci_def.h>
#include <arch/io.h>
#include <delay.h>
+#include <device/azalia_device.h>
+
#include "hda_verb.h"
#include "ec_oem.c"
diff --git a/src/mainboard/google/bolt/mainboard.c b/src/mainboard/google/bolt/mainboard.c
index 39a85ffb6d..dd5dc03f90 100644
--- a/src/mainboard/google/bolt/mainboard.c
+++ b/src/mainboard/google/bolt/mainboard.c
@@ -34,6 +34,7 @@
#include <arch/io.h>
#include <arch/interrupt.h>
#include <boot/coreboot_tables.h>
+#include <device/azalia_device.h>
#include "hda_verb.h"
#include <southbridge/intel/lynxpoint/pch.h>
#include "ec.h"
@@ -133,9 +134,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 * cim_verb_data;
-extern u32 cim_verb_data_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/google/butterfly/mainboard.c b/src/mainboard/google/butterfly/mainboard.c
index f714ca9575..85b86cbbaa 100644
--- a/src/mainboard/google/butterfly/mainboard.c
+++ b/src/mainboard/google/butterfly/mainboard.c
@@ -39,6 +39,7 @@
#include <smbios.h>
#include <device/pci.h>
#include <ec/quanta/ene_kb3940q/ec.h>
+#include <device/azalia_device.h>
#if CONFIG_CHROMEOS
#include <vendorcode/google/chromeos/fmap.h>
#else
@@ -282,11 +283,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 *cim_verb_data;
-extern u32 cim_verb_data_size;
-extern const u32 *pc_beep_verbs;
-extern u32 pc_beep_verbs_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/google/falco/mainboard.c b/src/mainboard/google/falco/mainboard.c
index 26fd6ab04e..38edb5ca48 100644
--- a/src/mainboard/google/falco/mainboard.c
+++ b/src/mainboard/google/falco/mainboard.c
@@ -36,6 +36,7 @@
#include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/lynxpoint/pch.h>
+#include <device/azalia_device.h>
#include "ec.h"
#include "onboard.h"
@@ -133,11 +134,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 * cim_verb_data;
-extern u32 cim_verb_data_size;
-extern const u32 * pc_beep_verbs;
-extern u32 pc_beep_verbs_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/google/link/mainboard.c b/src/mainboard/google/link/mainboard.c
index 9c63acd182..ee83089bbe 100644
--- a/src/mainboard/google/link/mainboard.c
+++ b/src/mainboard/google/link/mainboard.c
@@ -40,6 +40,7 @@
#include <smbios.h>
#include <device/pci.h>
#include <ec/google/chromeec/ec.h>
+#include <device/azalia_device.h>
/* placeholder for evenual link post. Not sure what we'll
* do but it will look nice
@@ -150,11 +151,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 * cim_verb_data;
-extern u32 cim_verb_data_size;
-extern const u32 * pc_beep_verbs;
-extern u32 pc_beep_verbs_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/google/panther/mainboard.c b/src/mainboard/google/panther/mainboard.c
index 0c59ded107..e4fd95b0bd 100644
--- a/src/mainboard/google/panther/mainboard.c
+++ b/src/mainboard/google/panther/mainboard.c
@@ -33,6 +33,7 @@
#include <pc80/mc146818rtc.h>
#include <southbridge/intel/lynxpoint/pch.h>
#include <x86emu/x86emu.h>
+#include <device/azalia_device.h>
#include "hda_verb.h"
#include "onboard.h"
@@ -131,11 +132,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 * cim_verb_data;
-extern u32 cim_verb_data_size;
-extern const u32 * pc_beep_verbs;
-extern u32 pc_beep_verbs_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/google/parrot/mainboard.c b/src/mainboard/google/parrot/mainboard.c
index 56a1b47b63..6aa3fcaffb 100644
--- a/src/mainboard/google/parrot/mainboard.c
+++ b/src/mainboard/google/parrot/mainboard.c
@@ -39,6 +39,7 @@
#include <smbios.h>
#include <device/pci.h>
#include <ec/compal/ene932/ec.h>
+#include <device/azalia_device.h>
void mainboard_suspend_resume(void)
{
@@ -136,11 +137,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 * cim_verb_data;
-extern u32 cim_verb_data_size;
-extern const u32 * pc_beep_verbs;
-extern u32 pc_beep_verbs_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/google/peppy/mainboard.c b/src/mainboard/google/peppy/mainboard.c
index 26fd6ab04e..38edb5ca48 100644
--- a/src/mainboard/google/peppy/mainboard.c
+++ b/src/mainboard/google/peppy/mainboard.c
@@ -36,6 +36,7 @@
#include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/lynxpoint/pch.h>
+#include <device/azalia_device.h>
#include "ec.h"
#include "onboard.h"
@@ -133,11 +134,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 * cim_verb_data;
-extern u32 cim_verb_data_size;
-extern const u32 * pc_beep_verbs;
-extern u32 pc_beep_verbs_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/google/slippy/mainboard.c b/src/mainboard/google/slippy/mainboard.c
index 26fd6ab04e..022c1e8be0 100644
--- a/src/mainboard/google/slippy/mainboard.c
+++ b/src/mainboard/google/slippy/mainboard.c
@@ -38,6 +38,7 @@
#include <southbridge/intel/lynxpoint/pch.h>
#include "ec.h"
#include "onboard.h"
+#include <device/azalia_device.h>
void mainboard_suspend_resume(void)
{
@@ -133,11 +134,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 * cim_verb_data;
-extern u32 cim_verb_data_size;
-extern const u32 * pc_beep_verbs;
-extern u32 pc_beep_verbs_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/google/stout/mainboard.c b/src/mainboard/google/stout/mainboard.c
index 8cd2fbd8c0..b0ed3c11f7 100644
--- a/src/mainboard/google/stout/mainboard.c
+++ b/src/mainboard/google/stout/mainboard.c
@@ -39,6 +39,7 @@
#include <smbios.h>
#include <device/pci.h>
#include <ec/quanta/it8518/ec.h>
+#include <device/azalia_device.h>
void mainboard_suspend_resume(void)
{
@@ -136,11 +137,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 * cim_verb_data;
-extern u32 cim_verb_data_size;
-extern const u32 * pc_beep_verbs;
-extern u32 pc_beep_verbs_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/ibase/mb899/mainboard.c b/src/mainboard/ibase/mb899/mainboard.c
index 3730984159..f78a118a10 100644
--- a/src/mainboard/ibase/mb899/mainboard.c
+++ b/src/mainboard/ibase/mb899/mainboard.c
@@ -26,7 +26,7 @@
#include <pc80/mc146818rtc.h>
#include <arch/io.h>
#include <arch/interrupt.h>
-
+#include <device/azalia_device.h>
#include "superio_hwm.h"
#if CONFIG_VGA_ROM_RUN
@@ -67,9 +67,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern u32 * cim_verb_data;
-extern u32 cim_verb_data_size;
-
static void verb_setup(void)
{
// Default VERB is fine on this mainboard.
diff --git a/src/mainboard/intel/baskingridge/mainboard.c b/src/mainboard/intel/baskingridge/mainboard.c
index 9d0809925e..61ba4aff68 100644
--- a/src/mainboard/intel/baskingridge/mainboard.c
+++ b/src/mainboard/intel/baskingridge/mainboard.c
@@ -35,6 +35,7 @@
#include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/lynxpoint/pch.h>
+#include <device/azalia_device.h>
void mainboard_suspend_resume(void)
{
@@ -130,9 +131,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 * cim_verb_data;
-extern u32 cim_verb_data_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/intel/cougar_canyon2/mainboard.c b/src/mainboard/intel/cougar_canyon2/mainboard.c
index f633279dce..1a29992103 100644
--- a/src/mainboard/intel/cougar_canyon2/mainboard.c
+++ b/src/mainboard/intel/cougar_canyon2/mainboard.c
@@ -33,6 +33,7 @@
#include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/fsp_bd82x6x/pch.h>
+#include <device/azalia_device.h>
#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)
void mainboard_suspend_resume(void)
@@ -142,9 +143,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 * cim_verb_data;
-extern u32 cim_verb_data_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/intel/emeraldlake2/mainboard.c b/src/mainboard/intel/emeraldlake2/mainboard.c
index cd8fc80e47..3c93e05926 100644
--- a/src/mainboard/intel/emeraldlake2/mainboard.c
+++ b/src/mainboard/intel/emeraldlake2/mainboard.c
@@ -35,6 +35,7 @@
#include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/bd82x6x/pch.h>
+#include <device/azalia_device.h>
void mainboard_suspend_resume(void)
{
@@ -142,9 +143,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 * cim_verb_data;
-extern u32 cim_verb_data_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/intel/wtm2/mainboard.c b/src/mainboard/intel/wtm2/mainboard.c
index 68b8c7d84f..6f6e464334 100644
--- a/src/mainboard/intel/wtm2/mainboard.c
+++ b/src/mainboard/intel/wtm2/mainboard.c
@@ -35,6 +35,7 @@
#include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/lynxpoint/pch.h>
+#include <device/azalia_device.h>
void mainboard_suspend_resume(void)
{
@@ -130,9 +131,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 * cim_verb_data;
-extern u32 cim_verb_data_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/iwave/iWRainbowG6/hda_verb.h b/src/mainboard/iwave/iWRainbowG6/hda_verb.h
index 80ed21d522..6799c12799 100644
--- a/src/mainboard/iwave/iWRainbowG6/hda_verb.h
+++ b/src/mainboard/iwave/iWRainbowG6/hda_verb.h
@@ -89,6 +89,3 @@ static u32 mainboard_cim_verb_data[] = {
/* BTL Gain */
0x017F417, /* Gain = 16.79dB */
};
-
-extern const u32 *cim_verb_data;
-extern u32 cim_verb_data_size;
diff --git a/src/mainboard/iwave/iWRainbowG6/mainboard.c b/src/mainboard/iwave/iWRainbowG6/mainboard.c
index 7c4064c9f4..0b84f6855b 100644
--- a/src/mainboard/iwave/iWRainbowG6/mainboard.c
+++ b/src/mainboard/iwave/iWRainbowG6/mainboard.c
@@ -20,6 +20,7 @@
#include <device/device.h>
#include <console/console.h>
+#include <device/azalia_device.h>
#include "hda_verb.h"
static void verb_setup(void)
diff --git a/src/mainboard/kontron/986lcd-m/mainboard.c b/src/mainboard/kontron/986lcd-m/mainboard.c
index 4f0dcdd3ca..346546a869 100644
--- a/src/mainboard/kontron/986lcd-m/mainboard.c
+++ b/src/mainboard/kontron/986lcd-m/mainboard.c
@@ -26,6 +26,7 @@
#include <pc80/mc146818rtc.h>
#include <arch/io.h>
#include <arch/interrupt.h>
+#include <device/azalia_device.h>
#define BOOT_DISPLAY_DEFAULT 0
#define BOOT_DISPLAY_CRT (1 << 0)
@@ -206,9 +207,6 @@ static void hwm_setup(void)
/* Audio Setup */
-extern u32 * cim_verb_data;
-extern u32 cim_verb_data_size;
-
static void verb_setup(void)
{
// Default VERB is fine on this mainboard.
diff --git a/src/mainboard/kontron/ktqm77/mainboard.c b/src/mainboard/kontron/ktqm77/mainboard.c
index fd9cbf14ab..4804a7eba7 100644
--- a/src/mainboard/kontron/ktqm77/mainboard.c
+++ b/src/mainboard/kontron/ktqm77/mainboard.c
@@ -35,6 +35,7 @@
#include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/bd82x6x/pch.h>
+#include <device/azalia_device.h>
void mainboard_suspend_resume(void)
{
@@ -170,9 +171,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 *cim_verb_data;
-extern u32 cim_verb_data_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/lenovo/t520/mainboard.c b/src/mainboard/lenovo/t520/mainboard.c
index d374e7e5e7..c37e6b981f 100644
--- a/src/mainboard/lenovo/t520/mainboard.c
+++ b/src/mainboard/lenovo/t520/mainboard.c
@@ -40,6 +40,7 @@
#include <cbfs.h>
#include <pc80/keyboard.h>
#include <ec/lenovo/h8/h8.h>
+#include <device/azalia_device.h>
void mainboard_suspend_resume(void)
{
@@ -139,11 +140,6 @@ const char *smbios_mainboard_version(void)
/* Audio Setup */
-extern const u32 *cim_verb_data;
-extern u32 cim_verb_data_size;
-extern const u32 *pc_beep_verbs;
-extern u32 pc_beep_verbs_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/lenovo/t530/mainboard.c b/src/mainboard/lenovo/t530/mainboard.c
index 325f90f259..b82ba7c085 100644
--- a/src/mainboard/lenovo/t530/mainboard.c
+++ b/src/mainboard/lenovo/t530/mainboard.c
@@ -40,6 +40,7 @@
#include <cbfs.h>
#include <pc80/keyboard.h>
#include <ec/lenovo/h8/h8.h>
+#include <device/azalia_device.h>
void mainboard_suspend_resume(void)
{
@@ -139,11 +140,6 @@ const char *smbios_mainboard_version(void)
/* Audio Setup */
-extern const u32 *cim_verb_data;
-extern u32 cim_verb_data_size;
-extern const u32 *pc_beep_verbs;
-extern u32 pc_beep_verbs_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/lenovo/x200/hda_verb.h b/src/mainboard/lenovo/x200/hda_verb.h
index 6c9f60b057..6be7518e1a 100644
--- a/src/mainboard/lenovo/x200/hda_verb.h
+++ b/src/mainboard/lenovo/x200/hda_verb.h
@@ -41,8 +41,6 @@ static const u32 mainboard_cim_verb_data[] = {
PIN_CFG(0x1c, 0x40f001f0),
PIN_CFG(0x1d, 0x90a601f0)
};
-extern const u32 *cim_verb_data;
-extern u32 cim_verb_data_size;
static const u32 mainboard_pc_beep_verbs[] = {
0x00170500, /* power up codec */
@@ -54,5 +52,3 @@ static const u32 mainboard_pc_beep_verbs[] = {
0x00c3b015, /* set lout1 output volume -15dB */
0x0143b000, /* unmute speakers */
};
-extern const u32 * pc_beep_verbs;
-extern u32 pc_beep_verbs_size;
diff --git a/src/mainboard/lenovo/x200/mainboard.c b/src/mainboard/lenovo/x200/mainboard.c
index ab0bc45678..a00f1851c9 100644
--- a/src/mainboard/lenovo/x200/mainboard.c
+++ b/src/mainboard/lenovo/x200/mainboard.c
@@ -35,6 +35,7 @@
#include <ec/lenovo/pmh7/pmh7.h>
#include <ec/acpi/ec.h>
#include <ec/lenovo/h8/h8.h>
+#include <device/azalia_device.h>
#include "hda_verb.h"
diff --git a/src/mainboard/lenovo/x201/mainboard.c b/src/mainboard/lenovo/x201/mainboard.c
index 0c3c49a8fb..b57d79065d 100644
--- a/src/mainboard/lenovo/x201/mainboard.c
+++ b/src/mainboard/lenovo/x201/mainboard.c
@@ -35,6 +35,7 @@
#include <ec/lenovo/h8/h8.h>
#include <northbridge/intel/nehalem/nehalem.h>
#include <southbridge/intel/bd82x6x/pch.h>
+#include <device/azalia_device.h>
#include <pc80/mc146818rtc.h>
#include "dock.h"
@@ -104,9 +105,6 @@ const char *smbios_mainboard_version(void)
/* Audio Setup */
-extern const u32 *cim_verb_data;
-extern u32 cim_verb_data_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/lenovo/x230/mainboard.c b/src/mainboard/lenovo/x230/mainboard.c
index 8c977ad96e..4e3151fef4 100644
--- a/src/mainboard/lenovo/x230/mainboard.c
+++ b/src/mainboard/lenovo/x230/mainboard.c
@@ -41,6 +41,7 @@
#include <pc80/keyboard.h>
#include <ec/lenovo/h8/h8.h>
#include <build.h>
+#include <device/azalia_device.h>
void mainboard_suspend_resume(void)
{
@@ -149,11 +150,6 @@ const char *smbios_mainboard_version(void)
/* Audio Setup */
-extern const u32 *cim_verb_data;
-extern u32 cim_verb_data_size;
-extern const u32 *pc_beep_verbs;
-extern u32 pc_beep_verbs_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/msi/ms7260/mainboard.c b/src/mainboard/msi/ms7260/mainboard.c
index bbd1e9df06..226925fd83 100644
--- a/src/mainboard/msi/ms7260/mainboard.c
+++ b/src/mainboard/msi/ms7260/mainboard.c
@@ -19,6 +19,7 @@
*/
#include <device/device.h>
+#include <device/azalia_device.h>
#if 0
#include "hda_verb.h"
diff --git a/src/mainboard/msi/ms9652_fam10/mainboard.c b/src/mainboard/msi/ms9652_fam10/mainboard.c
index c1f106919e..316a962de5 100644
--- a/src/mainboard/msi/ms9652_fam10/mainboard.c
+++ b/src/mainboard/msi/ms9652_fam10/mainboard.c
@@ -24,6 +24,7 @@
#include <device/pci.h>
#include <device/pci_ids.h>
#include <device/pci_ops.h>
+#include <device/azalia_device.h>
// #include "hda_verb.h"
static void verb_setup(void)
diff --git a/src/mainboard/nvidia/l1_2pvv/hda_verb.h b/src/mainboard/nvidia/l1_2pvv/hda_verb.h
index 763840b080..98e2a92eb9 100644
--- a/src/mainboard/nvidia/l1_2pvv/hda_verb.h
+++ b/src/mainboard/nvidia/l1_2pvv/hda_verb.h
@@ -103,6 +103,3 @@ static u32 mainboard_cim_verb_data[] = {
0x01f71ec5,
0x01f71f01,
};
-
-extern u32 *cim_verb_data;
-extern u32 cim_verb_data_size;
diff --git a/src/mainboard/nvidia/l1_2pvv/mainboard.c b/src/mainboard/nvidia/l1_2pvv/mainboard.c
index 6a300188d3..fb7317b3dd 100644
--- a/src/mainboard/nvidia/l1_2pvv/mainboard.c
+++ b/src/mainboard/nvidia/l1_2pvv/mainboard.c
@@ -24,6 +24,7 @@
#include <device/pci.h>
#include <device/pci_ids.h>
#include <device/pci_ops.h>
+#include <device/azalia_device.h>
#include "hda_verb.h"
static void verb_setup(void)
diff --git a/src/mainboard/packardbell/ms2290/mainboard.c b/src/mainboard/packardbell/ms2290/mainboard.c
index d7f45c05fb..aca221a7b3 100644
--- a/src/mainboard/packardbell/ms2290/mainboard.c
+++ b/src/mainboard/packardbell/ms2290/mainboard.c
@@ -44,6 +44,7 @@
#include <cpu/x86/lapic.h>
#include <device/pci.h>
#include <smbios.h>
+#include <device/azalia_device.h>
static acpi_cstate_t cst_entries[] = {
{1, 1, 1000, {0x7f, 1, 2, {0}, 1, 0}},
@@ -87,9 +88,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 *cim_verb_data;
-extern u32 cim_verb_data_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/roda/rk9/hda_verb.h b/src/mainboard/roda/rk9/hda_verb.h
index f99d097be6..db9e0e30e4 100644
--- a/src/mainboard/roda/rk9/hda_verb.h
+++ b/src/mainboard/roda/rk9/hda_verb.h
@@ -57,8 +57,6 @@ static const u32 mainboard_cim_verb_data[] = {
/* Pin Complex (NID 0x1f), S/PDIF-IN: not connected */
PIN_CFG(0x1f, 0x411111f0)
};
-extern const u32 *cim_verb_data;
-extern u32 cim_verb_data_size;
static const u32 mainboard_pc_beep_verbs[] = {
0x00170500, /* power up codec */
@@ -70,5 +68,3 @@ static const u32 mainboard_pc_beep_verbs[] = {
0x00c3b015, /* set lout1 output volume -15dB */
0x0143b000, /* unmute speakers */
};
-extern const u32 * pc_beep_verbs;
-extern u32 pc_beep_verbs_size;
diff --git a/src/mainboard/roda/rk9/mainboard.c b/src/mainboard/roda/rk9/mainboard.c
index 2bdec28a1c..47444153f3 100644
--- a/src/mainboard/roda/rk9/mainboard.c
+++ b/src/mainboard/roda/rk9/mainboard.c
@@ -29,6 +29,7 @@
#endif
#include <pc80/keyboard.h>
#include <ec/acpi/ec.h>
+#include <device/azalia_device.h>
#include "hda_verb.h"
#if CONFIG_GENERATE_ACPI_TABLES
diff --git a/src/mainboard/samsung/lumpy/mainboard.c b/src/mainboard/samsung/lumpy/mainboard.c
index 1c7be3bac6..ee6728f6a2 100644
--- a/src/mainboard/samsung/lumpy/mainboard.c
+++ b/src/mainboard/samsung/lumpy/mainboard.c
@@ -38,6 +38,7 @@
#include "onboard.h"
#include <southbridge/intel/bd82x6x/pch.h>
#include <smbios.h>
+#include <device/azalia_device.h>
void mainboard_suspend_resume(void)
{
@@ -136,11 +137,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 * cim_verb_data;
-extern u32 cim_verb_data_size;
-extern const u32 * pc_beep_verbs;
-extern u32 pc_beep_verbs_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;
diff --git a/src/mainboard/samsung/stumpy/mainboard.c b/src/mainboard/samsung/stumpy/mainboard.c
index 3afb2d4f13..99fe725498 100644
--- a/src/mainboard/samsung/stumpy/mainboard.c
+++ b/src/mainboard/samsung/stumpy/mainboard.c
@@ -35,6 +35,7 @@
#include <boot/coreboot_tables.h>
#include "hda_verb.h"
#include <southbridge/intel/bd82x6x/pch.h>
+#include <device/azalia_device.h>
void mainboard_suspend_resume(void)
{
@@ -129,11 +130,6 @@ static int int15_handler(void)
/* Audio Setup */
-extern const u32 * cim_verb_data;
-extern u32 cim_verb_data_size;
-extern const u32 * pc_beep_verbs;
-extern u32 pc_beep_verbs_size;
-
static void verb_setup(void)
{
cim_verb_data = mainboard_cim_verb_data;