sdm: Add binder support to set QSync mode

Change-Id: I18c46235a4b5f79ea7636cf7ba1d00d37280e6b1
CRs-Fixed: 2197669
diff --git a/sdm/libs/hwc2/hwc_display_primary.cpp b/sdm/libs/hwc2/hwc_display_primary.cpp
index 4723409..36050d2 100644
--- a/sdm/libs/hwc2/hwc_display_primary.cpp
+++ b/sdm/libs/hwc2/hwc_display_primary.cpp
@@ -673,4 +673,13 @@
   return display_intf_->GetMixerResolution(width, height);
 }
 
+HWC2::Error HWCDisplayPrimary::SetQSyncMode(QSyncMode qsync_mode) {
+  auto err = display_intf_->SetQSyncMode(qsync_mode);
+  if (err != kErrorNone) {
+    return HWC2::Error::Unsupported;
+  }
+
+  return HWC2::Error::None;
+}
+
 }  // namespace sdm