]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: dapm: Modify widget stream name according to prefix
authorKoro Chen <koro.chen@mediatek.com>
Mon, 11 May 2015 02:36:53 +0000 (10:36 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 10 Jun 2015 17:42:11 +0000 (13:42 -0400)
commitf223455e2074c3bf929fc5e427ad68f06a252554
treeb33f35f0744e5dd6bf19a63262c0bc81126fbc14
parentc9717bdb1c17a76def4d98da16a5053fd916bee4
ASoC: dapm: Modify widget stream name according to prefix

[ Upstream commit fdb6eb0a12871d5bfaf266c5a0d5259a5437a72f ]

When there is prefix specified, currently we will add this prefix in
widget->name, but not in widget->sname.
it causes failure at snd_soc_dapm_link_dai_widgets:

if (!w->sname || !strstr(w->sname, dai_w->name))

because dai_w->name has prefix added, but w->sname does not.
We should also add prefix for stream name

Signed-off-by: Koro Chen <koro.chen@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
sound/soc/soc-dapm.c