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
86f2ce03
Commit
86f2ce03
authored
Jan 25, 2010
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/hda' into for-linus
parents
40aa7030
973b8cb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
15 deletions
+22
-15
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_realtek.c
+22
-15
No files found.
sound/pci/hda/patch_realtek.c
View file @
86f2ce03
...
@@ -1093,6 +1093,16 @@ static void alc889_coef_init(struct hda_codec *codec)
...
@@ -1093,6 +1093,16 @@ static void alc889_coef_init(struct hda_codec *codec)
snd_hda_codec_write
(
codec
,
0x20
,
0
,
AC_VERB_SET_PROC_COEF
,
tmp
|
0x2010
);
snd_hda_codec_write
(
codec
,
0x20
,
0
,
AC_VERB_SET_PROC_COEF
,
tmp
|
0x2010
);
}
}
/* turn on/off EAPD control (only if available) */
static
void
set_eapd
(
struct
hda_codec
*
codec
,
hda_nid_t
nid
,
int
on
)
{
if
(
get_wcaps_type
(
get_wcaps
(
codec
,
nid
))
!=
AC_WID_PIN
)
return
;
if
(
snd_hda_query_pin_caps
(
codec
,
nid
)
&
AC_PINCAP_EAPD
)
snd_hda_codec_write
(
codec
,
nid
,
0
,
AC_VERB_SET_EAPD_BTLENABLE
,
on
?
2
:
0
);
}
static
void
alc_auto_init_amp
(
struct
hda_codec
*
codec
,
int
type
)
static
void
alc_auto_init_amp
(
struct
hda_codec
*
codec
,
int
type
)
{
{
unsigned
int
tmp
;
unsigned
int
tmp
;
...
@@ -1110,25 +1120,22 @@ static void alc_auto_init_amp(struct hda_codec *codec, int type)
...
@@ -1110,25 +1120,22 @@ static void alc_auto_init_amp(struct hda_codec *codec, int type)
case
ALC_INIT_DEFAULT
:
case
ALC_INIT_DEFAULT
:
switch
(
codec
->
vendor_id
)
{
switch
(
codec
->
vendor_id
)
{
case
0x10ec0260
:
case
0x10ec0260
:
snd_hda_codec_write
(
codec
,
0x0f
,
0
,
set_eapd
(
codec
,
0x0f
,
1
);
AC_VERB_SET_EAPD_BTLENABLE
,
2
);
set_eapd
(
codec
,
0x10
,
1
);
snd_hda_codec_write
(
codec
,
0x10
,
0
,
AC_VERB_SET_EAPD_BTLENABLE
,
2
);
break
;
break
;
case
0x10ec0262
:
case
0x10ec0262
:
case
0x10ec0267
:
case
0x10ec0267
:
case
0x10ec0268
:
case
0x10ec0268
:
case
0x10ec0269
:
case
0x10ec0269
:
case
0x10ec0270
:
case
0x10ec0272
:
case
0x10ec0272
:
case
0x10ec0660
:
case
0x10ec0660
:
case
0x10ec0662
:
case
0x10ec0662
:
case
0x10ec0663
:
case
0x10ec0663
:
case
0x10ec0862
:
case
0x10ec0862
:
case
0x10ec0889
:
case
0x10ec0889
:
snd_hda_codec_write
(
codec
,
0x14
,
0
,
set_eapd
(
codec
,
0x14
,
1
);
AC_VERB_SET_EAPD_BTLENABLE
,
2
);
set_eapd
(
codec
,
0x15
,
1
);
snd_hda_codec_write
(
codec
,
0x15
,
0
,
AC_VERB_SET_EAPD_BTLENABLE
,
2
);
break
;
break
;
}
}
switch
(
codec
->
vendor_id
)
{
switch
(
codec
->
vendor_id
)
{
...
@@ -1836,10 +1843,8 @@ static void alc889_acer_aspire_8930g_setup(struct hda_codec *codec)
...
@@ -1836,10 +1843,8 @@ static void alc889_acer_aspire_8930g_setup(struct hda_codec *codec)
#ifdef CONFIG_SND_HDA_POWER_SAVE
#ifdef CONFIG_SND_HDA_POWER_SAVE
static
void
alc889_power_eapd
(
struct
hda_codec
*
codec
,
int
power
)
static
void
alc889_power_eapd
(
struct
hda_codec
*
codec
,
int
power
)
{
{
snd_hda_codec_write
(
codec
,
0x14
,
0
,
set_eapd
(
codec
,
0x14
,
power
);
AC_VERB_SET_EAPD_BTLENABLE
,
power
?
2
:
0
);
set_eapd
(
codec
,
0x15
,
power
);
snd_hda_codec_write
(
codec
,
0x15
,
0
,
AC_VERB_SET_EAPD_BTLENABLE
,
power
?
2
:
0
);
}
}
#endif
#endif
...
@@ -9473,6 +9478,7 @@ static struct alc_config_preset alc882_presets[] = {
...
@@ -9473,6 +9478,7 @@ static struct alc_config_preset alc882_presets[] = {
.
num_channel_mode
=
ARRAY_SIZE
(
alc883_3ST_6ch_modes
),
.
num_channel_mode
=
ARRAY_SIZE
(
alc883_3ST_6ch_modes
),
.
channel_mode
=
alc883_3ST_6ch_modes
,
.
channel_mode
=
alc883_3ST_6ch_modes
,
.
need_dac_fix
=
1
,
.
need_dac_fix
=
1
,
.
const_channel_count
=
6
,
.
num_mux_defs
=
.
num_mux_defs
=
ARRAY_SIZE
(
alc888_2_capture_sources
),
ARRAY_SIZE
(
alc888_2_capture_sources
),
.
input_mux
=
alc888_2_capture_sources
,
.
input_mux
=
alc888_2_capture_sources
,
...
@@ -10377,7 +10383,7 @@ static void alc262_hp_t5735_setup(struct hda_codec *codec)
...
@@ -10377,7 +10383,7 @@ static void alc262_hp_t5735_setup(struct hda_codec *codec)
struct
alc_spec
*
spec
=
codec
->
spec
;
struct
alc_spec
*
spec
=
codec
->
spec
;
spec
->
autocfg
.
hp_pins
[
0
]
=
0x15
;
spec
->
autocfg
.
hp_pins
[
0
]
=
0x15
;
spec
->
autocfg
.
speaker_pins
[
0
]
=
0x
0c
;
/* HACK: not actually a pin */
spec
->
autocfg
.
speaker_pins
[
0
]
=
0x
14
;
}
}
static
struct
snd_kcontrol_new
alc262_hp_t5735_mixer
[]
=
{
static
struct
snd_kcontrol_new
alc262_hp_t5735_mixer
[]
=
{
...
@@ -11788,9 +11794,9 @@ static struct alc_config_preset alc262_presets[] = {
...
@@ -11788,9 +11794,9 @@ static struct alc_config_preset alc262_presets[] = {
.
num_channel_mode
=
ARRAY_SIZE
(
alc262_modes
),
.
num_channel_mode
=
ARRAY_SIZE
(
alc262_modes
),
.
channel_mode
=
alc262_modes
,
.
channel_mode
=
alc262_modes
,
.
input_mux
=
&
alc262_capture_source
,
.
input_mux
=
&
alc262_capture_source
,
.
unsol_event
=
alc_
automute_amp
_unsol_event
,
.
unsol_event
=
alc_
sku
_unsol_event
,
.
setup
=
alc262_hp_t5735_setup
,
.
setup
=
alc262_hp_t5735_setup
,
.
init_hook
=
alc_
automute_amp
,
.
init_hook
=
alc_
inithook
,
},
},
[
ALC262_HP_RP5700
]
=
{
[
ALC262_HP_RP5700
]
=
{
.
mixers
=
{
alc262_hp_rp5700_mixer
},
.
mixers
=
{
alc262_hp_rp5700_mixer
},
...
@@ -12541,6 +12547,7 @@ static int alc268_new_analog_output(struct alc_spec *spec, hda_nid_t nid,
...
@@ -12541,6 +12547,7 @@ static int alc268_new_analog_output(struct alc_spec *spec, hda_nid_t nid,
dac
=
0x02
;
dac
=
0x02
;
break
;
break
;
case
0x15
:
case
0x15
:
case
0x21
:
dac
=
0x03
;
dac
=
0x03
;
break
;
break
;
default:
default:
...
...
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