diff options
author | Liam Girdwood <lrg@slimlogic.co.uk> | 2011-05-31 09:22:52 +0100 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-05-31 11:03:04 +0100 |
commit | caf057d01cdb1d306537872f8b9c47c1323e94e1 (patch) | |
tree | fa587ecb3d62aa1d8628e7e50222bd735bbb9e1c /include | |
parent | fd455c2c3d4d1945371af7eb3a1eb6b609d98407 (diff) |
ALSA: pcm: Add initial support for host-less PCMs
Host-less PCMs have no driver buffer and hence to do not support
read(), write() or mmap() calls since no data is transfered to
or from the host CPU.
Change-Id: Ic35ea6b482e41cb8b25cdee0016168a0e63f6678
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Margarita Olaya Cabrera <magi.olaya@ti.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/pcm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h index ec2678131e1..5c544bdb9e1 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h @@ -412,6 +412,7 @@ struct snd_pcm_substream { #endif /* 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) |