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
8cd1fd25
Commit
8cd1fd25
authored
Dec 17, 2010
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/hda' into for-linus
parents
d70ab7f7
53e8c323
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_realtek.c
+22
-2
No files found.
sound/pci/hda/patch_realtek.c
View file @
8cd1fd25
...
@@ -10830,7 +10830,8 @@ static int alc_auto_add_mic_boost(struct hda_codec *codec)
...
@@ -10830,7 +10830,8 @@ static int alc_auto_add_mic_boost(struct hda_codec *codec)
{
{
struct
alc_spec
*
spec
=
codec
->
spec
;
struct
alc_spec
*
spec
=
codec
->
spec
;
struct
auto_pin_cfg
*
cfg
=
&
spec
->
autocfg
;
struct
auto_pin_cfg
*
cfg
=
&
spec
->
autocfg
;
int
i
,
err
;
int
i
,
err
,
type
;
int
type_idx
=
0
;
hda_nid_t
nid
;
hda_nid_t
nid
;
for
(
i
=
0
;
i
<
cfg
->
num_inputs
;
i
++
)
{
for
(
i
=
0
;
i
<
cfg
->
num_inputs
;
i
++
)
{
...
@@ -10839,9 +10840,15 @@ static int alc_auto_add_mic_boost(struct hda_codec *codec)
...
@@ -10839,9 +10840,15 @@ static int alc_auto_add_mic_boost(struct hda_codec *codec)
nid
=
cfg
->
inputs
[
i
].
pin
;
nid
=
cfg
->
inputs
[
i
].
pin
;
if
(
get_wcaps
(
codec
,
nid
)
&
AC_WCAP_IN_AMP
)
{
if
(
get_wcaps
(
codec
,
nid
)
&
AC_WCAP_IN_AMP
)
{
char
label
[
32
];
char
label
[
32
];
type
=
cfg
->
inputs
[
i
].
type
;
if
(
i
>
0
&&
type
==
cfg
->
inputs
[
i
-
1
].
type
)
type_idx
++
;
else
type_idx
=
0
;
snprintf
(
label
,
sizeof
(
label
),
"%s Boost"
,
snprintf
(
label
,
sizeof
(
label
),
"%s Boost"
,
hda_get_autocfg_input_label
(
codec
,
cfg
,
i
));
hda_get_autocfg_input_label
(
codec
,
cfg
,
i
));
err
=
add_control
(
spec
,
ALC_CTL_WIDGET_VOL
,
label
,
0
,
err
=
add_control
(
spec
,
ALC_CTL_WIDGET_VOL
,
label
,
type_idx
,
HDA_COMPOSE_AMP_VAL
(
nid
,
3
,
0
,
HDA_INPUT
));
HDA_COMPOSE_AMP_VAL
(
nid
,
3
,
0
,
HDA_INPUT
));
if
(
err
<
0
)
if
(
err
<
0
)
return
err
;
return
err
;
...
@@ -14800,6 +14807,8 @@ static int alc269_resume(struct hda_codec *codec)
...
@@ -14800,6 +14807,8 @@ static int alc269_resume(struct hda_codec *codec)
enum
{
enum
{
ALC269_FIXUP_SONY_VAIO
,
ALC269_FIXUP_SONY_VAIO
,
ALC269_FIXUP_DELL_M101Z
,
ALC269_FIXUP_DELL_M101Z
,
ALC269_FIXUP_LENOVO_EDGE14
,
ALC269_FIXUP_ASUS_G73JW
,
};
};
static
const
struct
alc_fixup
alc269_fixups
[]
=
{
static
const
struct
alc_fixup
alc269_fixups
[]
=
{
...
@@ -14817,11 +14826,22 @@ static const struct alc_fixup alc269_fixups[] = {
...
@@ -14817,11 +14826,22 @@ static const struct alc_fixup alc269_fixups[] = {
{}
{}
}
}
},
},
[
ALC269_FIXUP_LENOVO_EDGE14
]
=
{
.
sku
=
ALC_FIXUP_SKU_IGNORE
,
},
[
ALC269_FIXUP_ASUS_G73JW
]
=
{
.
pins
=
(
const
struct
alc_pincfg
[])
{
{
0x17
,
0x99130111
},
/* subwoofer */
{
}
}
},
};
};
static
struct
snd_pci_quirk
alc269_fixup_tbl
[]
=
{
static
struct
snd_pci_quirk
alc269_fixup_tbl
[]
=
{
SND_PCI_QUIRK_VENDOR
(
0x104d
,
"Sony VAIO"
,
ALC269_FIXUP_SONY_VAIO
),
SND_PCI_QUIRK_VENDOR
(
0x104d
,
"Sony VAIO"
,
ALC269_FIXUP_SONY_VAIO
),
SND_PCI_QUIRK
(
0x1028
,
0x0470
,
"Dell M101z"
,
ALC269_FIXUP_DELL_M101Z
),
SND_PCI_QUIRK
(
0x1028
,
0x0470
,
"Dell M101z"
,
ALC269_FIXUP_DELL_M101Z
),
SND_PCI_QUIRK
(
0x17aa
,
0x21b8
,
"Thinkpad Edge 14"
,
ALC269_FIXUP_LENOVO_EDGE14
),
SND_PCI_QUIRK
(
0x1043
,
0x1a13
,
"Asus G73Jw"
,
ALC269_FIXUP_ASUS_G73JW
),
{}
{}
};
};
...
...
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