diff options
author | Eric Laurent <elaurent@google.com> | 2014-04-11 09:22:20 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-05-27 09:09:51 -0700 |
commit | 4b123406c10c17852734a1b691bb9ce2a4cb7caf (patch) | |
tree | 23cb27ad387a8a17b248b63b47f813e4a6b1dda8 /include | |
parent | 5912117110ae6efadd862fcb0e395fdcd18aa00c (diff) | |
download | frameworks_av-4b123406c10c17852734a1b691bb9ce2a4cb7caf.zip frameworks_av-4b123406c10c17852734a1b691bb9ce2a4cb7caf.tar.gz frameworks_av-4b123406c10c17852734a1b691bb9ce2a4cb7caf.tar.bz2 |
IAudioFlinger interface extension for patch panel
Change-Id: Iaabe0a7e315d5725e00a74a6ed40339b98f20330
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; + }; |