Skip to content

Commit 4cbb505

Browse files
Amadeusz Sławińskibroonie
authored andcommitted
ASoC: Intel: avs: Set name of control as in topology
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: be2b81b ("ASoC: Intel: avs: Parse control tuples") Signed-off-by: Amadeusz Sławiński <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 9a039db commit 4cbb505

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/soc/intel/avs/topology.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,8 @@ static int avs_widget_load(struct snd_soc_component *comp, int index,
15821582
if (!le32_to_cpu(dw->priv.size))
15831583
return 0;
15841584

1585+
w->no_wname_in_kcontrol_name = true;
1586+
15851587
if (w->ignore_suspend && !AVS_S0IX_SUPPORTED) {
15861588
dev_info_once(comp->dev, "Device does not support S0IX, check BIOS settings\n");
15871589
w->ignore_suspend = false;

0 commit comments

Comments
 (0)