diff options
author | Eric Laurent <elaurent@google.com> | 2014-05-20 11:18:06 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-05-29 17:57:55 -0700 |
commit | 6a94d69dc4f32abb53c466a96f905bb199be6417 (patch) | |
tree | eef3552877f202429801a0b20f2ae31aad7801e7 /media/libmedia/Android.mk | |
parent | 32f93b7bedc44b425ba99d69dec998334e759532 (diff) | |
download | frameworks_av-6a94d69dc4f32abb53c466a96f905bb199be6417.zip frameworks_av-6a94d69dc4f32abb53c466a96f905bb199be6417.tar.gz frameworks_av-6a94d69dc4f32abb53c466a96f905bb199be6417.tar.bz2 |
audio policy: implement routing control
Add implementation of audio routing control via AudioSystem APIs.
The following APIs are implemented:
- listAudioPorts(): return a list of devices and output/input mixers ports
that can be used as sources or sinks for audio patches.
- createAudioPatch()/releaseAudioPatch(): create/release a connection patch between
two audio ports (e.g. to connect input from an HDMI device to a speaker output device).
Only one client application can own a patch from a given source.
When an audio port (device or mix) is part of an application created patch, its routing cannot
not be changed by a policy decision.
- listAudioPatches(): return a list of existing patches.
Each audio port addition/removal and each audio patch creation/release increments a generation count.
This generation count is used to ensure consistency betwen calls to
listAudioPorts() and listAudioPatches().
Bug: 14815883.
Change-Id: I022b638c2f5f0bb41543c7cfca7488fb45cfdd80
Diffstat (limited to 'media/libmedia/Android.mk')
0 files changed, 0 insertions, 0 deletions