diff options
author | Eric Laurent <elaurent@google.com> | 2014-05-28 15:16:21 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-28 15:16:22 +0000 |
commit | 5e49780692b4f23966be89ac32b19c3c1ead4e85 (patch) | |
tree | d3a80af71bd1c7637040ec322a286e0b3e485dee /include | |
parent | c9cd62bf52dd5ea8dc292fb7bc80ff51ed1a79bb (diff) | |
parent | 4b123406c10c17852734a1b691bb9ce2a4cb7caf (diff) | |
download | frameworks_av-5e49780692b4f23966be89ac32b19c3c1ead4e85.zip frameworks_av-5e49780692b4f23966be89ac32b19c3c1ead4e85.tar.gz frameworks_av-5e49780692b4f23966be89ac32b19c3c1ead4e85.tar.bz2 |
Merge "IAudioFlinger interface extension for patch panel"
Diffstat (limited to 'include')
-rw-r--r-- | include/media/IAudioFlinger.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/media/IAudioFlinger.h b/include/media/IAudioFlinger.h index 7db6a48..c742810 100644 --- a/include/media/IAudioFlinger.h +++ b/include/media/IAudioFlinger.h @@ -214,6 +214,27 @@ public: // and should be called at most once. For a definition of what "low RAM" means, see // android.app.ActivityManager.isLowRamDevice(). virtual status_t setLowRamDevice(bool isLowRamDevice) = 0; + + /* List available audio ports and their attributes */ + virtual status_t listAudioPorts(unsigned int *num_ports, + struct audio_port *ports) = 0; + + /* Get attributes for a given audio port */ + virtual status_t getAudioPort(struct audio_port *port) = 0; + + /* Create an audio patch between several source and sink ports */ + virtual status_t createAudioPatch(const struct audio_patch *patch, + audio_patch_handle_t *handle) = 0; + + /* Release an audio patch */ + virtual status_t releaseAudioPatch(audio_patch_handle_t handle) = 0; + + /* List existing audio patches */ + virtual status_t listAudioPatches(unsigned int *num_patches, + struct audio_patch *patches) = 0; + /* Set audio port configuration */ + virtual status_t setAudioPortConfig(const struct audio_port_config *config) = 0; + }; |