ASoC: simple-card-utils: add asoc_simple_card_set_dailink_name()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 11 Jul 2016 23:57:14 +0000 (23:57 +0000)
committerMark Brown <broonie@kernel.org>
Sat, 16 Jul 2016 12:03:01 +0000 (13:03 +0100)
commit1db3312e3ab1a776ae8f414640dd7c180ce38a75
treed4d76b41550bfc4e6dee48d0b4f7291b556e9e65
parentd6a4a9a45d072e3a27ea6e5f98192d78be621a9c
ASoC: simple-card-utils: add asoc_simple_card_set_dailink_name()

Current simple-card is creating dai_link->name / dai_link->stream_name.
These are based on CPU + Codec name, or "fe.CPU" or "be.Codec" if it
was DPCM.
This patch adds asoc_simple_card_set_dailink_name() and set dailink
name as common method.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/simple_card_utils.h
sound/soc/generic/simple-card-utils.c