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)
committerMark Brown <broonie@kernel.org>
Tue, 12 May 2015 18:01:56 +0000 (19:01 +0100)
commitfdb6eb0a12871d5bfaf266c5a0d5259a5437a72f
treeb9705ad8193f8059284e88f2b74403c0b47a3fac
parentb787f68c36d49bb1d9236f403813641efa74a031
ASoC: dapm: Modify widget stream name according to prefix

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
sound/soc/soc-dapm.c