From 37e7c483195fdf8373a510d0cf4c776c12b7e865 Mon Sep 17 00:00:00 2001 From: Satish Babu Patakokila Date: Fri, 2 Feb 2018 11:50:06 +0530 Subject: [PATCH] hal: update system property names with vendor prefix. Change-Id: Idf7f4a8f114acf8afc059e382d85c1611697efac --- hal/audio_extn/hw_loopback.c | 4 ++-- hal/audio_extn/keep_alive.c | 2 +- hal/audio_extn/passthru.c | 4 ++-- hal/audio_extn/qaf.c | 4 ++-- hal/audio_hw.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) mode change 100755 => 100644 hal/audio_extn/passthru.c mode change 100755 => 100644 hal/audio_hw.c diff --git a/hal/audio_extn/hw_loopback.c b/hal/audio_extn/hw_loopback.c index 7c846d92..78e42152 100644 --- a/hal/audio_extn/hw_loopback.c +++ b/hal/audio_extn/hw_loopback.c @@ -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); diff --git a/hal/audio_extn/keep_alive.c b/hal/audio_extn/keep_alive.c index 0866a359..07b235dd 100755 --- a/hal/audio_extn/keep_alive.c +++ b/hal/audio_extn/keep_alive.c @@ -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; diff --git a/hal/audio_extn/passthru.c b/hal/audio_extn/passthru.c old mode 100755 new mode 100644 index 99949fc8..9174a37d --- a/hal/audio_extn/passthru.c +++ b/hal/audio_extn/passthru.c @@ -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; } diff --git a/hal/audio_extn/qaf.c b/hal/audio_extn/qaf.c index c1c0af7b..ced137f0 100755 --- a/hal/audio_extn/qaf.c +++ b/hal/audio_extn/qaf.c @@ -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) { diff --git a/hal/audio_hw.c b/hal/audio_hw.c old mode 100755 new mode 100644 index 1a8f0a1a..c2634272 --- a/hal/audio_hw.c +++ b/hal/audio_hw.c @@ -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) &&