linux/sound/soc/davinci
Michal Bachraty dde109fb46 ASoC: McASP: Fix data rotation for playback. Enables 24bit audio playback
u32 rotate = (32 - word_length) / 4;
This implementation is wrong, but it works only for 16, or 32 bit audio data.
(rotation for 16 or 32 bit is same as in code I present) Mcasp rotated data in
4 bits (max value 0x7)and then masks them . That data are sended to i2s bus.
For 24 bit or 20 bit or other data formats, this code rotates data badly and
you hear somethink like noise.  You need to use
u32 rotate = (word_length / 4) & 0x7;
to proper data rotation.

Signed-off-by: Michal Bachraty <michal.bachraty@streamunlimited.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2013-01-27 14:14:46 +08:00
..
davinci-evm.c ASoC: McASP: make AHCLK direction configurable 2012-10-15 11:24:47 +09:00
davinci-i2s.c ASoC/ARM: Davinci: McASP: split asp header into platform and audio specific 2012-08-27 11:12:09 -07:00
davinci-i2s.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
davinci-mcasp.c ASoC: McASP: Fix data rotation for playback. Enables 24bit audio playback 2013-01-27 14:14:46 +08:00
davinci-mcasp.h ASoC: McASP: implement a way to force BCLK/LRCLK ratios 2012-12-07 14:47:10 +09:00
davinci-pcm.c ASoC: davinci: replace private sram api with genalloc 2012-10-22 14:58:34 +01:00
davinci-pcm.h ASoC: davinci: replace private sram api with genalloc 2012-10-22 14:58:34 +01:00
davinci-sffsdr.c ASoC: davinci: davinci-pcm does not need to be a plaform_driver 2012-08-27 11:12:08 -07:00
davinci-vcif.c ASoC: davinci: davinci-pcm does not need to be a plaform_driver 2012-08-27 11:12:08 -07:00
Kconfig Drop default from "DM365 codec select" choice 2011-10-13 18:19:31 +02:00
Makefile ASoC: DaVinci: Voice Codec Interface 2010-03-12 11:12:21 +00:00