]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: pcm3168a: remove read-only status register from snd_kcontrol_new
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 6 Nov 2018 04:33:02 +0000 (04:33 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 6 Nov 2018 17:23:00 +0000 (17:23 +0000)
commit51b3224391f7a1e4948fe24571909596b111e47e
treed361b9c9f9e7c9afb9db74aa028fa6cdf2c2d241
parent2c136ae55d60e1898250bf36bdd79129f7ffa2c5
ASoC: pcm3168a: remove read-only status register from snd_kcontrol_new

"DACn Zero Flag" and "ADCn Overflow Flag" are read-only status
register. These information are needed for driver not for user.
Let's remove these from snd_kcontrol_new.

There is no detail explanation for these register on
datasheet, but, judging from its behavior, it seems these register
needs clock to read. Otherwise, I2C returns error.
Therefor, amixer command will be failed under non working timing.

Without this patch, user often fail amixer command.
This patch is tested on R-Car H3 ulcb-kf board, SSI3/4 TDM sound.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/pcm3168a.c