]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ASoC: topology: Correctly set shift_r in soc_tplg_denum_create()
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Thu, 27 Jun 2024 10:18:44 +0000 (12:18 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 2 Jul 2024 13:27:03 +0000 (14:27 +0100)
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>
Link: https://patch.msgid.link/20240627101850.2191513-8-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c

index 6a2a8249903d379363f9fce59d8e2ac729939053..e6eb514de56970c3f8d9f7aadd178f0ef74aa86b 100644 (file)
@@ -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;