mm-audio: aenc: Update log level property name

Update to use vendor property name.

CRs-Fixed: 2213067

Change-Id: I1c666788345dbbe2b679496d364435eb39ca3e73
This commit is contained in:
Garmond Leung 2018-03-26 14:22:30 -07:00
parent 5577000616
commit 2d6b451d24
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/*--------------------------------------------------------------------------
Copyright (c) 2016, 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
@ -35,7 +35,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
using namespace std;
/*
* Change logging-level at runtime with "persist.debug.omx.logs.level"
* Change logging-level at runtime with "persist.vendor.audio.debug.omx.logs.level"
*
* level OMX_LOGV OMX_LOGD
* ----------------------------------

View File

@ -1,5 +1,5 @@
/*--------------------------------------------------------------------------
Copyright (c) 2016 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
@ -40,7 +40,7 @@ uint32_t gOmxLogLevel;
void updateLogLevel() {
char level[PROPERTY_VALUE_MAX];
#ifdef ANDROID
property_get("persist.debug.omx.logs.level", level, "0");
property_get("persist.vendor.audio.debug.omx.logs.level", level, "0");
gOmxLogLevel = atoi(level);
#else
gOmxLogLevel = atoi("0");