audio: Change pcm id for sprk calib tx & read wsa tz name from tz type

- Change pcm id for USECASE_AUDIO_SPKR_CALIB_TX
  wrt corresponding m/c driver dai.
- MSM8953 supports two different wsa versions.
  Hard coding spkr tz name in platform info supports
  only one of these hardware, causing spkr protection
  to fail.
- Change is to read and set wsa tz name based on the hardware
  while parsing thermal zone type.

Change-Id: I8e8467b2e4348834bf8471f12cb39378a06edab8
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index 026b653..a08aafa 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -2077,6 +2077,11 @@
             ALOGD("Opening %s\n", name);
             read_line_from_file(name, buf, sizeof(buf));
             if (strstr(buf, file)) {
+                if (property_get_bool("vendor.audio.read.wsatz.type", false)) {
+                    struct str_parms *parms = NULL;
+                    buf[strlen(buf) - 1] = '\0';
+                    audio_extn_spkr_prot_set_parameters(parms, buf, 0);
+                }
                 wsa_count++;
             }
             tzn++;