]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5640: add default case for unexpected ID
authorBard Liao <bardliao@realtek.com>
Tue, 6 May 2014 07:56:06 +0000 (15:56 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 12 May 2014 21:09:30 +0000 (22:09 +0100)
commit9aa9a12fdc88f9f1408a1deb4400db663d4fce37
tree820737ff87e85dc429ad2f6e55312b6e45b5f15c
parent66be80d60fd2426c8da56c7cb1599c7233a704ed
ASoC: rt5640: add default case for unexpected ID

We may read an unexpected value when detemining which codec is attached.
In that case, either a unsupported codec is attached or something wrong
with I2C. The driver will not work properly on both cases. So we return
an error for that.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/rt5640.c