hal: spkr_prot: Update the thermal zone path to physical path
When symbolic link is used instead of physical path to access
the thermal zones, hal fails to access the zones sometimes
due to insufficient access rights to sysfs.
Update the thermal zone path to sys/devices/virtual/thermal from
sys/class/thermal which is a symbolic link in order to access
the zones without fail.
CRs-Fixed: 2094545
Change-Id: I0850444f662ffe7dc7cc4076adeba8dc36fbc687
diff --git a/hal/audio_extn/spkr_protection.c b/hal/audio_extn/spkr_protection.c
index 62916ac..3784197 100644
--- a/hal/audio_extn/spkr_protection.c
+++ b/hal/audio_extn/spkr_protection.c
@@ -103,9 +103,9 @@
#define MAX_PATH (256)
#define MAX_STR_SIZE (1024)
-#define THERMAL_SYSFS "/sys/class/thermal"
-#define TZ_TYPE "/sys/class/thermal/thermal_zone%d/type"
-#define TZ_WSA "/sys/class/thermal/thermal_zone%d/temp"
+#define THERMAL_SYSFS "/sys/devices/virtual/thermal"
+#define TZ_TYPE "/sys/devices/virtual/thermal/thermal_zone%d/type"
+#define TZ_WSA "/sys/devices/virtual/thermal/thermal_zone%d/temp"
#define AUDIO_PARAMETER_KEY_SPKR_TZ_1 "spkr_1_tz_name"
#define AUDIO_PARAMETER_KEY_SPKR_TZ_2 "spkr_2_tz_name"