hal: update combo device handling
If the wired headset/headphone/line devices are handled by
a different backend than speaker/earpiece devices, the combo
devices such as speaker+headphones can be split into individual
devices and enabled/disabled independently.
Bug: 21581860.
Change-Id: Icdd962a4dc1da536fe89c4de2202e7383275603d
diff --git a/hal/msm8960/platform.c b/hal/msm8960/platform.c
index e2333ca..4536a05 100644
--- a/hal/msm8960/platform.c
+++ b/hal/msm8960/platform.c
@@ -1002,7 +1002,8 @@
}
int platform_set_snd_device_backend(snd_device_t device __unused,
- const char *backend __unused)
+ const char *backend __unused,
+ const char *hw_interface __unused)
{
return -ENOSYS;
}
@@ -1041,3 +1042,22 @@
}
return status;
}
+
+bool platform_send_gain_dep_cal(void *platform __unused,
+ int level __unused)
+{
+ return 0;
+}
+
+bool platform_can_split_snd_device(snd_device_t in_snd_device __unused,
+ int *num_devices __unused,
+ snd_device_t *out_snd_devices __unused)
+{
+ return false;
+}
+
+bool platform_check_backends_match(snd_device_t snd_device1 __unused,
+ snd_device_t snd_device2 __unused)
+{
+ return true;
+}