diff options
author | Liam Girdwood <lrg@ti.com> | 2011-12-02 09:57:52 +0800 |
---|---|---|
committer | Sebastien Jan <s-jan@ti.com> | 2011-12-05 11:20:23 +0100 |
commit | c14dc6545b2acb3ac719040d966780fdc6610b3b (patch) | |
tree | a64c44e5aef0ce8ecca1f6be94d82f70686bb286 /include | |
parent | 6309ecdd4429e851553d250d9c7f9372b21eac7b (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/soc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 6c09b8c532c0..9c7d27b53171 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -211,6 +211,7 @@ #define snd_soc_get_enum_text(soc_enum, idx) \ (soc_enum->texts ? soc_enum->texts[idx] : soc_enum->dtexts[idx]) + /* * Component probe and remove ordering levels for components with runtime * dependencies. @@ -752,6 +753,8 @@ struct snd_soc_dai_link { 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); |