Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
2db83827
Commit
2db83827
authored
Oct 11, 2012
by
Rob Clark
Committed by
Rob Clark
Nov 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: drm_connector_property -> drm_object_property
Signed-off-by:
Rob Clark
<
rob@ti.com
>
parent
6de6d846
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
drivers/gpu/drm/nouveau/nouveau_connector.c
drivers/gpu/drm/nouveau/nouveau_connector.c
+11
-11
drivers/gpu/drm/nouveau/nv17_tv.c
drivers/gpu/drm/nouveau/nv17_tv.c
+8
-8
No files found.
drivers/gpu/drm/nouveau/nouveau_connector.c
View file @
2db83827
...
...
@@ -220,7 +220,7 @@ nouveau_connector_set_encoder(struct drm_connector *connector,
}
if
(
nv_connector
->
type
==
DCB_CONNECTOR_DVI_I
)
{
drm_
connector_property_set_value
(
connector
,
drm_
object_property_set_value
(
&
connector
->
base
,
dev
->
mode_config
.
dvi_i_subconnector_property
,
nv_encoder
->
dcb
->
type
==
DCB_OUTPUT_TMDS
?
DRM_MODE_SUBCONNECTOR_DVID
:
...
...
@@ -1040,7 +1040,7 @@ nouveau_connector_create(struct drm_device *dev, int index)
/* Init DVI-I specific properties */
if
(
nv_connector
->
type
==
DCB_CONNECTOR_DVI_I
)
drm_
connector_attach_property
(
connector
,
dev
->
mode_config
.
dvi_i_subconnector_property
,
0
);
drm_
object_attach_property
(
&
connector
->
base
,
dev
->
mode_config
.
dvi_i_subconnector_property
,
0
);
/* Add overscan compensation options to digital outputs */
if
(
disp
->
underscan_property
&&
...
...
@@ -1048,31 +1048,31 @@ nouveau_connector_create(struct drm_device *dev, int index)
type
==
DRM_MODE_CONNECTOR_DVII
||
type
==
DRM_MODE_CONNECTOR_HDMIA
||
type
==
DRM_MODE_CONNECTOR_DisplayPort
))
{
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
disp
->
underscan_property
,
UNDERSCAN_OFF
);
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
disp
->
underscan_hborder_property
,
0
);
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
disp
->
underscan_vborder_property
,
0
);
}
/* Add hue and saturation options */
if
(
disp
->
vibrant_hue_property
)
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
disp
->
vibrant_hue_property
,
90
);
if
(
disp
->
color_vibrance_property
)
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
disp
->
color_vibrance_property
,
150
);
switch
(
nv_connector
->
type
)
{
case
DCB_CONNECTOR_VGA
:
if
(
nv_device
(
drm
->
device
)
->
card_type
>=
NV_50
)
{
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
dev
->
mode_config
.
scaling_mode_property
,
nv_connector
->
scaling_mode
);
}
...
...
@@ -1085,18 +1085,18 @@ nouveau_connector_create(struct drm_device *dev, int index)
default:
nv_connector
->
scaling_mode
=
DRM_MODE_SCALE_FULLSCREEN
;
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
dev
->
mode_config
.
scaling_mode_property
,
nv_connector
->
scaling_mode
);
if
(
disp
->
dithering_mode
)
{
nv_connector
->
dithering_mode
=
DITHERING_MODE_AUTO
;
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
disp
->
dithering_mode
,
nv_connector
->
dithering_mode
);
}
if
(
disp
->
dithering_depth
)
{
nv_connector
->
dithering_depth
=
DITHERING_DEPTH_AUTO
;
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
disp
->
dithering_depth
,
nv_connector
->
dithering_depth
);
}
...
...
drivers/gpu/drm/nouveau/nv17_tv.c
View file @
2db83827
...
...
@@ -195,7 +195,7 @@ nv17_tv_detect(struct drm_encoder *encoder, struct drm_connector *connector)
break
;
}
drm_
connector_property_set_value
(
connector
,
drm_
object_property_set_value
(
&
connector
->
base
,
conf
->
tv_subconnector_property
,
tv_enc
->
subconnector
);
...
...
@@ -672,25 +672,25 @@ static int nv17_tv_create_resources(struct drm_encoder *encoder,
drm_mode_create_tv_properties
(
dev
,
num_tv_norms
,
nv17_tv_norm_names
);
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
conf
->
tv_select_subconnector_property
,
tv_enc
->
select_subconnector
);
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
conf
->
tv_subconnector_property
,
tv_enc
->
subconnector
);
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
conf
->
tv_mode_property
,
tv_enc
->
tv_norm
);
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
conf
->
tv_flicker_reduction_property
,
tv_enc
->
flicker
);
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
conf
->
tv_saturation_property
,
tv_enc
->
saturation
);
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
conf
->
tv_hue_property
,
tv_enc
->
hue
);
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
conf
->
tv_overscan_property
,
tv_enc
->
overscan
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment