Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
a184d4e4
cloud-kernel
项目概览
openanolis
/
cloud-kernel
接近 2 年 前同步成功
通知
170
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看板
提交
a184d4e4
编写于
8月 28, 2012
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-linus' into for-next
Need to merge the fixes regarding EPSS. Conflicts: sound/pci/hda/hda_codec.c
上级
5d908ab9
c36b5b05
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
3 deletion
+10
-3
sound/isa/als100.c
sound/isa/als100.c
+1
-1
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.c
+4
-2
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_codec.h
+1
-0
sound/pci/hda/patch_sigmatel.c
sound/pci/hda/patch_sigmatel.c
+4
-0
未找到文件。
sound/isa/als100.c
浏览文件 @
a184d4e4
...
@@ -233,7 +233,7 @@ static int __devinit snd_card_als100_probe(int dev,
...
@@ -233,7 +233,7 @@ static int __devinit snd_card_als100_probe(int dev,
irq
[
dev
],
dma8
[
dev
],
dma16
[
dev
]);
irq
[
dev
],
dma8
[
dev
],
dma16
[
dev
]);
}
}
if
((
error
=
snd_sb16dsp_pcm
(
chip
,
0
,
NULL
))
<
0
)
{
if
((
error
=
snd_sb16dsp_pcm
(
chip
,
0
,
&
chip
->
pcm
))
<
0
)
{
snd_card_free
(
card
);
snd_card_free
(
card
);
return
error
;
return
error
;
}
}
...
...
sound/pci/hda/hda_codec.c
浏览文件 @
a184d4e4
...
@@ -1327,6 +1327,9 @@ int /*__devinit*/ snd_hda_codec_new(struct hda_bus *bus,
...
@@ -1327,6 +1327,9 @@ int /*__devinit*/ snd_hda_codec_new(struct hda_bus *bus,
if
(
!
codec
->
d3_stop_clk
)
if
(
!
codec
->
d3_stop_clk
)
bus
->
power_keep_link_on
=
1
;
bus
->
power_keep_link_on
=
1
;
#endif
#endif
codec
->
epss
=
snd_hda_codec_get_supported_ps
(
codec
,
codec
->
afg
?
codec
->
afg
:
codec
->
mfg
,
AC_PWRST_EPSS
);
/* power-up all before initialization */
/* power-up all before initialization */
hda_set_power_state
(
codec
,
hda_set_power_state
(
codec
,
...
@@ -3558,8 +3561,7 @@ static void hda_set_power_state(struct hda_codec *codec, hda_nid_t fg,
...
@@ -3558,8 +3561,7 @@ static void hda_set_power_state(struct hda_codec *codec, hda_nid_t fg,
/* this delay seems necessary to avoid click noise at power-down */
/* this delay seems necessary to avoid click noise at power-down */
if
(
power_state
==
AC_PWRST_D3
)
{
if
(
power_state
==
AC_PWRST_D3
)
{
/* transition time less than 10ms for power down */
/* transition time less than 10ms for power down */
bool
epss
=
snd_hda_codec_get_supported_ps
(
codec
,
fg
,
AC_PWRST_EPSS
);
msleep
(
codec
->
epss
?
10
:
100
);
msleep
(
epss
?
10
:
100
);
}
}
/* repeat power states setting at most 10 times*/
/* repeat power states setting at most 10 times*/
...
...
sound/pci/hda/hda_codec.h
浏览文件 @
a184d4e4
...
@@ -866,6 +866,7 @@ struct hda_codec {
...
@@ -866,6 +866,7 @@ struct hda_codec {
unsigned
int
ignore_misc_bit
:
1
;
/* ignore MISC_NO_PRESENCE bit */
unsigned
int
ignore_misc_bit
:
1
;
/* ignore MISC_NO_PRESENCE bit */
unsigned
int
no_jack_detect
:
1
;
/* Machine has no jack-detection */
unsigned
int
no_jack_detect
:
1
;
/* Machine has no jack-detection */
unsigned
int
pcm_format_first
:
1
;
/* PCM format must be set first */
unsigned
int
pcm_format_first
:
1
;
/* PCM format must be set first */
unsigned
int
epss
:
1
;
/* supporting EPSS? */
#ifdef CONFIG_SND_HDA_POWER_SAVE
#ifdef CONFIG_SND_HDA_POWER_SAVE
unsigned
int
power_on
:
1
;
/* current (global) power-state */
unsigned
int
power_on
:
1
;
/* current (global) power-state */
int
power_transition
;
/* power-state in transition */
int
power_transition
;
/* power-state in transition */
...
...
sound/pci/hda/patch_sigmatel.c
浏览文件 @
a184d4e4
...
@@ -4541,6 +4541,9 @@ static void stac92xx_line_out_detect(struct hda_codec *codec,
...
@@ -4541,6 +4541,9 @@ static void stac92xx_line_out_detect(struct hda_codec *codec,
struct
auto_pin_cfg
*
cfg
=
&
spec
->
autocfg
;
struct
auto_pin_cfg
*
cfg
=
&
spec
->
autocfg
;
int
i
;
int
i
;
if
(
cfg
->
speaker_outs
==
0
)
return
;
for
(
i
=
0
;
i
<
cfg
->
line_outs
;
i
++
)
{
for
(
i
=
0
;
i
<
cfg
->
line_outs
;
i
++
)
{
if
(
presence
)
if
(
presence
)
break
;
break
;
...
@@ -5529,6 +5532,7 @@ static int patch_stac92hd83xxx(struct hda_codec *codec)
...
@@ -5529,6 +5532,7 @@ static int patch_stac92hd83xxx(struct hda_codec *codec)
snd_hda_codec_set_pincfg
(
codec
,
0xf
,
0x2181205e
);
snd_hda_codec_set_pincfg
(
codec
,
0xf
,
0x2181205e
);
}
}
codec
->
epss
=
0
;
/* longer delay needed for D3 */
codec
->
no_trigger_sense
=
1
;
codec
->
no_trigger_sense
=
1
;
codec
->
spec
=
spec
;
codec
->
spec
=
spec
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录