blob: fbf651ae1f7122404c8d10b116f0bffecd0550e9 [file] [log] [blame]
Jiabin Huangebe64102021-09-07 20:01:07 +00001/*
2 * Copyright (C) 2021 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
jiabine99d0882021-09-17 05:21:25 +000019#include <android/media/audio/common/AudioMMapPolicyType.h>
20#include <android/media/audio/common/AudioMMapPolicyInfo.h>
Jiabin Huangebe64102021-09-07 20:01:07 +000021
22namespace android {
23
24status_t getMmapPolicyInfosFromSystemProperty(
jiabine99d0882021-09-17 05:21:25 +000025 media::audio::common::AudioMMapPolicyType policyType,
26 std::vector<media::audio::common::AudioMMapPolicyInfo> *policyInfos);
Jiabin Huangebe64102021-09-07 20:01:07 +000027
jiabine504e7b2021-09-18 00:27:08 +000028int32_t getAAudioMixerBurstCountFromSystemProperty();
29
30int32_t getAAudioHardwareBurstMinUsecFromSystemProperty();
31
Jiabin Huangebe64102021-09-07 20:01:07 +000032} // namespace android