hal: update system property names with vendor prefix.

Change-Id: Idf7f4a8f114acf8afc059e382d85c1611697efac
This commit is contained in:
Satish Babu Patakokila 2018-02-02 11:50:06 +05:30
parent 939c563a0f
commit 37e7c48319
5 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@ -491,7 +491,7 @@ int create_loopback_session(loopback_patch_t *active_loopback_patch)
/* Do not alter the location of sending latency mode property */
/* Mode set on any stream but before both streams are open */
if(property_get("audio.transcode.latency.mode", prop_value, "")) {
if(property_get("vendor.audio.transcode.latency.mode", prop_value, "")) {
uint32_t latency_mode = atoi(prop_value);
transcode_loopback_util_set_latency_mode(active_loopback_patch,
latency_mode);

View File

@ -119,7 +119,7 @@ void audio_extn_keep_alive_init(struct audio_device *adev)
ka.userdata = adev;
ka.state = STATE_IDLE;
ka.pcm = NULL;
if (property_get_bool("audio.keep_alive.disabled", false)) {
if (property_get_bool("vendor.audio.keep_alive.disabled", false)) {
ALOGE("keep alive disabled");
ka.state = STATE_DISABLED;
return;

4
hal/audio_extn/passthru.c Executable file → Normal file
View File

@ -506,7 +506,7 @@ int audio_extn_passthru_get_buffer_size(audio_offload_info_t* info)
if (((info->format == AUDIO_FORMAT_DOLBY_TRUEHD) ||
(info->format == AUDIO_FORMAT_IEC61937)) &&
property_get("audio.truehd.buffer.size.kb", value, "") &&
property_get("vendor.audio.truehd.buffer.size.kb", value, "") &&
atoi(value)) {
fragment_size = atoi(value) * 1024;
goto done;
@ -516,7 +516,7 @@ int audio_extn_passthru_get_buffer_size(audio_offload_info_t* info)
goto done;
} else if (info->format == AUDIO_FORMAT_E_AC3) {
fragment_size = DDP_COMPRESS_PASSTHROUGH_FRAGMENT_SIZE;
if(property_get("audio.ddp.buffer.size.kb", value, "") &&
if(property_get("vendor.audio.ddp.buffer.size.kb", value, "") &&
atoi(value)) {
fragment_size = atoi(value) * 1024;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@ -3046,7 +3046,7 @@ int audio_extn_qaf_init(struct audio_device *adev)
DEBUG_MSG("DLOPEN successful for %s", lib_name);
#endif
} else if (i == DTS_M8) {
property_get("audio.qaf.m8.library", value, NULL);
property_get("vendor.audio.qaf.m8.library", value, NULL);
snprintf(lib_name, PROPERTY_VALUE_MAX, "%s", value);
qaf_mod->qaf_lib = dlopen(lib_name, RTLD_NOW);
if (qaf_mod->qaf_lib == NULL) {

2
hal/audio_hw.c Executable file → Normal file
View File

@ -5584,7 +5584,7 @@ int adev_open_output_stream(struct audio_hw_device *dev,
out->dynamic_pm_qos_config_supported = 0;
if ((flags & AUDIO_OUTPUT_FLAG_BD) &&
(property_get_bool("audio.matrix.limiter.enable", false)))
(property_get_bool("vendor.audio.matrix.limiter.enable", false)))
platform_set_device_params(out, DEVICE_PARAM_LIMITER_ID, 1);
if (audio_is_linear_pcm(out->format) &&