+ /* get DPM context for camera/microphone restriction */
+ hcamcorder->dpm_context = dpm_context_create();
+ _mmcam_dbg_log("DPM context %p", hcamcorder->dpm_context);
+ if (hcamcorder->dpm_context) {
+ hcamcorder->dpm_policy = dpm_context_acquire_restriction_policy(hcamcorder->dpm_context);
+ _mmcam_dbg_log("DPM policy %p", hcamcorder->dpm_policy);
+ if (hcamcorder->dpm_policy == NULL) {
+ _mmcam_dbg_err("dpm_context_acquire_restriction_policy failed");
+ dpm_context_destroy(hcamcorder->dpm_context);
+ hcamcorder->dpm_context = NULL;
+ }
+ }
+
+ _mmcam_dbg_log("DPM context %p, policy %p", hcamcorder->dpm_context, hcamcorder->dpm_policy);
+