device/azalia_device.c: Introduce AZALIA_MAX_CODECS

Add the AZALIA_MAX_CODECS Kconfig option and use it.

Change-Id: Ibb10c2f2992257bc261e6cb35f11cc4b2d956054
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51640
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
Angel Pons
2021-03-18 16:00:14 +01:00
committed by Patrick Georgi
parent 6da78660d0
commit 5d31dfa8df
2 changed files with 12 additions and 3 deletions

View File

@@ -519,6 +519,14 @@ config AZALIA_PLUGIN_SUPPORT
bool
default n
config AZALIA_MAX_CODECS
int
depends on AZALIA_PLUGIN_SUPPORT
default 3
range 1 15
help
The maximum number of codecs supported on a single HD Audio controller.
config PCIEXP_PLUGIN_SUPPORT
bool
default y