]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: intel/sdw_utils: move soundwire dai type macros
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Thu, 1 Aug 2024 11:18:08 +0000 (16:48 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 1 Aug 2024 11:44:11 +0000 (12:44 +0100)
Move SoundWire dai type macros to common header file(soc_sdw_util.h).
So that these macros will be used by other platform machine driver.

Link: https://github.com/thesofproject/linux/pull/5068
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://patch.msgid.link/20240801111821.18076-2-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc_sdw_utils.h
sound/soc/intel/boards/sof_sdw_common.h

index 13941ddd24c897e1b770656dd3cde431022fcc75..7912ff7d2bb92b46964e5f163e0aa423cd571c44 100644 (file)
 #define SOC_SDW_AMP_IN_DAI_ID          3
 #define SOC_SDW_DMIC_DAI_ID            4
 
+#define SOC_SDW_DAI_TYPE_JACK          0
+#define SOC_SDW_DAI_TYPE_AMP           1
+#define SOC_SDW_DAI_TYPE_MIC           2
+
 struct asoc_sdw_codec_info;
 
 struct asoc_sdw_dai_info {
index 8bfdffde16a3a525de2cc03a7628c644bc56733f..02f3eebd019de018d16d1c3cd2b29d2751c4291e 100644 (file)
@@ -54,10 +54,6 @@ enum {
        (((quirk) << SOF_BT_OFFLOAD_SSP_SHIFT) & SOF_BT_OFFLOAD_SSP_MASK)
 #define SOF_SSP_BT_OFFLOAD_PRESENT     BIT(18)
 
-#define SOC_SDW_DAI_TYPE_JACK          0
-#define SOC_SDW_DAI_TYPE_AMP           1
-#define SOC_SDW_DAI_TYPE_MIC           2
-
 struct intel_mc_ctx {
        struct sof_hdmi_private hdmi;
        /* To store SDW Pin index for each SoundWire link */