ASoC: Intel: ssp-common: Add stub for sof_ssp_get_codec_name

BugLink: https://bugs.launchpad.net/bugs/2060097

[ Upstream commit c1469c3a8a306e5f1eab1ae9585640d08e183f87 ]

As this function is now used in sof_board_helpers it requires a build
stub for the case SSP_COMMON is not built in.

Fixes: ba0c7c3287 ("ASoC: Intel: board_helpers: support amp link initialization")
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20240208165545.93811-21-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 773264c2879a979fae9a36d88677302a2af6900e)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
This commit is contained in:
Charles Keepax
2024-02-08 10:55:41 -06:00
committed by Roxana Nicolescu
parent 514b2b5edc
commit 2ec91df821
+8
View File
@@ -67,6 +67,14 @@ enum sof_ssp_codec {
enum sof_ssp_codec sof_ssp_detect_codec_type(struct device *dev);
enum sof_ssp_codec sof_ssp_detect_amp_type(struct device *dev);
#if IS_ENABLED(CONFIG_SND_SOC_INTEL_SOF_SSP_COMMON)
const char *sof_ssp_get_codec_name(enum sof_ssp_codec codec_type);
#else
static inline const char *sof_ssp_get_codec_name(enum sof_ssp_codec codec_type)
{
return NULL;
}
#endif
#endif /* __SOF_SSP_COMMON_H */