ASoC: rt5640: Add minimal support for RT5642
authorBard Liao <bardliao@realtek.com>
Thu, 17 Apr 2014 02:24:06 +0000 (10:24 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 22 Apr 2014 11:52:08 +0000 (12:52 +0100)
commit8bfc6d2d1b6266e8da2a7cf89e8d05e2ea8b09e5
tree5b75b1a2fe6bfa37a32b7d3d0405b34c0a32e2f8
parent908b7032a8b5cb7110beac213f7d3058097fa5aa
ASoC: rt5640: Add minimal support for RT5642

We have been using rt5640.c codec driver with RT5642 codec chip before commit
022d21f004c1 ("ASoC: rt5640: add rt5639 support"). That commits starts using
device ID reading in reset register for adding device specific controls and
routes runtime.

Now since device ID appears to be different between RT5640 and RT5642 the
driver doesn't add those controls and routes that are valid also on RT5642.

Fix this by adding a device ID found by debugging and minimal code for
supporting RT5642.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/rt5640.c
sound/soc/codecs/rt5640.h