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
8fda43c1
Commit
8fda43c1
authored
Jun 15, 2010
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/hda' into for-linus
parents
2d0a1dbf
b8f171e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
17 deletions
+18
-17
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_realtek.c
+18
-17
No files found.
sound/pci/hda/patch_realtek.c
View file @
8fda43c1
...
...
@@ -2619,16 +2619,18 @@ static int alc_build_controls(struct hda_codec *codec)
}
/* assign Capture Source enums to NID */
kctl
=
snd_hda_find_mixer_ctl
(
codec
,
"Capture Source"
);
if
(
!
kctl
)
kctl
=
snd_hda_find_mixer_ctl
(
codec
,
"Input Source"
);
for
(
i
=
0
;
kctl
&&
i
<
kctl
->
count
;
i
++
)
{
hda_nid_t
*
nids
=
spec
->
capsrc_nids
;
if
(
!
nids
)
nids
=
spec
->
adc_nids
;
err
=
snd_hda_add_nid
(
codec
,
kctl
,
i
,
nids
[
i
]);
if
(
err
<
0
)
return
err
;
if
(
spec
->
capsrc_nids
||
spec
->
adc_nids
)
{
kctl
=
snd_hda_find_mixer_ctl
(
codec
,
"Capture Source"
);
if
(
!
kctl
)
kctl
=
snd_hda_find_mixer_ctl
(
codec
,
"Input Source"
);
for
(
i
=
0
;
kctl
&&
i
<
kctl
->
count
;
i
++
)
{
hda_nid_t
*
nids
=
spec
->
capsrc_nids
;
if
(
!
nids
)
nids
=
spec
->
adc_nids
;
err
=
snd_hda_add_nid
(
codec
,
kctl
,
i
,
nids
[
i
]);
if
(
err
<
0
)
return
err
;
}
}
if
(
spec
->
cap_mixer
)
{
const
char
*
kname
=
kctl
?
kctl
->
id
.
name
:
NULL
;
...
...
@@ -6948,7 +6950,7 @@ static struct hda_input_mux mb5_capture_source = {
.
num_items
=
3
,
.
items
=
{
{
"Mic"
,
0x1
},
{
"Line"
,
0x
2
},
{
"Line"
,
0x
7
},
{
"CD"
,
0x4
},
},
};
...
...
@@ -7469,8 +7471,8 @@ static struct snd_kcontrol_new alc885_mb5_mixer[] = {
HDA_BIND_MUTE
(
"LFE Playback Switch"
,
0x0e
,
0x02
,
HDA_INPUT
),
HDA_CODEC_VOLUME
(
"Headphone Playback Volume"
,
0x0f
,
0x00
,
HDA_OUTPUT
),
HDA_BIND_MUTE
(
"Headphone Playback Switch"
,
0x0f
,
0x02
,
HDA_INPUT
),
HDA_CODEC_VOLUME
(
"Line Playback Volume"
,
0x0b
,
0x0
2
,
HDA_INPUT
),
HDA_CODEC_MUTE
(
"Line Playback Switch"
,
0x0b
,
0x0
2
,
HDA_INPUT
),
HDA_CODEC_VOLUME
(
"Line Playback Volume"
,
0x0b
,
0x0
7
,
HDA_INPUT
),
HDA_CODEC_MUTE
(
"Line Playback Switch"
,
0x0b
,
0x0
7
,
HDA_INPUT
),
HDA_CODEC_VOLUME
(
"Mic Playback Volume"
,
0x0b
,
0x01
,
HDA_INPUT
),
HDA_CODEC_MUTE
(
"Mic Playback Switch"
,
0x0b
,
0x01
,
HDA_INPUT
),
HDA_CODEC_VOLUME
(
"Line Boost"
,
0x15
,
0x00
,
HDA_INPUT
),
...
...
@@ -7853,10 +7855,9 @@ static struct hda_verb alc885_mb5_init_verbs[] = {
{
0x15
,
AC_VERB_SET_PIN_WIDGET_CONTROL
,
PIN_IN
},
{
0x15
,
AC_VERB_SET_AMP_GAIN_MUTE
,
AMP_OUT_MUTE
},
{
0x24
,
AC_VERB_SET_AMP_GAIN_MUTE
,
AMP_IN_UNMUTE
(
1
)},
{
0x24
,
AC_VERB_SET_AMP_GAIN_MUTE
,
AMP_IN_MUTE
(
3
)},
{
0x24
,
AC_VERB_SET_AMP_GAIN_MUTE
,
AMP_IN_MUTE
(
2
)},
{
0x24
,
AC_VERB_SET_AMP_GAIN_MUTE
,
AMP_IN_MUTE
(
4
)},
{
0x24
,
AC_VERB_SET_AMP_GAIN_MUTE
,
AMP_IN_UNMUTE
(
0x1
)},
{
0x24
,
AC_VERB_SET_AMP_GAIN_MUTE
,
AMP_IN_MUTE
(
0x7
)},
{
0x24
,
AC_VERB_SET_AMP_GAIN_MUTE
,
AMP_IN_MUTE
(
0x4
)},
{
}
};
...
...
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