diff options
author | Peter Ujfalusi <peter.ujfalusi@nokia.com> | 2010-07-28 08:26:55 -0400 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2010-07-29 05:21:11 -0400 |
commit | a577b318fc7cb0c46f9f0cdefb5b267490ff8ce5 (patch) | |
tree | 6e2dc8b7f900743cf5cf2b23fa89b34480cec3f8 /include/sound | |
parent | f430a27f05d42d26d3e438aa262a92565170573f (diff) |
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>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/tlv320dac33-plat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/tlv320dac33-plat.h b/include/sound/tlv320dac33-plat.h index 1aa7bdbc208c..6c6649656798 100644 --- a/include/sound/tlv320dac33-plat.h +++ b/include/sound/tlv320dac33-plat.h | |||
@@ -16,6 +16,7 @@ | |||
16 | struct tlv320dac33_platform_data { | 16 | struct tlv320dac33_platform_data { |
17 | int power_gpio; | 17 | int power_gpio; |
18 | int mode1_latency; /* latency caused by the i2c writes in us */ | 18 | int mode1_latency; /* latency caused by the i2c writes in us */ |
19 | int auto_fifo_config; /* FIFO config based on the period size */ | ||
19 | int keep_bclk; /* Keep the BCLK running in FIFO modes */ | 20 | int keep_bclk; /* Keep the BCLK running in FIFO modes */ |
20 | u8 burst_bclkdiv; | 21 | u8 burst_bclkdiv; |
21 | }; | 22 | }; |