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>
This commit is contained in:
committed by
Paul Fagerburg
parent
86dfd3c083
commit
94b3735ce1
@@ -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>
|
||||
@@ -78,8 +79,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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user