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: SDCA: Add companion amp Function

Add companion amp into the list of allowed SDCA Functions. More work
will be required to fully support companion amp, but this will let parts
including companion amp functions boot and it is a good first step to
proper support.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Tested-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20251111140617.2997454-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Charles Keepax and committed by
Mark Brown
f5cb3ee2 94000534

+5
+3
include/sound/sdca_function.h
··· 64 64 * @SDCA_FUNCTION_TYPE_RJ: Retaskable jack. 65 65 * @SDCA_FUNCTION_TYPE_SIMPLE_JACK: Subset of UAJ. 66 66 * @SDCA_FUNCTION_TYPE_HID: Human Interface Device, for e.g. buttons. 67 + * @SDCA_FUNCTION_TYPE_COMPANION_AMP: Sources audio from another amp. 67 68 * @SDCA_FUNCTION_TYPE_IMP_DEF: Implementation-defined function. 68 69 * 69 70 * SDCA Function Types from SDCA specification v1.0a Section 5.1.2 ··· 84 83 SDCA_FUNCTION_TYPE_RJ = 0x07, 85 84 SDCA_FUNCTION_TYPE_SIMPLE_JACK = 0x08, 86 85 SDCA_FUNCTION_TYPE_HID = 0x0A, 86 + SDCA_FUNCTION_TYPE_COMPANION_AMP = 0x0B, 87 87 SDCA_FUNCTION_TYPE_IMP_DEF = 0x1F, 88 88 }; 89 89 ··· 98 96 #define SDCA_FUNCTION_TYPE_RJ_NAME "RJ" 99 97 #define SDCA_FUNCTION_TYPE_SIMPLE_NAME "SimpleJack" 100 98 #define SDCA_FUNCTION_TYPE_HID_NAME "HID" 99 + #define SDCA_FUNCTION_TYPE_COMPANION_AMP_NAME "CompanionAmp" 101 100 #define SDCA_FUNCTION_TYPE_IMP_DEF_NAME "ImplementationDefined" 102 101 103 102 /**
+2
sound/soc/sdca/sdca_functions.c
··· 79 79 return SDCA_FUNCTION_TYPE_SPEAKER_MIC_NAME; 80 80 case SDCA_FUNCTION_TYPE_RJ: 81 81 return SDCA_FUNCTION_TYPE_RJ_NAME; 82 + case SDCA_FUNCTION_TYPE_COMPANION_AMP: 83 + return SDCA_FUNCTION_TYPE_COMPANION_AMP_NAME; 82 84 case SDCA_FUNCTION_TYPE_IMP_DEF: 83 85 return SDCA_FUNCTION_TYPE_IMP_DEF_NAME; 84 86 default: