disp: msm: sde: expose dnsc_blur connector properties
Add downscale blur connector properties to expose the hw block count, downscaling filters used and the ratios supported. Add a custom dnsc_blur property to allow usermode to send the required configuration to program the hardware. Expose only for the virtual connector as the dnsc_blur is only supported with writeback block. Change-Id: I35dd263d9d5aafdb59bacbb3a0528ffd2bcaf6a3 Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
This commit is contained in:
@@ -731,6 +731,29 @@ struct sde_connector_state {
|
||||
#define sde_connector_get_out_fb(S) \
|
||||
((S) ? to_sde_connector_state((S))->out_fb : 0)
|
||||
|
||||
/**
|
||||
* sde_connector_get_kms - helper to get sde_kms from connector
|
||||
* @conn: Pointer to drm connector
|
||||
* Returns: Pointer to sde_kms or NULL
|
||||
*/
|
||||
static inline struct sde_kms *sde_connector_get_kms(struct drm_connector *conn)
|
||||
{
|
||||
struct msm_drm_private *priv;
|
||||
|
||||
if (!conn || !conn->dev || !conn->dev->dev_private) {
|
||||
SDE_ERROR("invalid connector\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
priv = conn->dev->dev_private;
|
||||
if (!priv->kms) {
|
||||
SDE_ERROR("invalid kms\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return to_sde_kms(priv->kms);
|
||||
}
|
||||
|
||||
/**
|
||||
* sde_connector_get_topology_name - helper accessor to retrieve topology_name
|
||||
* @connector: pointer to drm connector
|
||||
|
Reference in New Issue
Block a user