Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

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: ba0c7c328762 ("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>

authored by

Charles Keepax and committed by
Mark Brown
c1469c3a c13e0312

+8
+8
sound/soc/intel/boards/sof_ssp_common.h
··· 67 67 68 68 enum sof_ssp_codec sof_ssp_detect_codec_type(struct device *dev); 69 69 enum sof_ssp_codec sof_ssp_detect_amp_type(struct device *dev); 70 + 71 + #if IS_ENABLED(CONFIG_SND_SOC_INTEL_SOF_SSP_COMMON) 70 72 const char *sof_ssp_get_codec_name(enum sof_ssp_codec codec_type); 73 + #else 74 + static inline const char *sof_ssp_get_codec_name(enum sof_ssp_codec codec_type) 75 + { 76 + return NULL; 77 + } 78 + #endif 71 79 72 80 #endif /* __SOF_SSP_COMMON_H */