ASoC: core - add hostless DAI support
Allow DAI's to be hostless so that no PCM data is sent between DAI
and CPU. This allows for power savings as there is no DMA or CPU
interaction required.
TODO: we shouldn't need to allocate a PAGE for a dummy DMA buffer.
Signed-off-by: Liam Girdwood <lrg@ti.com>
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 82b2403..d40c5ea 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -210,6 +210,7 @@
#define snd_soc_get_enum_text(soc_enum, idx) \
(soc_enum->texts ? soc_enum->texts[idx] : soc_enum->dtexts[idx])
+
/*
* Bias levels
*
@@ -725,6 +726,8 @@
unsigned int no_codec:1;
/* This DAI has a Backend ID */
unsigned int be_id;
+ /* This DAI can support no host IO (no pcm data is copied to from host) */
+ unsigned int no_host_mode:2;
/* codec/machine specific init - e.g. add machine controls */
int (*init)(struct snd_soc_pcm_runtime *rtd);