]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tlv320dac33: Add support for automatic FIFO configuration
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>
Wed, 28 Jul 2010 12:26:55 +0000 (15:26 +0300)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Thu, 29 Jul 2010 09:21:11 +0000 (10:21 +0100)
commitb47b7401ab0443615f53693c5f6c2931332e6e79
tree6e2dc8b7f900743cf5cf2b23fa89b34480cec3f8
parent2c7ce7a39122be443073fba0a4317b224d15fa76
ASoC: tlv320dac33: Add support for automatic FIFO configuration

Platform parameter to enable automatic FIFO configuration when
the codec is in Mode1 or Mode7 FIFO mode.
When this mode is selected, the controls for changing
nSample (in Mode1), and UTHR (in Mode7) are not added.
The driver configures the FIFO configuration based on
the stream's period size in a way, that every burst will
read period size of data from the host.
In Mode7 we need to use a formula, which gives close enough
aproximation for the burst length from the host point
of view.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
include/sound/tlv320dac33-plat.h
sound/soc/codecs/tlv320dac33.c