summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy/managerdefault/Ports.h
diff options
context:
space:
mode:
authorFrançois Gaffie <francois.gaffie@intel.com>2015-03-18 16:55:35 +0100
committerJean-Michel Trivi <jmtrivi@google.com>2015-04-01 10:19:16 -0700
commitad3183e2d4cecd02f6261270a7ea1c68be0efa0f (patch)
tree5c08be8ee10c2525c0df9dc42529d5fae0240b74 /services/audiopolicy/managerdefault/Ports.h
parent4de725a32a825bd26d9fc0ec6901ffffa92778e1 (diff)
downloadframeworks_av-ad3183e2d4cecd02f6261270a7ea1c68be0efa0f.zip
frameworks_av-ad3183e2d4cecd02f6261270a7ea1c68be0efa0f.tar.gz
frameworks_av-ad3183e2d4cecd02f6261270a7ea1c68be0efa0f.tar.bz2
Audio Policy Refactor: reorganise headers inclusion
This patch reoganises the headers inclusion in order to prepare the split of managerdefault into a manager and a separated lib of pillar policy elements. It also moves back the isStrategyActive to the manager to avoid any dependancies from this pillars to the manager. Change-Id: I1a35c45d86db7a3878a40dc7d6858dfea37c5ac9 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
Diffstat (limited to 'services/audiopolicy/managerdefault/Ports.h')
-rw-r--r--services/audiopolicy/managerdefault/Ports.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/services/audiopolicy/managerdefault/Ports.h b/services/audiopolicy/managerdefault/Ports.h
index f6e0e93..6e0e2fe 100644
--- a/services/audiopolicy/managerdefault/Ports.h
+++ b/services/audiopolicy/managerdefault/Ports.h
@@ -14,9 +14,22 @@
* limitations under the License.
*/
+#pragma once
+
+#include <utils/String8.h>
+#include <utils/Vector.h>
+#include <utils/RefBase.h>
+#include <utils/Errors.h>
+#include <system/audio.h>
+#include <cutils/config_utils.h>
+
+#define MAX_MIXER_SAMPLING_RATE 48000
+#define MAX_MIXER_CHANNEL_COUNT 8
+
namespace android {
class HwModule;
+class AudioGain;
class AudioPort: public virtual RefBase
{
@@ -86,6 +99,9 @@ protected:
// and a unique ID for identifying a port to the (upcoming) selection API,
// and its relationship to the mId in AudioOutputDescriptor and AudioInputDescriptor.
audio_port_handle_t mId;
+
+private:
+ static volatile int32_t mNextUniqueId;
};
class AudioPortConfig: public virtual RefBase