From 4b123406c10c17852734a1b691bb9ce2a4cb7caf Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Fri, 11 Apr 2014 09:22:20 -0700 Subject: IAudioFlinger interface extension for patch panel Change-Id: Iaabe0a7e315d5725e00a74a6ed40339b98f20330 --- services/audioflinger/AudioFlinger.h | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'services/audioflinger/AudioFlinger.h') diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index d2ded9a..3d7a562 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -223,6 +223,44 @@ public: virtual status_t setLowRamDevice(bool isLowRamDevice); + /* List available audio ports and their attributes */ + virtual status_t listAudioPorts(unsigned int *num_ports, + struct audio_port *ports) + { + return INVALID_OPERATION; + } + + /* Get attributes for a given audio port */ + virtual status_t getAudioPort(struct audio_port *port) + { + return INVALID_OPERATION; + } + + /* Create an audio patch between several source and sink ports */ + virtual status_t createAudioPatch(const struct audio_patch *patch, + audio_patch_handle_t *handle) + { + return INVALID_OPERATION; + } + + /* Release an audio patch */ + virtual status_t releaseAudioPatch(audio_patch_handle_t handle) + { + return INVALID_OPERATION; + } + + /* List existing audio patches */ + virtual status_t listAudioPatches(unsigned int *num_patches, + struct audio_patch *patches) + { + return INVALID_OPERATION; + } + /* Set audio port configuration */ + virtual status_t setAudioPortConfig(const struct audio_port_config *config) + { + return INVALID_OPERATION; + } + virtual status_t onTransact( uint32_t code, const Parcel& data, -- cgit v1.1