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
8cd0775d
Commit
8cd0775d
authored
Aug 23, 2011
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: hda - Fix initialization of multi-speaker output paths for Realtek
Signed-off-by:
Takashi Iwai
<
tiwai@suse.de
>
parent
5fa9b151
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_realtek.c
+12
-5
No files found.
sound/pci/hda/patch_realtek.c
View file @
8cd0775d
...
...
@@ -3223,6 +3223,7 @@ static void alc_auto_init_multi_out(struct hda_codec *codec)
static
void
alc_auto_init_extra_out
(
struct
hda_codec
*
codec
)
{
struct
alc_spec
*
spec
=
codec
->
spec
;
int
i
;
hda_nid_t
pin
,
dac
;
pin
=
spec
->
autocfg
.
hp_pins
[
0
];
...
...
@@ -3232,11 +3233,17 @@ static void alc_auto_init_extra_out(struct hda_codec *codec)
dac
=
spec
->
multiout
.
dac_nids
[
0
];
alc_auto_set_output_and_unmute
(
codec
,
pin
,
PIN_HP
,
dac
);
}
pin
=
spec
->
autocfg
.
speaker_pins
[
0
];
if
(
pin
)
{
for
(
i
=
0
;
i
<
spec
->
autocfg
.
speaker_outs
;
i
++
)
{
pin
=
spec
->
autocfg
.
speaker_pins
[
i
];
if
(
!
pin
)
break
;
dac
=
spec
->
multiout
.
extra_out_nid
[
i
];
if
(
!
dac
)
{
if
(
i
>
0
&&
spec
->
multiout
.
extra_out_nid
[
0
])
dac
=
spec
->
multiout
.
extra_out_nid
[
0
];
if
(
!
dac
)
else
dac
=
spec
->
multiout
.
dac_nids
[
0
];
}
alc_auto_set_output_and_unmute
(
codec
,
pin
,
PIN_OUT
,
dac
);
}
}
...
...
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