diff options
author | Hochi Huang <hochi.huang@mediatek.com> | 2014-09-25 07:08:45 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-09-25 07:08:45 +0000 |
commit | 38eac43c27afaef74831e5a24654c9b68691e415 (patch) | |
tree | 722506b0e84d42262565e4a066545e08f8ced2ae | |
parent | ef401f0c6db514a38e58c4d6f72f8616dceb3e8c (diff) | |
parent | 8ddf81e20fd514907de51ec82a617143d2e35276 (diff) | |
download | hardware_libhardware_legacy-38eac43c27afaef74831e5a24654c9b68691e415.zip hardware_libhardware_legacy-38eac43c27afaef74831e5a24654c9b68691e415.tar.gz hardware_libhardware_legacy-38eac43c27afaef74831e5a24654c9b68691e415.tar.bz2 |
am 8ddf81e2: [AU] Update volume setting and Audio Device API 3.0
* commit '8ddf81e20fd514907de51ec82a617143d2e35276':
[AU] Update volume setting and Audio Device API 3.0
-rw-r--r-- | include/hardware_legacy/AudioHardwareInterface.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/hardware_legacy/AudioHardwareInterface.h b/include/hardware_legacy/AudioHardwareInterface.h index 6b524a8..7d34aaa 100644 --- a/include/hardware_legacy/AudioHardwareInterface.h +++ b/include/hardware_legacy/AudioHardwareInterface.h @@ -117,6 +117,11 @@ public: */ virtual status_t getNextWriteTimestamp(int64_t *timestamp); + /** + * Return a recent count of the number of audio frames presented to an external observer. + */ + virtual status_t getPresentationPosition(uint64_t *frames, struct timespec *timestamp); + }; /** @@ -276,6 +281,18 @@ public: static AudioHardwareInterface* create(); + virtual int createAudioPatch(unsigned int num_sources, + const struct audio_port_config *sources, + unsigned int num_sinks, + const struct audio_port_config *sinks, + audio_patch_handle_t *handle) = 0; + + virtual int releaseAudioPatch(audio_patch_handle_t handle) = 0; + + virtual int getAudioPort(struct audio_port *port) = 0; + + virtual int setAudioPortConfig(const struct audio_port_config *config) = 0; + protected: virtual status_t dump(int fd, const Vector<String16>& args) = 0; |