ASoC: Intel: maxim-common: get codec number from ACPI table
authorBrent Lu <brent.lu@intel.com>
Mon, 31 Jul 2023 10:34:19 +0000 (18:34 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 31 Jul 2023 17:22:43 +0000 (18:22 +0100)
commit36eb986845a8ca87c1f7f91976fad53ee249ae8c
tree52ca861a0d00e756791e93c6e829102398e911e6
parent138b5c278a9e8359b968d2a8c107614660913588
ASoC: Intel: maxim-common: get codec number from ACPI table

We implement a helper function to get number of codecs from ACPI
subsystem instead of using quirk flag in machine driver. Also refactor
module interface by adding max_98390_dai_link() function.

On the sof_rt5682 machine driver side, we remove the quirk flag
SOF_MAX98390_TWEETER_SPEAKER_PRESENT and use the new interface of
max98390 to setup dai link.

Signed-off-by: Brent Lu <brent.lu@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20230731103419.2536036-2-brent.lu@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_maxim_common.c
sound/soc/intel/boards/sof_maxim_common.h
sound/soc/intel/boards/sof_rt5682.c