summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSudheer Papothi <spapothi@codeaurora.org>2016-01-29 02:27:17 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:10:15 -0700
commitb45b11503a44b48e1bee649ecaf1867a4d800fa7 (patch)
tree25c99e7016755e9b119bee86b2400676260f2221 /include
parenteb4032ed5cf2078b09de8be71f14f75afe56356d (diff)
ALSA: pcm - add support for hostless audio
Allow some PCM devices to be hostless, i.e. there is no PCM data transferred to or from the host CPU. This can be used to minimise power on systems since the CPU can idle/sleep during the PCM device operation (e.g. a phone call where the DAI is between a MODEM and DSP) TODO: cleanup, look at adding a read/write blocker. Singed-off-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org> Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/sound/pcm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h
index e1dafdcb3c82..b293f60108ac 100644
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -490,6 +490,7 @@ struct snd_pcm_substream {
#endif /* CONFIG_SND_VERBOSE_PROCFS */
/* misc flags */
unsigned int hw_opened: 1;
+ unsigned int hw_no_buffer: 1; /* substream may not have a buffer */
};
#define SUBSTREAM_BUSY(substream) ((substream)->ref_count > 0)