ASoC: snd_soc_codec includes snd_soc_component
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 5 Sep 2013 02:39:03 +0000 (19:39 -0700)
committerMark Brown <broonie@linaro.org>
Tue, 17 Sep 2013 12:07:13 +0000 (13:07 +0100)
commitd191bd8de8c61619563f2b19f1fdcc0944ff1a72
treebc77d6f8573b03f9f2e938d22bc2d6f3ec0b4f86
parent272b98c6455f00884f0350f775c5342358ebb73f
ASoC: snd_soc_codec includes snd_soc_component

Codec includes component by this patch,
and component moved to upside of codec
to avoid extra declaration.
Codec dai will be registered via component
by this patch.

Current component register function
is used for cpu, and it is using
dai/dais functions properly to keep
existing cpu dai name.

And now, it will be used from codec also.
But codec driver had been used dais function only
even though it was single dai.
This patch adds new flag which can selects
dai/dais function on component register
function to keep existing codec dai name.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/sound/soc.h
sound/soc/soc-core.c