diff mbox series

ASoC: Intel: avs: Set name of control as in topology

Message ID 20240418142621.2487478-1-amadeuszx.slawinski@linux.intel.com (mailing list archive)
State Accepted
Commit 4cbb5050bffc49c716381ea2ecb07306dd46f83a
Headers show
Series ASoC: Intel: avs: Set name of control as in topology | expand

Commit Message

Amadeusz Sławiński April 18, 2024, 2:26 p.m. UTC
When creating controls attached to widgets, there are a lot of rules if
they get their name prefixed with widget name or not. Due to that
controls ended up with weirdly looking names like "ssp0_fe DSP Volume",
while topology set it to "DSP Volume".

Fix this by setting no_wname_in_kcontrol_name to true in avs topology
widgets which disables unwanted behaviour.

Fixes: be2b81b519d7 ("ASoC: Intel: avs: Parse control tuples")
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
---
 sound/soc/intel/avs/topology.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Mark Brown April 19, 2024, 10:03 a.m. UTC | #1
On Thu, 18 Apr 2024 16:26:21 +0200, Amadeusz Sławiński wrote:
> When creating controls attached to widgets, there are a lot of rules if
> they get their name prefixed with widget name or not. Due to that
> controls ended up with weirdly looking names like "ssp0_fe DSP Volume",
> while topology set it to "DSP Volume".
> 
> Fix this by setting no_wname_in_kcontrol_name to true in avs topology
> widgets which disables unwanted behaviour.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: Intel: avs: Set name of control as in topology
      commit: 4cbb5050bffc49c716381ea2ecb07306dd46f83a

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
diff mbox series

Patch

diff --git a/sound/soc/intel/avs/topology.c b/sound/soc/intel/avs/topology.c
index 13061bd1488bb..42b42903ae9de 100644
--- a/sound/soc/intel/avs/topology.c
+++ b/sound/soc/intel/avs/topology.c
@@ -1582,6 +1582,8 @@  static int avs_widget_load(struct snd_soc_component *comp, int index,
 	if (!le32_to_cpu(dw->priv.size))
 		return 0;
 
+	w->no_wname_in_kcontrol_name = true;
+
 	if (w->ignore_suspend && !AVS_S0IX_SUPPORTED) {
 		dev_info_once(comp->dev, "Device does not support S0IX, check BIOS settings\n");
 		w->ignore_suspend = false;