]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita9b06d1b2c90177eedff650b1908f009e66abee2
tree5b75b1a2fe6bfa37a32b7d3d0405b34c0a32e2f8
parente198ab8eaeece4f8b081bc3b04eb465c39986bfc
ASoC: rt5640: Add minimal support for RT5642

We have been using rt5640.c codec driver with RT5642 codec chip before commit
02ff372bb7fc ("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