ASoC: core: Fix check before setting default I/O up try regmap
commita32c17b87c17f5e2e68edcf4d163ee42f9490652
authorXiubo Li <Li.Xiubo@freescale.com>
Tue, 11 Mar 2014 04:43:22 +0000 (11 12:43 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 11 Mar 2014 09:59:06 +0000 (11 09:59 +0000)
tree3f1d0b9e20208ce3d62d57444352b981b61682cb
parent092eba937d948a76ff55825922eff4df010f6a17
ASoC: core: Fix check before setting default I/O up try regmap

Since the CODEC driver could specify its own I/O(read and write)
while registering the CODEC for some reason, maybe the MFDs is
used, etc.

So just do check it, if they are not specified by CODEC driver
then try to set up the default regmap I/O if regmap is used.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-core.c