OSDN Git Service

ASoC: wm8994: Prevent access to invalid VU register bits on WM1811
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Tue, 4 Aug 2020 14:10:43 +0000 (16:10 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 17 Aug 2020 11:28:54 +0000 (12:28 +0100)
commit314213c15702f7598c486cf8c94f617719dfe339
tree235022c34f979ed08c3fc41941122a02c7844bfe
parent796a58fe2b8c9b6668db00d92512ec84be663027
ASoC: wm8994: Prevent access to invalid VU register bits on WM1811

The ADC2 and DAC2 are not available on WM1811 device. This patch moves
the ADC2, DAC2 VU bitfields to a separate array so we can skip accessing
them and avoid unreadable register access on WM1811.

This allows to get rid of warnings during boot like:
wm8994-codec: ASoC: error at soc_component_read_no_lock on wm8994-codec: -5

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Link: https://lore.kernel.org/r/20200804141043.11425-1-s.nawrocki@samsung.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8994.c