]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.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)
commita577b318fc7cb0c46f9f0cdefb5b267490ff8ce5
tree6e2dc8b7f900743cf5cf2b23fa89b34480cec3f8
parentf430a27f05d42d26d3e438aa262a92565170573f
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