Apoorv Raghuvanshi | 9eaf94e | 2013-10-04 16:13:44 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 25 | void audio_extn_set_parameters(struct audio_device *adev, |
| 26 | struct str_parms *parms); |
| 27 | |
Shiv Maliyappanahalli | 34b585f | 2013-10-01 15:49:05 -0700 | [diff] [blame^] | 28 | void audio_extn_get_parameters(const struct audio_device *adev, |
| 29 | struct str_parms *query, |
| 30 | struct str_parms *reply); |
Apoorv Raghuvanshi | 9eaf94e | 2013-10-04 16:13:44 -0700 | [diff] [blame] | 31 | |
| 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 |
| 37 | bool audio_extn_get_anc_enabled(void); |
| 38 | bool audio_extn_should_use_fb_anc(void); |
| 39 | bool 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 |
| 45 | int32_t audio_extn_set_afe_proxy_channel_mixer(struct audio_device *adev); |
| 46 | #endif |
| 47 | |
| 48 | #endif /* AUDIO_EXTN_H */ |