hal: get wsa881x temperature zone names using key value pair

Use key value pair config parameters to set wsa881x temperature
zone sensor names in speaker protection module for getting
corresponding temperature zone handles.

Change-Id: I90d52a015c4cfc3937605d821cbc574ab0c2a75e
diff --git a/hal/audio_extn/spkr_protection.c b/hal/audio_extn/spkr_protection.c
index fee98f5..b925fbe 100644
--- a/hal/audio_extn/spkr_protection.c
+++ b/hal/audio_extn/spkr_protection.c
@@ -187,6 +187,9 @@
     char name[MAX_PATH] = {0};
     char cwd[MAX_PATH] = {0};
 
+    if (!sensor_name)
+        return found;
+
     if (!getcwd(cwd, sizeof(cwd)))
         return found;
 
@@ -210,11 +213,12 @@
             if (strcmp(tzdirent->d_name, "type"))
                 continue;
             snprintf(name, MAX_PATH, TZ_TYPE, tzn);
-            ALOGD("Opening %s\n", name);
+            ALOGV("Opening %s\n", name);
             read_line_from_file(name, buf, sizeof(buf));
             if (strlen(buf) > 0)
                 buf[strlen(buf) - 1] = '\0';
             if (!strcmp(buf, sensor_name)) {
+                ALOGD(" spkr tz name found, %s\n", name);
                 found = 1;
                 break;
             }