hal: Fix incorrect acdb_id selection for speaker protection

Enable right acdb_id for speaker protection usecase. Currently
it is sending calibration for speaker in speaker protection use
case.

Cherry-pick of CAF commit:
f16721c890f3423dcfba8f2b8bb342b3e84f23fd

Change-Id: I735f0ab39815cac99d11cc91c23a5220fbae87df
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index 6712f3b..00f3c2d 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -937,7 +937,7 @@
     struct platform_data *my_data = (struct platform_data *)platform;
     int acdb_dev_id, acdb_dev_type;
 
-    acdb_dev_id = acdb_device_table[snd_device];
+    acdb_dev_id = acdb_device_table[audio_extn_get_spkr_prot_snd_device(snd_device)];
     if (acdb_dev_id < 0) {
         ALOGE("%s: Could not find acdb id for device(%d)",
               __func__, snd_device);