summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Wagner <david.wagner@intel.com>2014-04-23 11:47:02 +0200
committerDavid Wagner <david.wagner@intel.com>2014-04-23 14:42:21 +0200
commitcc029e59f7d22f383dfc5b700689db66a941a356 (patch)
tree8bfcd7c509305df83b332fb6f1ffcc1aa62bed7a /include
parent600898287d579c41b77af309f0ab75dbe40c559b (diff)
downloadhardware_libhardware_legacy-cc029e59f7d22f383dfc5b700689db66a941a356.zip
hardware_libhardware_legacy-cc029e59f7d22f383dfc5b700689db66a941a356.tar.gz
hardware_libhardware_legacy-cc029e59f7d22f383dfc5b700689db66a941a356.tar.bz2
Audio: add an openOutputStreamWithFlags API
The existing openOutputStream API did not allow passing stream flags even though its audio hardware interface's open_output_stream counterpart does take a "flags" argument. This means that, when the audio hw_module is implemented using libhardware_legacy, the output flag was lost. This commit adds an API in libhardware_legacy's audio module, allowing to pass the flag, and updates the default wrapper in order to call this new API instead of the old version that missed the flag. Change-Id: I20c102d32b489f87fabbd7d02aa0b28fae13948b Signed-off-by: David Wagner <david.wagner@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/hardware_legacy/AudioHardwareInterface.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hardware_legacy/AudioHardwareInterface.h b/include/hardware_legacy/AudioHardwareInterface.h
index b466000..f5b38ea 100644
--- a/include/hardware_legacy/AudioHardwareInterface.h
+++ b/include/hardware_legacy/AudioHardwareInterface.h
@@ -250,6 +250,13 @@ public:
uint32_t *channels=0,
uint32_t *sampleRate=0,
status_t *status=0) = 0;
+ virtual AudioStreamOut* openOutputStreamWithFlags(
+ uint32_t devices,
+ audio_output_flags_t flags=(audio_output_flags_t)0,
+ int *format=0,
+ uint32_t *channels=0,
+ uint32_t *sampleRate=0,
+ status_t *status=0);
virtual void closeOutputStream(AudioStreamOut* out) = 0;
/** This method creates and opens the audio hardware input stream */