OSDN Git Service

ASoC: wm8962: Do not access WM8962_GPIO_BASE
authorFabio Estevam <festevam@gmail.com>
Fri, 17 Jul 2020 13:59:59 +0000 (10:59 -0300)
committerMark Brown <broonie@kernel.org>
Thu, 30 Jul 2020 21:54:38 +0000 (22:54 +0100)
commit658bb297e3930b90f80c08ddff18b4065b89a132
tree5e9a1056cd183577d07ddf61d9fca71864f9c764
parentafd842c031408f9eaf689ff417071eed15afa05e
ASoC: wm8962: Do not access WM8962_GPIO_BASE

According to the WM8962 datasheet, there is no register at address 0x200.

WM8962_GPIO_BASE is just a base address for the GPIO registers and not a
real register, so remove it from wm8962_readable_register().

Also, Register 515 (WM8962_GPIO_BASE + 3) does not exist, so skip
its access.

This fixes the following errors:

wm8962 0-001a: ASoC: error at soc_component_read_no_lock on wm8962.0-001a: -16
wm8962 0-001a: ASoC: error at soc_component_read_no_lock on wm8962.0-001a: -16

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20200717135959.19212-1-festevam@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8962.c