]> git.hungrycats.org Git - linux/commit
ASoC: soc_sdw_utils: add is_amp flag to all amps
authorBard Liao <yung-chuan.liao@linux.intel.com>
Fri, 5 Jun 2026 10:18:04 +0000 (18:18 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jun 2026 11:06:07 +0000 (12:06 +0100)
commitdb06e7b35c1c9ffcc7486875139fa728f895f351
tree60ab40499c74aa4a3766d6e72bc878f42108b96c
parente43ffb69e0438cddd72aaa30898b4dc446f664f8
ASoC: soc_sdw_utils: add is_amp flag to all amps

The is_amp flag will be used for the codec name_prefix.
We detect it by checking if the codec support endpoints other than amp.
However, it is not accurate. Currently, the is_amp flag is only set to
the amps that include other types of endpoints. But it can't cover the
case that a monolithic codec that only the amp endpoint is present.
Add the is_amp flag to all amp type codecs and will set the name_prefix
by the flag in the follow up commit.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260605101805.121428-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdw_utils/soc_sdw_utils.c