aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-04-20 13:29:00 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-04-22 06:27:04 -0400
commitd1e1406c6ed0b92200a7de2a09fbab65661dba3c (patch)
treeb29e9b0f9c068b97e3318a5dbafa0c75cf710399 /include
parent22f38f792ec53e2a93be13ecb609bbe911ed8ff9 (diff)
ASoC: generic-dmaengine-pcm: Add support for half-duplex
Some platforms which are half-duplex share the same DMA channel between the playback and capture stream. Add support for this to the generic dmaengine PCM driver. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Tested-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include')
-rw-r--r--include/sound/dmaengine_pcm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sound/dmaengine_pcm.h b/include/sound/dmaengine_pcm.h
index b1d1150c1d60..f11c35cd5532 100644
--- a/include/sound/dmaengine_pcm.h
+++ b/include/sound/dmaengine_pcm.h
@@ -91,6 +91,11 @@ void snd_dmaengine_pcm_set_config_from_dai_data(
91 * bytes that are still left to transfer. 91 * bytes that are still left to transfer.
92 */ 92 */
93#define SND_DMAENGINE_PCM_FLAG_NO_RESIDUE BIT(2) 93#define SND_DMAENGINE_PCM_FLAG_NO_RESIDUE BIT(2)
94/*
95 * The PCM is half duplex and the DMA channel is shared between capture and
96 * playback.
97 */
98#define SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX BIT(3)
94 99
95/** 100/**
96 * struct snd_dmaengine_pcm_config - Configuration data for dmaengine based PCM 101 * struct snd_dmaengine_pcm_config - Configuration data for dmaengine based PCM