Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
a3daf689
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a3daf689
编写于
7月 24, 2009
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'fix/hda' into topic/hda
上级
b5d6f93b
8de56b7d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
23 addition
and
21 deletion
+23
-21
sound/pci/hda/patch_analog.c
sound/pci/hda/patch_analog.c
+1
-1
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_realtek.c
+16
-17
sound/pci/hda/patch_sigmatel.c
sound/pci/hda/patch_sigmatel.c
+6
-3
未找到文件。
sound/pci/hda/patch_analog.c
浏览文件 @
a3daf689
...
...
@@ -3754,7 +3754,7 @@ static int ad1884a_mobile_master_sw_put(struct snd_kcontrol *kcontrol,
int
mute
=
(
!
ucontrol
->
value
.
integer
.
value
[
0
]
&&
!
ucontrol
->
value
.
integer
.
value
[
1
]);
/* toggle GPIO1 according to the mute state */
snd_hda_codec_write
(
codec
,
0x01
,
0
,
AC_VERB_SET_GPIO_DATA
,
snd_hda_codec_write
_cache
(
codec
,
0x01
,
0
,
AC_VERB_SET_GPIO_DATA
,
mute
?
0x02
:
0x0
);
return
ret
;
}
...
...
sound/pci/hda/patch_realtek.c
浏览文件 @
a3daf689
...
...
@@ -10389,6 +10389,18 @@ static void alc262_lenovo_3000_unsol_event(struct hda_codec *codec,
alc262_lenovo_3000_automute(codec, 1);
}
static int amp_stereo_mute_update(struct hda_codec *codec, hda_nid_t nid,
int dir, int idx, long *valp)
{
int i, change = 0;
for (i = 0; i < 2; i++, valp++)
change |= snd_hda_codec_amp_update(codec, nid, i, dir, idx,
HDA_AMP_MUTE,
*valp ? 0 : HDA_AMP_MUTE);
return change;
}
/* bind hp and internal speaker mute (with plug check) */
static int alc262_fujitsu_master_sw_put(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
...
...
@@ -10397,13 +10409,8 @@ static int alc262_fujitsu_master_sw_put(struct snd_kcontrol *kcontrol,
long *valp = ucontrol->value.integer.value;
int change;
change = snd_hda_codec_amp_stereo(codec, 0x14, HDA_OUTPUT, 0,
HDA_AMP_MUTE,
valp ? 0 : HDA_AMP_MUTE);
change |= snd_hda_codec_amp_stereo(codec, 0x1b, HDA_OUTPUT, 0,
HDA_AMP_MUTE,
valp ? 0 : HDA_AMP_MUTE);
change = amp_stereo_mute_update(codec, 0x14, HDA_OUTPUT, 0, valp);
change |= amp_stereo_mute_update(codec, 0x1b, HDA_OUTPUT, 0, valp);
if (change)
alc262_fujitsu_automute(codec, 0);
return change;
...
...
@@ -10438,10 +10445,7 @@ static int alc262_lenovo_3000_master_sw_put(struct snd_kcontrol *kcontrol,
long *valp = ucontrol->value.integer.value;
int change;
change = snd_hda_codec_amp_stereo(codec, 0x1b, HDA_OUTPUT, 0,
HDA_AMP_MUTE,
valp ? 0 : HDA_AMP_MUTE);
change = amp_stereo_mute_update(codec, 0x1b, HDA_OUTPUT, 0, valp);
if (change)
alc262_lenovo_3000_automute(codec, 0);
return change;
...
...
@@ -11612,12 +11616,7 @@ static int alc268_acer_master_sw_put(struct snd_kcontrol *kcontrol,
long *valp = ucontrol->value.integer.value;
int change;
change = snd_hda_codec_amp_update(codec, 0x14, 0, HDA_OUTPUT, 0,
HDA_AMP_MUTE,
valp[0] ? 0 : HDA_AMP_MUTE);
change |= snd_hda_codec_amp_update(codec, 0x14, 1, HDA_OUTPUT, 0,
HDA_AMP_MUTE,
valp[1] ? 0 : HDA_AMP_MUTE);
change = amp_stereo_mute_update(codec, 0x14, HDA_OUTPUT, 0, valp);
if (change)
alc268_acer_automute(codec, 0);
return change;
...
...
sound/pci/hda/patch_sigmatel.c
浏览文件 @
a3daf689
...
...
@@ -2378,6 +2378,7 @@ static struct snd_pci_quirk stac9205_cfg_tbl[] = {
SND_PCI_QUIRK
(
PCI_VENDOR_ID_DELL
,
0x0228
,
"Dell Vostro 1500"
,
STAC_9205_DELL_M42
),
/* Gateway */
SND_PCI_QUIRK
(
0x107b
,
0x0560
,
"Gateway T6834c"
,
STAC_9205_EAPD
),
SND_PCI_QUIRK
(
0x107b
,
0x0565
,
"Gateway T1616"
,
STAC_9205_EAPD
),
{}
/* terminator */
};
...
...
@@ -4065,7 +4066,7 @@ static int stac92xx_add_jack(struct hda_codec *codec,
jack
->
nid
=
nid
;
jack
->
type
=
type
;
s
printf
(
name
,
"%s at %s %s Jack"
,
s
nprintf
(
name
,
sizeof
(
name
)
,
"%s at %s %s Jack"
,
snd_hda_get_jack_type
(
def_conf
),
snd_hda_get_jack_connectivity
(
def_conf
),
snd_hda_get_jack_location
(
def_conf
));
...
...
@@ -5870,6 +5871,8 @@ static unsigned int *stac9872_brd_tbl[STAC_9872_MODELS] = {
};
static
struct
snd_pci_quirk
stac9872_cfg_tbl
[]
=
{
SND_PCI_QUIRK_MASK
(
0x104d
,
0xfff0
,
0x81e0
,
"Sony VAIO F/S"
,
STAC_9872_VAIO
),
{}
/* terminator */
};
...
...
@@ -5882,6 +5885,8 @@ static int patch_stac9872(struct hda_codec *codec)
if
(
spec
==
NULL
)
return
-
ENOMEM
;
codec
->
spec
=
spec
;
spec
->
num_pins
=
ARRAY_SIZE
(
stac9872_pin_nids
);
spec
->
pin_nids
=
stac9872_pin_nids
;
spec
->
board_config
=
snd_hda_check_board_config
(
codec
,
STAC_9872_MODELS
,
stac9872_models
,
...
...
@@ -5893,8 +5898,6 @@ static int patch_stac9872(struct hda_codec *codec)
stac92xx_set_config_regs
(
codec
,
stac9872_brd_tbl
[
spec
->
board_config
]);
spec
->
num_pins
=
ARRAY_SIZE
(
stac9872_pin_nids
);
spec
->
pin_nids
=
stac9872_pin_nids
;
spec
->
multiout
.
dac_nids
=
spec
->
dac_nids
;
spec
->
num_adcs
=
ARRAY_SIZE
(
stac9872_adc_nids
);
spec
->
adc_nids
=
stac9872_adc_nids
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录