hal: fix querying MAD calibration
Processing of HWDEP MAD calibration is done from sound trigger
HAL. Skip it in audio HAL which results in unnecessary logging
of errors although ignored.
Change-Id: Ibd8e6bea78d5e686c25ea5a5bb77b1cc5e53604e
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index ca30e64..bdfddbc 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -1139,6 +1139,10 @@
struct wcdcal_ioctl_buffer codec_buffer;
struct param_data calib;
+ /* MAD calibration is handled by sound trigger HAL, skip here */
+ if (type == WCD9XXX_MAD_CAL)
+ continue;
+
calib.get_size = 1;
ret = acdb_loader_get_calibration(cal_name_info[type], sizeof(struct param_data),
&calib);
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index b5680fb..7aed184 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -1054,6 +1054,10 @@
struct param_data calib;
int ret;
+ /* MAD calibration is handled by sound trigger HAL, skip here */
+ if (type == WCD9XXX_MAD_CAL)
+ continue;
+
ret = 0;
calib.get_size = 1;
ret = acdb_loader_get_calibration(cal_name_info[type],