ASoC: SOF: topology: Add a token for dropping widget name in kcontrol name
authorJyri Sarha <jyri.sarha@intel.com>
Mon, 14 Aug 2023 23:23:25 +0000 (18:23 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 15 Aug 2023 12:25:56 +0000 (13:25 +0100)
commit56ce7b791b787e0aee19601e422f13a18d4eafe7
tree1f172948c9f31cd1f532fd5b08b89658adce760a
parentf7f4a5ad8e11de4edb7b62d099f0501c8610c92b
ASoC: SOF: topology: Add a token for dropping widget name in kcontrol name

Adds SOF_TKN_COMP_NO_WNAME_IN_KCONTROL_NAME token, and copies the
token's tuple value to the no_wname_in_kcontrol_name flag in struct
snd_soc_dapm_widget.

If the tuple value for the token in the topology is true, then the
widget name is not added to the mixer name. In practice "gain.2.1 Post
Mixer Analog Playback Volume" becomes just "Post Mixer Analog Playback
Volume".

Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Jyri Sarha <jyri.sarha@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20230814232325.86397-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/uapi/sound/sof/tokens.h
sound/soc/sof/topology.c