diff mbox series

[07/13] ASoC: topology: Correctly set shift_r in soc_tplg_denum_create()

Message ID 20240627101850.2191513-8-amadeuszx.slawinski@linux.intel.com (mailing list archive)
State New
Headers show
Series ASoC: topology: kcontrol registration cleanup | expand

Commit Message

Amadeusz Sławiński June 27, 2024, 10:18 a.m. UTC
This aligns soc_tplg_denum_create() with
soc_tplg_dapm_widget_denum_create(), as there is no reason for
difference in behavior.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
---
 sound/soc/soc-topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c
index 6a2a8249903d3..e6eb514de5697 100644
--- a/sound/soc/soc-topology.c
+++ b/sound/soc/soc-topology.c
@@ -891,7 +891,7 @@  static int soc_tplg_denum_create(struct soc_tplg *tplg, size_t size)
 	se->shift_l = tplg_chan_get_shift(tplg, ec->channel,
 		SNDRV_CHMAP_FL);
 	se->shift_r = tplg_chan_get_shift(tplg, ec->channel,
-		SNDRV_CHMAP_FL);
+		SNDRV_CHMAP_FR);
 
 	se->mask = le32_to_cpu(ec->mask);
 	se->dobj.index = tplg->index;