ASoC: sgtl5000: Fix SMALL_POP bit definition
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 14 Nov 2014 04:14:47 +0000 (02:14 -0200)
committerZefan Li <lizefan@huawei.com>
Mon, 2 Feb 2015 09:05:21 +0000 (17:05 +0800)
commitfdb554dcb0ea1c7e7233db882a396e99a2f56c49
tree76f72138f029e12c547da7656297ec76841de227
parent4c753f06b4e4b09f85fc2bb631bc5e3787bd16d0
ASoC: sgtl5000: Fix SMALL_POP bit definition

commit c251ea7bd7a04f1f2575467e0de76e803cf59149 upstream.

On a mx28evk with a sgtl5000 codec we notice a loud 'click' sound  to happen
5 seconds after the end of a playback.

The SMALL_POP bit should fix this, but its definition is incorrect:
according to the sgtl5000 manual it is bit 0 of CHIP_REF_CTRL register, not
bit 1.

Fix the definition accordingly and enable the bit as intended per the code
comment.

After applying this change, no loud 'click' sound is heard after playback

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
sound/soc/codecs/sgtl5000.c
sound/soc/codecs/sgtl5000.h