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
d889c524
Commit
d889c524
authored
Sep 15, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/gt214-/kms: fix hda eld regression
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
9506140f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
drivers/gpu/drm/nouveau/nv50_display.c
drivers/gpu/drm/nouveau/nv50_display.c
+10
-8
No files found.
drivers/gpu/drm/nouveau/nv50_display.c
View file @
d889c524
...
...
@@ -1658,15 +1658,17 @@ nv50_audio_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode)
struct
nouveau_encoder
*
nv_encoder
=
nouveau_encoder
(
encoder
);
struct
nouveau_connector
*
nv_connector
;
struct
nv50_disp
*
disp
=
nv50_disp
(
encoder
->
dev
);
struct
__packed
{
struct
{
struct
nv50_disp_mthd_v1
base
;
struct
nv50_disp_mthd_v1
mthd
;
struct
nv50_disp_sor_hda_eld_v0
eld
;
}
base
;
u8
data
[
sizeof
(
nv_connector
->
base
.
eld
)];
}
args
=
{
.
base
.
version
=
1
,
.
base
.
method
=
NV50_DISP_MTHD_V1_SOR_HDA_ELD
,
.
base
.
hasht
=
nv_encoder
->
dcb
->
hasht
,
.
base
.
hashm
=
nv_encoder
->
dcb
->
hashm
,
.
base
.
mthd
.
version
=
1
,
.
base
.
m
thd
.
m
ethod
=
NV50_DISP_MTHD_V1_SOR_HDA_ELD
,
.
base
.
mthd
.
hasht
=
nv_encoder
->
dcb
->
hasht
,
.
base
.
mthd
.
hashm
=
nv_encoder
->
dcb
->
hashm
,
};
nv_connector
=
nouveau_encoder_connector_get
(
nv_encoder
);
...
...
@@ -1676,7 +1678,7 @@ nv50_audio_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode)
drm_edid_to_eld
(
&
nv_connector
->
base
,
nv_connector
->
edid
);
memcpy
(
args
.
data
,
nv_connector
->
base
.
eld
,
sizeof
(
args
.
data
));
nvif_mthd
(
disp
->
disp
,
0
,
&
args
,
sizeof
(
args
)
);
nvif_mthd
(
disp
->
disp
,
0
,
&
args
,
sizeof
(
args
.
base
)
+
args
.
data
[
2
]
*
4
);
}
static
void
...
...
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