ASoC : cs4265 : readable register too low
authorMatt Flax <flatmax@flatmax.org>
Wed, 8 May 2019 06:33:13 +0000 (16:33 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jul 2019 07:53:31 +0000 (09:53 +0200)
commit0c19bcdb0db99be0aeef0c9055d00485fc467ca3
treec61c4c09dee89b40132b9376cec1f4b3853591cc
parentc549680ed59b4f829c1c84a56fcca8a2f7e460d2
ASoC : cs4265 : readable register too low

[ Upstream commit f3df05c805983427319eddc2411a2105ee1757cf ]

The cs4265_readable_register function stopped short of the maximum
register.

An example bug is taken from :
https://github.com/Audio-Injector/Ultra/issues/25

Where alsactl store fails with :
Cannot read control '2,0,0,C Data Buffer,0': Input/output error

This patch fixes the bug by setting the cs4265 to have readable
registers up to the maximum hardware register CS4265_MAX_REGISTER.

Signed-off-by: Matt Flax <flatmax@flatmax.org>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/cs4265.c