Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
e35755fa
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
e35755fa
编写于
10月 11, 2012
作者:
R
Rob Clark
提交者:
Rob Clark
11月 30, 2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/radeon: drm_connector_property -> drm_object_property
Signed-off-by:
N
Rob Clark
<
rob@ti.com
>
上级
a69ac9ea
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
31 addition
and
31 deletion
+31
-31
drivers/gpu/drm/radeon/radeon_connectors.c
drivers/gpu/drm/radeon/radeon_connectors.c
+31
-31
未找到文件。
drivers/gpu/drm/radeon/radeon_connectors.c
浏览文件 @
e35755fa
...
...
@@ -1599,7 +1599,7 @@ radeon_add_atom_connector(struct drm_device *dev,
connector
->
interlace_allowed
=
true
;
connector
->
doublescan_allowed
=
true
;
radeon_connector
->
dac_load_detect
=
true
;
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
load_detect_property
,
1
);
break
;
...
...
@@ -1608,13 +1608,13 @@ radeon_add_atom_connector(struct drm_device *dev,
case
DRM_MODE_CONNECTOR_HDMIA
:
case
DRM_MODE_CONNECTOR_HDMIB
:
case
DRM_MODE_CONNECTOR_DisplayPort
:
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
underscan_property
,
UNDERSCAN_OFF
);
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
underscan_hborder_property
,
0
);
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
underscan_vborder_property
,
0
);
subpixel_order
=
SubPixelHorizontalRGB
;
...
...
@@ -1625,14 +1625,14 @@ radeon_add_atom_connector(struct drm_device *dev,
connector
->
doublescan_allowed
=
false
;
if
(
connector_type
==
DRM_MODE_CONNECTOR_DVII
)
{
radeon_connector
->
dac_load_detect
=
true
;
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
load_detect_property
,
1
);
}
break
;
case
DRM_MODE_CONNECTOR_LVDS
:
case
DRM_MODE_CONNECTOR_eDP
:
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
dev
->
mode_config
.
scaling_mode_property
,
DRM_MODE_SCALE_FULLSCREEN
);
subpixel_order
=
SubPixelHorizontalRGB
;
...
...
@@ -1651,7 +1651,7 @@ radeon_add_atom_connector(struct drm_device *dev,
DRM_ERROR
(
"VGA: Failed to assign ddc bus! Check dmesg for i2c errors.
\n
"
);
}
radeon_connector
->
dac_load_detect
=
true
;
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
load_detect_property
,
1
);
/* no HPD on analog connectors */
...
...
@@ -1669,7 +1669,7 @@ radeon_add_atom_connector(struct drm_device *dev,
DRM_ERROR
(
"DVIA: Failed to assign ddc bus! Check dmesg for i2c errors.
\n
"
);
}
radeon_connector
->
dac_load_detect
=
true
;
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
load_detect_property
,
1
);
/* no HPD on analog connectors */
...
...
@@ -1692,23 +1692,23 @@ radeon_add_atom_connector(struct drm_device *dev,
DRM_ERROR
(
"DVI: Failed to assign ddc bus! Check dmesg for i2c errors.
\n
"
);
}
subpixel_order
=
SubPixelHorizontalRGB
;
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
coherent_mode_property
,
1
);
if
(
ASIC_IS_AVIVO
(
rdev
))
{
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
underscan_property
,
UNDERSCAN_OFF
);
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
underscan_hborder_property
,
0
);
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
underscan_vborder_property
,
0
);
}
if
(
connector_type
==
DRM_MODE_CONNECTOR_DVII
)
{
radeon_connector
->
dac_load_detect
=
true
;
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
load_detect_property
,
1
);
}
...
...
@@ -1732,17 +1732,17 @@ radeon_add_atom_connector(struct drm_device *dev,
if
(
!
radeon_connector
->
ddc_bus
)
DRM_ERROR
(
"HDMI: Failed to assign ddc bus! Check dmesg for i2c errors.
\n
"
);
}
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
coherent_mode_property
,
1
);
if
(
ASIC_IS_AVIVO
(
rdev
))
{
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
underscan_property
,
UNDERSCAN_OFF
);
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
underscan_hborder_property
,
0
);
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
underscan_vborder_property
,
0
);
}
...
...
@@ -1771,17 +1771,17 @@ radeon_add_atom_connector(struct drm_device *dev,
DRM_ERROR
(
"DP: Failed to assign ddc bus! Check dmesg for i2c errors.
\n
"
);
}
subpixel_order
=
SubPixelHorizontalRGB
;
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
coherent_mode_property
,
1
);
if
(
ASIC_IS_AVIVO
(
rdev
))
{
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
underscan_property
,
UNDERSCAN_OFF
);
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
underscan_hborder_property
,
0
);
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
underscan_vborder_property
,
0
);
}
...
...
@@ -1806,7 +1806,7 @@ radeon_add_atom_connector(struct drm_device *dev,
if
(
!
radeon_connector
->
ddc_bus
)
DRM_ERROR
(
"DP: Failed to assign ddc bus! Check dmesg for i2c errors.
\n
"
);
}
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
dev
->
mode_config
.
scaling_mode_property
,
DRM_MODE_SCALE_FULLSCREEN
);
subpixel_order
=
SubPixelHorizontalRGB
;
...
...
@@ -1819,10 +1819,10 @@ radeon_add_atom_connector(struct drm_device *dev,
drm_connector_init
(
dev
,
&
radeon_connector
->
base
,
&
radeon_tv_connector_funcs
,
connector_type
);
drm_connector_helper_add
(
&
radeon_connector
->
base
,
&
radeon_tv_connector_helper_funcs
);
radeon_connector
->
dac_load_detect
=
true
;
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
load_detect_property
,
1
);
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
tv_std_property
,
radeon_atombios_get_tv_info
(
rdev
));
/* no HPD on analog connectors */
...
...
@@ -1843,7 +1843,7 @@ radeon_add_atom_connector(struct drm_device *dev,
if
(
!
radeon_connector
->
ddc_bus
)
DRM_ERROR
(
"LVDS: Failed to assign ddc bus! Check dmesg for i2c errors.
\n
"
);
}
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
dev
->
mode_config
.
scaling_mode_property
,
DRM_MODE_SCALE_FULLSCREEN
);
subpixel_order
=
SubPixelHorizontalRGB
;
...
...
@@ -1922,7 +1922,7 @@ radeon_add_legacy_connector(struct drm_device *dev,
DRM_ERROR
(
"VGA: Failed to assign ddc bus! Check dmesg for i2c errors.
\n
"
);
}
radeon_connector
->
dac_load_detect
=
true
;
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
load_detect_property
,
1
);
/* no HPD on analog connectors */
...
...
@@ -1940,7 +1940,7 @@ radeon_add_legacy_connector(struct drm_device *dev,
DRM_ERROR
(
"DVIA: Failed to assign ddc bus! Check dmesg for i2c errors.
\n
"
);
}
radeon_connector
->
dac_load_detect
=
true
;
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
load_detect_property
,
1
);
/* no HPD on analog connectors */
...
...
@@ -1959,7 +1959,7 @@ radeon_add_legacy_connector(struct drm_device *dev,
}
if
(
connector_type
==
DRM_MODE_CONNECTOR_DVII
)
{
radeon_connector
->
dac_load_detect
=
true
;
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
load_detect_property
,
1
);
}
...
...
@@ -1983,10 +1983,10 @@ radeon_add_legacy_connector(struct drm_device *dev,
*/
if
(
rdev
->
family
==
CHIP_RS400
||
rdev
->
family
==
CHIP_RS480
)
radeon_connector
->
dac_load_detect
=
false
;
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
load_detect_property
,
radeon_connector
->
dac_load_detect
);
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
rdev
->
mode_info
.
tv_std_property
,
radeon_combios_get_tv_info
(
rdev
));
/* no HPD on analog connectors */
...
...
@@ -2002,7 +2002,7 @@ radeon_add_legacy_connector(struct drm_device *dev,
if
(
!
radeon_connector
->
ddc_bus
)
DRM_ERROR
(
"LVDS: Failed to assign ddc bus! Check dmesg for i2c errors.
\n
"
);
}
drm_
connector_attach_property
(
&
radeon_connector
->
base
,
drm_
object_attach_property
(
&
radeon_connector
->
base
.
base
,
dev
->
mode_config
.
scaling_mode_property
,
DRM_MODE_SCALE_FULLSCREEN
);
subpixel_order
=
SubPixelHorizontalRGB
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录