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:55:42 +0000 (09:55 +0200)
commitcbb066f11d87b55257e571576ec297ac7d5a5a85
tree5b053b0cec41b5d00d2bfc00803116d9a0210551
parentf470557724f2c94c25e4f6480a41612cf42aff26
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