|
18 | 18 | #include <linux/phy/phy.h> |
19 | 19 | #include <dt-bindings/pinctrl/rockchip.h> |
20 | 20 |
|
| 21 | +#include <drm/drm_atomic.h> |
21 | 22 | #include <drm/drm_of.h> |
22 | 23 | #include <drm/drmP.h> |
23 | 24 | #include <drm/drm_crtc_helper.h> |
@@ -1089,8 +1090,30 @@ dw_hdmi_rockchip_set_property(struct drm_connector *connector, |
1089 | 1090 | return 0; |
1090 | 1091 | } |
1091 | 1092 |
|
1092 | | - DRM_ERROR("failed to set rockchip hdmi connector property\n"); |
1093 | | - return -EINVAL; |
| 1093 | + if (property != config->prop_crtc_id && |
| 1094 | + property != config->tv_select_subconnector_property && |
| 1095 | + property != config->tv_left_margin_property && |
| 1096 | + property != config->tv_right_margin_property && |
| 1097 | + property != config->tv_top_margin_property && |
| 1098 | + property != config->tv_bottom_margin_property && |
| 1099 | + property != config->tv_mode_property && |
| 1100 | + property != config->tv_brightness_property && |
| 1101 | + property != config->tv_contrast_property && |
| 1102 | + property != config->tv_flicker_reduction_property && |
| 1103 | + property != config->tv_overscan_property && |
| 1104 | + property != config->tv_saturation_property && |
| 1105 | + property != config->tv_hue_property && |
| 1106 | + property != config->hdr_source_metadata_property) { |
| 1107 | + DRM_ERROR("failed to set rockchip hdmi connector property\n"); |
| 1108 | + return -EINVAL; |
| 1109 | + } |
| 1110 | + |
| 1111 | + if (!state) |
| 1112 | + return drm_atomic_helper_connector_set_property(connector, |
| 1113 | + property, val); |
| 1114 | + else |
| 1115 | + return drm_atomic_connector_set_property(connector, state, |
| 1116 | + property, val); |
1094 | 1117 | } |
1095 | 1118 |
|
1096 | 1119 | static int |
|
0 commit comments