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
Kirill Smelkov
linux
Commits
a39afc8e
Commit
a39afc8e
authored
Jul 28, 2010
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/hda' into topic/hda
parents
7ccc3efa
38faddb1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
sound/pci/hda/patch_hdmi.c
sound/pci/hda/patch_hdmi.c
+13
-0
sound/pci/hda/patch_nvhdmi.c
sound/pci/hda/patch_nvhdmi.c
+3
-0
No files found.
sound/pci/hda/patch_hdmi.c
View file @
a39afc8e
...
...
@@ -52,6 +52,10 @@ struct hdmi_spec {
*/
struct
hda_multi_out
multiout
;
unsigned
int
codec_type
;
/* misc flags */
/* PD bit indicates only the update, not the current state */
unsigned
int
old_pin_detect
:
1
;
};
...
...
@@ -616,6 +620,9 @@ static void hdmi_setup_audio_infoframe(struct hda_codec *codec, hda_nid_t nid,
* Unsolicited events
*/
static
void
hdmi_present_sense
(
struct
hda_codec
*
codec
,
hda_nid_t
pin_nid
,
struct
hdmi_eld
*
eld
);
static
void
hdmi_intrinsic_event
(
struct
hda_codec
*
codec
,
unsigned
int
res
)
{
struct
hdmi_spec
*
spec
=
codec
->
spec
;
...
...
@@ -632,6 +639,12 @@ static void hdmi_intrinsic_event(struct hda_codec *codec, unsigned int res)
if
(
index
<
0
)
return
;
if
(
spec
->
old_pin_detect
)
{
if
(
pind
)
hdmi_present_sense
(
codec
,
tag
,
&
spec
->
sink_eld
[
index
]);
pind
=
spec
->
sink_eld
[
index
].
monitor_present
;
}
spec
->
sink_eld
[
index
].
monitor_present
=
pind
;
spec
->
sink_eld
[
index
].
eld_valid
=
eldv
;
...
...
sound/pci/hda/patch_nvhdmi.c
View file @
a39afc8e
...
...
@@ -478,6 +478,7 @@ static int patch_nvhdmi_8ch_89(struct hda_codec *codec)
codec
->
spec
=
spec
;
spec
->
codec_type
=
HDA_CODEC_NVIDIA_MCP89
;
spec
->
old_pin_detect
=
1
;
if
(
hdmi_parse_codec
(
codec
)
<
0
)
{
codec
->
spec
=
NULL
;
...
...
@@ -508,6 +509,7 @@ static int patch_nvhdmi_8ch_7x(struct hda_codec *codec)
spec
->
multiout
.
max_channels
=
8
;
spec
->
multiout
.
dig_out_nid
=
nvhdmi_master_con_nid_7x
;
spec
->
codec_type
=
HDA_CODEC_NVIDIA_MCP7X
;
spec
->
old_pin_detect
=
1
;
codec
->
patch_ops
=
nvhdmi_patch_ops_8ch_7x
;
...
...
@@ -528,6 +530,7 @@ static int patch_nvhdmi_2ch(struct hda_codec *codec)
spec
->
multiout
.
max_channels
=
2
;
spec
->
multiout
.
dig_out_nid
=
nvhdmi_master_con_nid_7x
;
spec
->
codec_type
=
HDA_CODEC_NVIDIA_MCP7X
;
spec
->
old_pin_detect
=
1
;
codec
->
patch_ops
=
nvhdmi_patch_ops_2ch
;
...
...
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