ASoC: Intel: ssp-common: support codec detection
authorBrent Lu <brent.lu@intel.com>
Fri, 15 Sep 2023 12:48:35 +0000 (20:48 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 15 Sep 2023 13:44:32 +0000 (14:44 +0100)
commit4b38d63916ab0d21c9eb967087e9ccb99d151696
treed2d4c3c11e728ad730903a5dd9d9b62b66227518
parent95409545095bca8fd6a48bc66c401e101dfc57e6
ASoC: Intel: ssp-common: support codec detection

Create a new common module to host functions which could be shared
among SSP machine drivers. Add functions to detect headphone codec and
speaker amplifier via ACPI system at runtime in order to remove codec
type quirks in machine drivers.

Signed-off-by: Brent Lu <brent.lu@intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20230915124852.1696857-3-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/Kconfig
sound/soc/intel/boards/Makefile
sound/soc/intel/boards/sof_ssp_common.c [new file with mode: 0644]
sound/soc/intel/boards/sof_ssp_common.h [new file with mode: 0644]