diff options
author | Surendar karka <skarka@codeaurora.org> | 2018-05-08 12:02:21 +0530 |
---|---|---|
committer | Surendar Karka <skarka@codeaurora.org> | 2018-05-08 14:23:58 +0530 |
commit | 3056979cf3d404d0ca0fa8777a9c75dcdb77f778 (patch) | |
tree | 3fbcfd48a276489c7346c95dea64a5f3bad19c99 /qahw | |
parent | 45e692df407f7b416132f4834c9b51addb8e5b93 (diff) | |
download | android_hardware_qcom_audio-3056979cf3d404d0ca0fa8777a9c75dcdb77f778.tar.gz android_hardware_qcom_audio-3056979cf3d404d0ca0fa8777a9c75dcdb77f778.tar.bz2 android_hardware_qcom_audio-3056979cf3d404d0ca0fa8777a9c75dcdb77f778.zip |
hal: retrieve license info during init.
FFV/Allplay requires licensing info during init.
- Retrieve Product_Id using "meta_info_key" from platfrom xml file during HAL-Init.
- Retrieve Product_License using "audio_calibration_info" from ACDB.
- Extend QAHW GetParam API to access AllPlay License information.
Change-Id: Ie759f795d76e0038cba3f14ee9084f1c46b64c0a
Diffstat (limited to 'qahw')
-rwxr-xr-x[-rw-r--r--] | qahw/inc/qahw_defs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/qahw/inc/qahw_defs.h b/qahw/inc/qahw_defs.h index c13a1a44..e67c91eb 100644..100755 --- a/qahw/inc/qahw_defs.h +++ b/qahw/inc/qahw_defs.h @@ -354,6 +354,14 @@ typedef struct qahw_mix_matrix_params { float mixer_coeffs[AUDIO_CHANNEL_COUNT_MAX][AUDIO_CHANNEL_COUNT_MAX]; } qahw_mix_matrix_params_t; +#define QAHW_LICENCE_STR_MAX_LENGTH (64) +#define QAHW_PRODUCT_STR_MAX_LENGTH (64) +typedef struct qahw_license_params { + char product[QAHW_PRODUCT_STR_MAX_LENGTH + 1]; + int key; + char license[QAHW_LICENCE_STR_MAX_LENGTH + 1]; +} qahw_license_params_t; + typedef union { struct qahw_source_tracking_param st_params; struct qahw_sound_focus_param sf_params; @@ -367,6 +375,7 @@ typedef union { struct qahw_out_channel_map_param channel_map_params; struct qahw_device_cfg_param device_cfg_params; struct qahw_mix_matrix_params mix_matrix_params; + struct qahw_license_params license_params; } qahw_param_payload; typedef enum { @@ -385,6 +394,7 @@ typedef enum { QAHW_PARAM_DEVICE_CONFIG, /* PARAM to set device config */ QAHW_PARAM_OUT_MIX_MATRIX_PARAMS, QAHW_PARAM_CH_MIX_MATRIX_PARAMS, + QAHW_PARAM_LICENSE_PARAMS, } qahw_param_id; __END_DECLS |