Expose the drm crtc sharpness strength property which will enable
or disable the sharpness/casf based on user input. With this user
can set/update the strength of the sharpness or casf filter.

v2: Update subject[Ankit]

Signed-off-by: Nemesa Garg <[email protected]>
Reviewed-by: Ankit Nautiyal <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_crtc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_crtc.c 
b/drivers/gpu/drm/i915/display/intel_crtc.c
index d300ba1dcd2c..802ae5aaece1 100644
--- a/drivers/gpu/drm/i915/display/intel_crtc.c
+++ b/drivers/gpu/drm/i915/display/intel_crtc.c
@@ -395,6 +395,9 @@ int intel_crtc_init(struct intel_display *display, enum 
pipe pipe)
 
        drm_WARN_ON(display->drm, drm_crtc_index(&crtc->base) != crtc->pipe);
 
+       if (HAS_CASF(display))
+               drm_crtc_create_sharpness_strength_property(&crtc->base);
+
        return 0;
 
 fail:
-- 
2.25.1

Reply via email to