ASoC: codec: wm8960: add additional probe check for codec identification
authorFrank Li <Frank.Li@nxp.com>
Thu, 13 Jul 2023 22:25:12 +0000 (18:25 -0400)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jul 2023 21:59:46 +0000 (22:59 +0100)
commit8b30cdbe0b911562fc1496078162dc9547b69be5
treefa1cdc848e3d57d30db42d4e3ecef46751a4de60
parentf0e5ea2c742db2a4bf3d2ea34632b29c9bb1d95e
ASoC: codec: wm8960: add additional probe check for codec identification

The wm8960 codec is not readable, resulting in a NACK for address 0x3d (8-bit).
This can partially indicate it. For example: wm8962 codec use the same address
but is readable. This additional probe check will help prevent loading the wm8960
module incorrectly on wm8962 hardware.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230713222513.1636591-1-Frank.Li@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8960.c