]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:52:21 +0000 (09:52 +0200)
commit635bd38a42948728a63c198671fa99548b9f7f42
tree27e73d4c03a44c1aec9c342db8384ba4db33fd50
parente3d95782b5baa91cb10240cd9e238bf516fbaea2
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