diff options
author | Lukasz Majewski <lukma@denx.de> | 2022-12-16 10:46:24 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-12-25 23:33:30 +0000 |
commit | a5c26ee572d94337baf9c944b7b4881a2db62d37 (patch) | |
tree | 95a14b77677c61a342dba4a1bc0218fb147b26af /sound/soc/codecs/rt5640.h | |
parent | 294833fc9eb4e9d6c69f8d158cd991d641e59908 (diff) | |
download | linux-a5c26ee572d94337baf9c944b7b4881a2db62d37.tar.gz linux-a5c26ee572d94337baf9c944b7b4881a2db62d37.tar.bz2 linux-a5c26ee572d94337baf9c944b7b4881a2db62d37.zip |
ASoC: wm8940: Read chip ID when wm8940 codec probing
The wm8940 provides the chip ID information via I2C. In this
patch this information is read and if not matching expected
value, the probe function is aborted.
This prevents from using (i.e. inserting) other wm89* modules
which use the same I2C bus address.
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20221216094624.3849278-3-lukma@denx.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5640.h')
0 files changed, 0 insertions, 0 deletions