summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof
diff options
context:
space:
mode:
authorYong Zhi <yong.zhi@intel.com>2024-04-26 10:38:59 -0500
committerMark Brown <broonie@kernel.org>2024-04-30 00:16:34 +0900
commit490e6c9b81e0c22087d250246717aee26ac5002e (patch)
treed13a747eaf497bd835e4dc6bcbf0ab9cbf3f2274 /sound/soc/sof
parentb32487ca7b51ce430f15ec785269f11c25a6a560 (diff)
downloadlinux-stable-490e6c9b81e0c22087d250246717aee26ac5002e.tar.gz
linux-stable-490e6c9b81e0c22087d250246717aee26ac5002e.tar.bz2
linux-stable-490e6c9b81e0c22087d250246717aee26ac5002e.zip
ASoC: SOF: topology: remove incorrect widget id in error message
In sof_widget_ready() function, the shift field of struct snd_soc_tplg_dapm_widget is incorrectly used to print widget id in dev_err(scomp->dev, "error: failed to add widget id %d ..", this patch removes the useless tw->shift from the error output. Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Yong Zhi <yong.zhi@intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20240426153902.39560-3-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof')
-rw-r--r--sound/soc/sof/topology.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/soc/sof/topology.c b/sound/soc/sof/topology.c
index bcdb499c96a0..ec931a26b54f 100644
--- a/sound/soc/sof/topology.c
+++ b/sound/soc/sof/topology.c
@@ -1531,10 +1531,9 @@ static int sof_widget_ready(struct snd_soc_component *scomp, int index,
/* check token parsing reply */
if (ret < 0) {
dev_err(scomp->dev,
- "error: failed to add widget id %d type %d name : %s stream %s\n",
- tw->shift, swidget->id, tw->name,
- strnlen(tw->sname, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) > 0
- ? tw->sname : "none");
+ "failed to add widget type %d name : %s stream %s\n",
+ swidget->id, tw->name, strnlen(tw->sname, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) > 0
+ ? tw->sname : "none");
goto widget_free;
}