Aniket Kumar Lata | 808e8d6 | 2019-01-28 22:54:28 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2019, The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * Redistribution and use in source and binary forms, with or without |
| 5 | * modification, are permitted provided that the following conditions are |
| 6 | * met: |
| 7 | * * Redistributions of source code must retain the above copyright |
| 8 | * notice, this list of conditions and the following disclaimer. |
| 9 | * * Redistributions in binary form must reproduce the above |
| 10 | * copyright notice, this list of conditions and the following |
| 11 | * disclaimer in the documentation and/or other materials provided |
| 12 | * with the distribution. |
| 13 | * * Neither the name of The Linux Foundation nor the names of its |
| 14 | * contributors may be used to endorse or promote products derived |
| 15 | * from this software without specific prior written permission. |
| 16 | * |
| 17 | * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED |
| 18 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT |
| 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS |
| 21 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
| 24 | * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 25 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |
| 26 | * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN |
| 27 | * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 | */ |
| 29 | |
Aniket Kumar Lata | b91e4cf | 2019-02-11 18:55:23 -0800 | [diff] [blame] | 30 | #ifdef __LP64__ |
| 31 | #define AUDIO_CONFIGSTORE_LIB_PATH "/vendor/lib64/libaudioconfigstore.so" |
| 32 | #else |
| 33 | #define AUDIO_CONFIGSTORE_LIB_PATH "/vendor/lib/libaudioconfigstore.so" |
| 34 | #endif |
| 35 | |
| 36 | // AHalValues must be in sync with AHalValues_t in libaudioconfigstore |
| 37 | typedef struct { |
Aniket Kumar Lata | 808e8d6 | 2019-01-28 22:54:28 -0800 | [diff] [blame] | 38 | bool snd_monitor_enabled; |
| 39 | bool compress_capture_enabled; |
| 40 | bool source_track_enabled; |
| 41 | bool ssrec_enabled; |
| 42 | bool audiosphere_enabled; |
| 43 | bool afe_proxy_enabled; |
| 44 | bool use_deep_buffer_as_primary_output; |
| 45 | bool hdmi_edid_enabled; |
| 46 | bool keep_alive_enabled; |
| 47 | bool hifi_audio_enabled; |
| 48 | bool receiver_aided_stereo; |
| 49 | bool kpi_optimize_enabled; |
| 50 | bool display_port_enabled; |
| 51 | bool fluence_enabled; |
| 52 | bool custom_stereo_enabled; |
| 53 | bool anc_headset_enabled; |
Arun Mirpuri | 5dc7780 | 2019-02-26 16:32:42 -0800 | [diff] [blame] | 54 | bool spkr_prot_enabled; |
| 55 | bool fm_power_opt_enabled; |
| 56 | bool ext_qdsp_enabled; |
| 57 | bool ext_spkr_enabled; |
| 58 | bool ext_spkr_tfa_enabled; |
| 59 | bool hwdep_cal_enabled; |
Aniket Kumar Lata | 808e8d6 | 2019-01-28 22:54:28 -0800 | [diff] [blame] | 60 | bool dsm_feedback_enabled; |
| 61 | bool usb_offload_enabled; |
| 62 | bool usb_offload_burst_mode; |
| 63 | bool usb_offload_sidetone_vol_enabled; |
| 64 | bool a2dp_offload_enabled; |
Aniket Kumar Lata | b91e4cf | 2019-02-11 18:55:23 -0800 | [diff] [blame] | 65 | bool hfp_enabled; |
Aniket Kumar Lata | 808e8d6 | 2019-01-28 22:54:28 -0800 | [diff] [blame] | 66 | bool vbat_enabled; |
Sujin Panicker | b904fbe | 2019-04-04 13:28:07 +0530 | [diff] [blame^] | 67 | bool wsa_enabled; |
Aniket Kumar Lata | b91e4cf | 2019-02-11 18:55:23 -0800 | [diff] [blame] | 68 | bool ext_hw_plugin_enabled; |
| 69 | bool record_play_concurrency; |
| 70 | bool hdmi_passthrough_enabled; |
| 71 | bool concurrent_capture_enabled; |
| 72 | bool compress_in_enabled; |
| 73 | bool battery_listener_enabled; |
Aniket Kumar Lata | 808e8d6 | 2019-01-28 22:54:28 -0800 | [diff] [blame] | 74 | bool compress_metadata_needed; |
Aniket Kumar Lata | b91e4cf | 2019-02-11 18:55:23 -0800 | [diff] [blame] | 75 | bool incall_music_enabled; |
Aniket Kumar Lata | 808e8d6 | 2019-01-28 22:54:28 -0800 | [diff] [blame] | 76 | bool compress_voip_enabled; |
| 77 | bool dynamic_ecns_enabled; |
Aniket Kumar Lata | b91e4cf | 2019-02-11 18:55:23 -0800 | [diff] [blame] | 78 | } AHalValues; |
Aniket Kumar Lata | 808e8d6 | 2019-01-28 22:54:28 -0800 | [diff] [blame] | 79 | |
| 80 | #ifdef __cplusplus |
| 81 | extern "C" { |
| 82 | #endif |
| 83 | void audio_extn_ahal_config_helper_init(bool isVendorEnhancedFwk); |
Aniket Kumar Lata | b91e4cf | 2019-02-11 18:55:23 -0800 | [diff] [blame] | 84 | void audio_extn_get_feature_values(AHalValues* *confValues); |
Aniket Kumar Lata | 808e8d6 | 2019-01-28 22:54:28 -0800 | [diff] [blame] | 85 | #ifdef __cplusplus |
| 86 | } |
| 87 | #endif |
Sujin Panicker | b904fbe | 2019-04-04 13:28:07 +0530 | [diff] [blame^] | 88 | |