summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-11-10 18:05:12 +0100
committerPaul Fagerburg <pfagerburg@chromium.org>2021-11-11 22:44:54 +0000
commit94b3735ce19ba1c551108a87f0c6188980e33e5f (patch)
treeb1668de38d358b7e9adc2d94f5f42baa842028fd /src/soc
parent86dfd3c08329ff59c976c24fa47a2d2f6c88c1b5 (diff)
haswell/lynxpoint/broadwell: Use `azalia_codec_init()`
Use the functionally-equivalent common Azalia code to get rid of redundant code. Change-Id: I83cf1a3a1a3854c9283ccac5e254357a32638dda Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/59118 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/broadwell/minihd.c5
-rw-r--r--src/soc/intel/broadwell/pch/hda.c4
2 files changed, 4 insertions, 5 deletions
diff --git a/src/soc/intel/broadwell/minihd.c b/src/soc/intel/broadwell/minihd.c
index a07d9b1524..396c283845 100644
--- a/src/soc/intel/broadwell/minihd.c
+++ b/src/soc/intel/broadwell/minihd.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <console/console.h>
+#include <device/azalia_device.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
@@ -79,8 +80,8 @@ static void minihd_init(struct device *dev)
if (codec_mask) {
for (i = 3; i >= 0; i--) {
if (codec_mask & (1 << i))
- hda_codec_init(base, i, sizeof(minihd_verb_table),
- minihd_verb_table);
+ azalia_codec_init(base, i, minihd_verb_table,
+ sizeof(minihd_verb_table));
}
}
diff --git a/src/soc/intel/broadwell/pch/hda.c b/src/soc/intel/broadwell/pch/hda.c
index 2230614887..5c5e08fc31 100644
--- a/src/soc/intel/broadwell/pch/hda.c
+++ b/src/soc/intel/broadwell/pch/hda.c
@@ -18,9 +18,7 @@ static void codecs_init(u8 *base, u32 codec_mask)
/* Can support up to 4 codecs */
for (i = 3; i >= 0; i--) {
if (codec_mask & (1 << i))
- hda_codec_init(base, i,
- cim_verb_data_size,
- cim_verb_data);
+ azalia_codec_init(base, i, cim_verb_data, cim_verb_data_size);
}
if (pc_beep_verbs_size)