blob: 1cd6c67e4f4e1792bf476cb1b38f5b78e1fdddda [file] [log] [blame]
Apoorv Raghuvanshi9eaf94e2013-10-04 16:13:44 -07001/*
2 * Copyright (c) 2013, The Linux Foundation. All rights reserved.
3 * Not a Contribution.
4 *
5 * Copyright (C) 2013 The Android Open Source Project
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19
20#ifndef AUDIO_EXTN_H
21#define AUDIO_EXTN_H
22
23#include <cutils/str_parms.h>
24
25void audio_extn_set_parameters(struct audio_device *adev,
26 struct str_parms *parms);
27
Shiv Maliyappanahalli34b585f2013-10-01 15:49:05 -070028void audio_extn_get_parameters(const struct audio_device *adev,
29 struct str_parms *query,
30 struct str_parms *reply);
Apoorv Raghuvanshi9eaf94e2013-10-04 16:13:44 -070031
32#ifndef ANC_HEADSET_ENABLED
33#define audio_extn_get_anc_enabled() (0)
34#define audio_extn_should_use_fb_anc() (0)
35#define audio_extn_should_use_handset_anc(in_channels) (0)
36#else
37bool audio_extn_get_anc_enabled(void);
38bool audio_extn_should_use_fb_anc(void);
39bool audio_extn_should_use_handset_anc(int in_channels);
40#endif
41
42#ifndef AFE_PROXY_ENABLED
43#define audio_extn_set_afe_proxy_channel_mixer(adev) (0)
44#else
45int32_t audio_extn_set_afe_proxy_channel_mixer(struct audio_device *adev);
46#endif
47
48#endif /* AUDIO_EXTN_H */