]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: sdw_utils: avoid the SDCA companion function not supported failure
authorDerek Fang <derek.fang@realtek.com>
Thu, 30 Apr 2026 12:10:43 +0000 (20:10 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 4 May 2026 13:06:07 +0000 (22:06 +0900)
Treat the companion amp as generic AMP until full support for companion
amp is added.

Signed-off-by: Derek Fang <derek.fang@realtek.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20260430121043.552241-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdw_utils/soc_sdw_utils.c

index 1637cc3f3d598c0eaf291305aaaf898d0afdb3b1..849ae876d7a44282002c54bbbb601ab27d5b7f6e 100644 (file)
@@ -1608,6 +1608,7 @@ int asoc_sdw_get_dai_type(u32 type)
        switch (type) {
        case SDCA_FUNCTION_TYPE_SMART_AMP:
        case SDCA_FUNCTION_TYPE_SIMPLE_AMP:
+       case SDCA_FUNCTION_TYPE_COMPANION_AMP:
                return SOC_SDW_DAI_TYPE_AMP;
        case SDCA_FUNCTION_TYPE_SMART_MIC:
        case SDCA_FUNCTION_TYPE_SIMPLE_MIC: