diff options
author | Peter Ujfalusi <peter.ujfalusi@nokia.com> | 2009-10-15 02:03:56 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-10-15 10:02:04 -0400 |
commit | c8bf93f0fe8c5a509a29e30f3bac823fa0f6d96e (patch) | |
tree | 2424eb4912787cafcd1fde38711a945cd23fe104 /include/sound/tlv320dac33-plat.h | |
parent | 640fb39e386a0dac9014e5b8a512de0950e30288 (diff) |
ASoC: Codec driver for Texas Instruments tlv320dac33 codec
Driver for Texas Instruments TLV320DAC33 (SLAS546) low power stereo
audio DAC.
TLV320DAC33 is a stereo audio codec with integrated 24KB FIFO for low
power audio playback.
The digital interface can use I2S, DSP (A or B), Right and Left
justified formats.
DAC33 has stereo analog input, which can be bypassed to the analog
outputs.
Regarding to the internal 24KB FIFO the driver implements 'FIFO bypass'
mode (default) and nSample mode (FIFO is in use).
a) In 'FIFO bypass' mode the internal FIFO is not in use, the codec is
working synchronously as a normal codec (it needs constant stream of
data on the digital interface).
b) The nSample mode implementation uses one interrupt line from DAC33 to
the host:
Alarm threshold is set to 10ms of audio data (limit by the driver
implementation).
DAC33 will signal an interrupt, when the FIFO level goes under the
Alarm threshold.
The host will write to nSample register a value (number of stereo
samples), to tell DAC33 how many samples it should read in a burst from
the host. When the DAC33 received the number of samples, it disables the
clocks on the I2S bus. When the FIFO use again goes under the Alarm
threshold, DAC33 signals the host with an interrupt, and the process is
repeated.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound/tlv320dac33-plat.h')
-rw-r--r-- | include/sound/tlv320dac33-plat.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/sound/tlv320dac33-plat.h b/include/sound/tlv320dac33-plat.h new file mode 100644 index 000000000000..5858d06a7ffa --- /dev/null +++ b/include/sound/tlv320dac33-plat.h | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | * Platform header for Texas Instruments TLV320DAC33 codec driver | ||
3 | * | ||
4 | * Author: Peter Ujfalusi <peter.ujfalusi@nokia.com> | ||
5 | * | ||
6 | * Copyright: (C) 2009 Nokia Corporation | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #ifndef __TLV320DAC33_PLAT_H | ||
14 | #define __TLV320DAC33_PLAT_H | ||
15 | |||
16 | struct tlv320dac33_platform_data { | ||
17 | int power_gpio; | ||
18 | }; | ||
19 | |||
20 | #endif /* __TLV320DAC33_PLAT_H */ | ||