From e812d7e4f1dbcf6fd216c266252335cc2d3fb9db Mon Sep 17 00:00:00 2001 From: hayden-sun Date: Thu, 12 Oct 2023 17:42:57 +0800 Subject: [PATCH] [Decode] Fix media reset count regkey read error Media reset count could not be read from report path previously, it will cause reset counter incorrect. --- .../linux/common/os/mos_util_user_feature_keys_specific.h | 1 + .../common/os/user_setting/media_user_setting_configure.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/media_common/linux/common/os/mos_util_user_feature_keys_specific.h b/media_common/linux/common/os/mos_util_user_feature_keys_specific.h index 33de06a4a8b..947bdfe2488 100644 --- a/media_common/linux/common/os/mos_util_user_feature_keys_specific.h +++ b/media_common/linux/common/os/mos_util_user_feature_keys_specific.h @@ -36,6 +36,7 @@ ** | 0 | Reserved for DL, but not used now | \*--------------------------------------------------------------------------*/ #define MEDIA_USER_SETTING_INTERNAL 0x1 +#define MEDIA_USER_SETTING_INTERNAL_REPORT 0x4 #define __MEDIA_USER_FEATURE_VALUE_ENABLE_SOFTPIN "Enable Softpin" #define __MEDIA_USER_FEATURE_VALUE_DISABLE_KMD_WATCHDOG "Disable KMD Watchdog" diff --git a/media_softlet/agnostic/common/os/user_setting/media_user_setting_configure.cpp b/media_softlet/agnostic/common/os/user_setting/media_user_setting_configure.cpp index 136f9f1bbde..5e6146a2eb5 100644 --- a/media_softlet/agnostic/common/os/user_setting/media_user_setting_configure.cpp +++ b/media_softlet/agnostic/common/os/user_setting/media_user_setting_configure.cpp @@ -252,6 +252,10 @@ std::string Configure::GetReadPath( { return def->GetSubPath(); } + else if (option == MEDIA_USER_SETTING_INTERNAL_REPORT) + { + return m_statedReportPath; + } else { return GetExternalPath(option);