hal: Update prefixes for audio system properties
Vendor created android system properties are required to have
vendor/qti prefix. Update vendor specific audio system
properties used in HAL.
CRs-Fixed: 2034869
Change-Id: Ibdb1d12fedee1ce12073e8b90fdec814318f3acf
diff --git a/hal/audio_extn/qaf.c b/hal/audio_extn/qaf.c
index 8cb80e9..c0dad9c 100644
--- a/hal/audio_extn/qaf.c
+++ b/hal/audio_extn/qaf.c
@@ -282,7 +282,7 @@
if (format == AUDIO_FORMAT_PCM_16_BIT) {
//If dts is not supported then alway support pcm with MS12
- if (!property_get_bool("audio.qaf.dts_m8", false)) { //TODO: Need to add this property for DTS.
+ if (!property_get_bool("vendor.audio.qaf.dts_m8", false)) { //TODO: Need to add this property for DTS.
return MS12;
}
@@ -359,12 +359,12 @@
if (!p_qaf) return false;
- if ((!property_get_bool("audio.qaf.reencode", false))
- && property_get_bool("audio.qaf.passthrough", false)) {
+ if ((!property_get_bool("vendor.audio.qaf.reencode", false))
+ && property_get_bool("vendor.audio.qaf.passthrough", false)) {
if ((out->format == AUDIO_FORMAT_PCM_16_BIT) && (popcount(out->channel_mask) > 2)) {
is_enabled = true;
- } else if (property_get_bool("audio.offload.passthrough", false)) {
+ } else if (property_get_bool("vendor.audio.offload.passthrough", false)) {
switch (out->format) {
case AUDIO_FORMAT_AC3:
case AUDIO_FORMAT_E_AC3:
@@ -1681,10 +1681,10 @@
lic_config.l_size = size;
memcpy(lic_config.p_license, license_data, size);
- if (property_get("audio.qaf.manufacturer", value, "") && atoi(value)) {
+ if (property_get("vendor.audio.qaf.manufacturer", value, "") && atoi(value)) {
lic_config.manufacturer_id = (unsigned long)atoi(value);
} else {
- ERROR_MSG("audio.qaf.manufacturer id is not set");
+ ERROR_MSG("vendor.audio.qaf.manufacturer id is not set");
ret = -EINVAL;
goto exit;
}
@@ -2342,7 +2342,7 @@
{
bool prop_enabled = false;
char value[PROPERTY_VALUE_MAX] = {0};
- property_get("audio.qaf.enabled", value, NULL);
+ property_get("vendor.audio.qaf.enabled", value, NULL);
prop_enabled = atoi(value) || !strncmp("true", value, 4);
return (prop_enabled);
}
@@ -2370,15 +2370,15 @@
p_qaf->hdmi_sink_channels = 0;
//QAF re-encoding and DSP offload passthrough is supported.
- if (property_get_bool("audio.offload.passthrough", false)
- && property_get_bool("audio.qaf.reencode", false)) {
+ if (property_get_bool("vendor.audio.offload.passthrough", false)
+ && property_get_bool("vendor.audio.qaf.reencode", false)) {
//If MS12 session is active.
if (p_qaf->qaf_mod[MS12].session_handle && p_qaf->qaf_mod[MS12].qaf_audio_session_set_param) {
bool do_setparam = false;
qaf_params = str_parms_create();
- property_get("audio.qaf.hdmi.out", prop_value, NULL);
+ property_get("vendor.audio.qaf.hdmi.out", prop_value, NULL);
if (platform_is_edid_supported_format(p_qaf->adev->platform, AUDIO_FORMAT_E_AC3)
&& (strncmp(prop_value, "ddp", 3) == 0)) {
@@ -2651,7 +2651,7 @@
p_qaf->adev = adev;
- if (property_get_bool("audio.qaf.msmd", false)) {
+ if (property_get_bool("vendor.audio.qaf.msmd", false)) {
p_qaf->qaf_msmd_enabled = 1;
}
pthread_mutex_init(&p_qaf->lock, (const pthread_mutexattr_t *) NULL);
@@ -2664,9 +2664,9 @@
struct qaf_module *qaf_mod = &(p_qaf->qaf_mod[i]);
if (i == MS12) {
- property_get("audio.qaf.library", value, NULL);
+ property_get("vendor.audio.qaf.library", value, NULL);
} else if (i == DTS_M8) {
- property_get("audio.qaf.m8.library", value, NULL);
+ property_get("vendor.audio.qaf.m8.library", value, NULL);
} else {
continue;
}