Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
227c4edb
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
227c4edb
编写于
4月 23, 2010
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'fix/misc' into for-linus
上级
1f10cd34
715aa675
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
0 deletion
+9
-0
sound/pci/maestro3.c
sound/pci/maestro3.c
+9
-0
未找到文件。
sound/pci/maestro3.c
浏览文件 @
227c4edb
...
@@ -849,6 +849,7 @@ struct snd_m3 {
...
@@ -849,6 +849,7 @@ struct snd_m3 {
struct
snd_kcontrol
*
master_switch
;
struct
snd_kcontrol
*
master_switch
;
struct
snd_kcontrol
*
master_volume
;
struct
snd_kcontrol
*
master_volume
;
struct
tasklet_struct
hwvol_tq
;
struct
tasklet_struct
hwvol_tq
;
unsigned
int
in_suspend
;
#ifdef CONFIG_PM
#ifdef CONFIG_PM
u16
*
suspend_mem
;
u16
*
suspend_mem
;
...
@@ -884,6 +885,7 @@ static DEFINE_PCI_DEVICE_TABLE(snd_m3_ids) = {
...
@@ -884,6 +885,7 @@ static DEFINE_PCI_DEVICE_TABLE(snd_m3_ids) = {
MODULE_DEVICE_TABLE
(
pci
,
snd_m3_ids
);
MODULE_DEVICE_TABLE
(
pci
,
snd_m3_ids
);
static
struct
snd_pci_quirk
m3_amp_quirk_list
[]
__devinitdata
=
{
static
struct
snd_pci_quirk
m3_amp_quirk_list
[]
__devinitdata
=
{
SND_PCI_QUIRK
(
0x0E11
,
0x0094
,
"Compaq Evo N600c"
,
0x0c
),
SND_PCI_QUIRK
(
0x10f7
,
0x833e
,
"Panasonic CF-28"
,
0x0d
),
SND_PCI_QUIRK
(
0x10f7
,
0x833e
,
"Panasonic CF-28"
,
0x0d
),
SND_PCI_QUIRK
(
0x10f7
,
0x833d
,
"Panasonic CF-72"
,
0x0d
),
SND_PCI_QUIRK
(
0x10f7
,
0x833d
,
"Panasonic CF-72"
,
0x0d
),
SND_PCI_QUIRK
(
0x1033
,
0x80f1
,
"NEC LM800J/7"
,
0x03
),
SND_PCI_QUIRK
(
0x1033
,
0x80f1
,
"NEC LM800J/7"
,
0x03
),
...
@@ -1613,6 +1615,11 @@ static void snd_m3_update_hw_volume(unsigned long private_data)
...
@@ -1613,6 +1615,11 @@ static void snd_m3_update_hw_volume(unsigned long private_data)
outb
(
0x88
,
chip
->
iobase
+
SHADOW_MIX_REG_MASTER
);
outb
(
0x88
,
chip
->
iobase
+
SHADOW_MIX_REG_MASTER
);
outb
(
0x88
,
chip
->
iobase
+
HW_VOL_COUNTER_MASTER
);
outb
(
0x88
,
chip
->
iobase
+
HW_VOL_COUNTER_MASTER
);
/* Ignore spurious HV interrupts during suspend / resume, this avoids
mistaking them for a mute button press. */
if
(
chip
->
in_suspend
)
return
;
if
(
!
chip
->
master_switch
||
!
chip
->
master_volume
)
if
(
!
chip
->
master_switch
||
!
chip
->
master_volume
)
return
;
return
;
...
@@ -2424,6 +2431,7 @@ static int m3_suspend(struct pci_dev *pci, pm_message_t state)
...
@@ -2424,6 +2431,7 @@ static int m3_suspend(struct pci_dev *pci, pm_message_t state)
if
(
chip
->
suspend_mem
==
NULL
)
if
(
chip
->
suspend_mem
==
NULL
)
return
0
;
return
0
;
chip
->
in_suspend
=
1
;
snd_power_change_state
(
card
,
SNDRV_CTL_POWER_D3hot
);
snd_power_change_state
(
card
,
SNDRV_CTL_POWER_D3hot
);
snd_pcm_suspend_all
(
chip
->
pcm
);
snd_pcm_suspend_all
(
chip
->
pcm
);
snd_ac97_suspend
(
chip
->
ac97
);
snd_ac97_suspend
(
chip
->
ac97
);
...
@@ -2497,6 +2505,7 @@ static int m3_resume(struct pci_dev *pci)
...
@@ -2497,6 +2505,7 @@ static int m3_resume(struct pci_dev *pci)
snd_m3_hv_init
(
chip
);
snd_m3_hv_init
(
chip
);
snd_power_change_state
(
card
,
SNDRV_CTL_POWER_D0
);
snd_power_change_state
(
card
,
SNDRV_CTL_POWER_D0
);
chip
->
in_suspend
=
0
;
return
0
;
return
0
;
}
}
#endif
/* CONFIG_PM */
#endif
/* CONFIG_PM */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录