From ed9b350478f0156108d63c6758740cd6f5b83faa Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Wed, 10 Nov 2021 17:28:58 +0100 Subject: [PATCH] sb/intel/i82801{ix,jx}: Initialise all codecs These southbridges support four external codecs, not three. Change-Id: I3f352451d16dceefa0f3fabf413a0e57aa498df5 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/59109 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/southbridge/intel/i82801ix/azalia.c | 2 +- src/southbridge/intel/i82801jx/azalia.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/southbridge/intel/i82801ix/azalia.c b/src/southbridge/intel/i82801ix/azalia.c index ca1b0b333f..4fc2343f34 100644 --- a/src/southbridge/intel/i82801ix/azalia.c +++ b/src/southbridge/intel/i82801ix/azalia.c @@ -124,7 +124,7 @@ static void codecs_init(struct device *dev, u8 *base, u32 codec_mask) { int i; - for (i = 2; i >= 0; i--) { + for (i = 3; i >= 0; i--) { if (codec_mask & (1 << i)) codec_init(dev, base, i); } diff --git a/src/southbridge/intel/i82801jx/azalia.c b/src/southbridge/intel/i82801jx/azalia.c index 8862628e7c..2f58d071fe 100644 --- a/src/southbridge/intel/i82801jx/azalia.c +++ b/src/southbridge/intel/i82801jx/azalia.c @@ -124,7 +124,7 @@ static void codecs_init(struct device *dev, u8 *base, u32 codec_mask) { int i; - for (i = 2; i >= 0; i--) { + for (i = 3; i >= 0; i--) { if (codec_mask & (1 << i)) codec_init(dev, base, i); }