blob: d658f7db82065810dd049ca4a4e0e43fc5f7a89a [file] [log] [blame]
Aniket Kumar Lata808e8d62019-01-28 22:54:28 -08001/*
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 Latab91e4cf2019-02-11 18:55:23 -080030#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
37typedef struct {
Aniket Kumar Lata808e8d62019-01-28 22:54:28 -080038 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 Mirpuri5dc77802019-02-26 16:32:42 -080054 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 Lata808e8d62019-01-28 22:54:28 -080060 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 Latab91e4cf2019-02-11 18:55:23 -080065 bool hfp_enabled;
Aniket Kumar Lata808e8d62019-01-28 22:54:28 -080066 bool vbat_enabled;
Sujin Panickerb904fbe2019-04-04 13:28:07 +053067 bool wsa_enabled;
Aniket Kumar Latab91e4cf2019-02-11 18:55:23 -080068 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;
Arun Mirpurid750ac52019-04-12 18:33:55 -070074 bool maxx_audio_enabled;
Aniket Kumar Lata808e8d62019-01-28 22:54:28 -080075 bool compress_metadata_needed;
Aniket Kumar Latab91e4cf2019-02-11 18:55:23 -080076 bool incall_music_enabled;
Aniket Kumar Lata808e8d62019-01-28 22:54:28 -080077 bool compress_voip_enabled;
78 bool dynamic_ecns_enabled;
vivek mehtaba5ed152019-05-03 17:28:25 -070079 bool audio_zoom_enabled;
Aniket Kumar Latab91e4cf2019-02-11 18:55:23 -080080} AHalValues;
Aniket Kumar Lata808e8d62019-01-28 22:54:28 -080081
82#ifdef __cplusplus
83extern "C" {
84#endif
85void audio_extn_ahal_config_helper_init(bool isVendorEnhancedFwk);
Aniket Kumar Latab91e4cf2019-02-11 18:55:23 -080086void audio_extn_get_feature_values(AHalValues* *confValues);
Aniket Kumar Lata808e8d62019-01-28 22:54:28 -080087#ifdef __cplusplus
88}
89#endif
Sujin Panickerb904fbe2019-04-04 13:28:07 +053090