hal: retry failed MBDRC cal level
- in the start of the playback since usecase list is empty
or not populated with the current usecase (which will be added
on the first write) unless volume is changed when playing music
correct gain level is not selected
- cache gain level on failure and trigger set gain level when a
new usecase is added
Bug 30503798 29933450
Change-Id: I3d199a2810d34a693a099e3cf4b635d5b156a317
diff --git a/hal/msm8960/platform.c b/hal/msm8960/platform.c
index e11db63..d7fc84c 100644
--- a/hal/msm8960/platform.c
+++ b/hal/msm8960/platform.c
@@ -1072,7 +1072,7 @@
bool platform_send_gain_dep_cal(void *platform __unused,
int level __unused)
{
- return 0;
+ return true;
}
bool platform_can_split_snd_device(snd_device_t in_snd_device __unused,