]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Fix wrong define for AD1836_ADC_WORD_OFFSET
authorAxel Lin <axel.lin@gmail.com>
Tue, 22 Nov 2011 01:46:51 +0000 (09:46 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 22 Nov 2011 13:06:14 +0000 (13:06 +0000)
commitc8fa7c297cba75df349c3f11facd571af2b1178b
tree54d93b34c10d8bacbb44e121e93e15f28c7655cd
parentbdb6a726227fb9cb930732d8650c208a76d03722
ASoC: Fix wrong define for AD1836_ADC_WORD_OFFSET

According to the datasheet:
The BIT[5:4] of ADC Control Register 2 is to control the word width.
        00 = 25 Bits
        01 = 20 Bits
        10 = 16 Bits
        11 = Invalid

Thus, the AD1836_ADC_WORD_OFFSET should be defined as 4.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
sound/soc/codecs/ad1836.h