Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
0552f297
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看板
提交
0552f297
编写于
10月 29, 2008
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
差异文件
Merge branches 'topic/fix/hda' and 'topic/fix/misc' into for-linus
上级
0a9b8638
0cbf0098
366840d7
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
39 addition
and
4 deletion
+39
-4
sound/core/control.c
sound/core/control.c
+6
-1
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.c
+1
-0
sound/pci/hda/hda_intel.c
sound/pci/hda/hda_intel.c
+29
-0
sound/pci/hda/patch_analog.c
sound/pci/hda/patch_analog.c
+1
-0
sound/pci/hda/patch_sigmatel.c
sound/pci/hda/patch_sigmatel.c
+1
-3
sound/pci/intel8x0.c
sound/pci/intel8x0.c
+1
-0
未找到文件。
sound/core/control.c
浏览文件 @
0552f297
...
...
@@ -225,8 +225,13 @@ struct snd_kcontrol *snd_ctl_new1(const struct snd_kcontrol_new *ncontrol,
kctl
.
id
.
iface
=
ncontrol
->
iface
;
kctl
.
id
.
device
=
ncontrol
->
device
;
kctl
.
id
.
subdevice
=
ncontrol
->
subdevice
;
if
(
ncontrol
->
name
)
if
(
ncontrol
->
name
)
{
strlcpy
(
kctl
.
id
.
name
,
ncontrol
->
name
,
sizeof
(
kctl
.
id
.
name
));
if
(
strcmp
(
ncontrol
->
name
,
kctl
.
id
.
name
)
!=
0
)
snd_printk
(
KERN_WARNING
"Control name '%s' truncated to '%s'
\n
"
,
ncontrol
->
name
,
kctl
.
id
.
name
);
}
kctl
.
id
.
index
=
ncontrol
->
index
;
kctl
.
count
=
ncontrol
->
count
?
ncontrol
->
count
:
1
;
access
=
ncontrol
->
access
==
0
?
SNDRV_CTL_ELEM_ACCESS_READWRITE
:
...
...
sound/pci/hda/hda_codec.c
浏览文件 @
0552f297
...
...
@@ -64,6 +64,7 @@ static struct hda_vendor_id hda_vendor_ids[] = {
{
0x14f1
,
"Conexant"
},
{
0x17e8
,
"Chrontel"
},
{
0x1854
,
"LG"
},
{
0x1aec
,
"Wolfson Microelectronics"
},
{
0x434d
,
"C-Media"
},
{
0x8384
,
"SigmaTel"
},
{}
/* terminator */
...
...
sound/pci/hda/hda_intel.c
浏览文件 @
0552f297
...
...
@@ -45,6 +45,7 @@
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/mutex.h>
#include <linux/reboot.h>
#include <sound/core.h>
#include <sound/initval.h>
#include "hda_codec.h"
...
...
@@ -397,6 +398,9 @@ struct azx {
/* for pending irqs */
struct
work_struct
irq_pending_work
;
/* reboot notifier (for mysterious hangup problem at power-down) */
struct
notifier_block
reboot_notifier
;
};
/* driver types */
...
...
@@ -1978,6 +1982,28 @@ static int azx_resume(struct pci_dev *pci)
#endif
/* CONFIG_PM */
/*
* reboot notifier for hang-up problem at power-down
*/
static
int
azx_halt
(
struct
notifier_block
*
nb
,
unsigned
long
event
,
void
*
buf
)
{
struct
azx
*
chip
=
container_of
(
nb
,
struct
azx
,
reboot_notifier
);
azx_stop_chip
(
chip
);
return
NOTIFY_OK
;
}
static
void
azx_notifier_register
(
struct
azx
*
chip
)
{
chip
->
reboot_notifier
.
notifier_call
=
azx_halt
;
register_reboot_notifier
(
&
chip
->
reboot_notifier
);
}
static
void
azx_notifier_unregister
(
struct
azx
*
chip
)
{
if
(
chip
->
reboot_notifier
.
notifier_call
)
unregister_reboot_notifier
(
&
chip
->
reboot_notifier
);
}
/*
* destructor
*/
...
...
@@ -1985,6 +2011,8 @@ static int azx_free(struct azx *chip)
{
int
i
;
azx_notifier_unregister
(
chip
);
if
(
chip
->
initialized
)
{
azx_clear_irq_pending
(
chip
);
for
(
i
=
0
;
i
<
chip
->
num_streams
;
i
++
)
...
...
@@ -2348,6 +2376,7 @@ static int __devinit azx_probe(struct pci_dev *pci,
pci_set_drvdata
(
pci
,
card
);
chip
->
running
=
1
;
power_down_all_codecs
(
chip
);
azx_notifier_register
(
chip
);
dev
++
;
return
err
;
...
...
sound/pci/hda/patch_analog.c
浏览文件 @
0552f297
...
...
@@ -3860,6 +3860,7 @@ static const char *ad1884a_models[AD1884A_MODELS] = {
static
struct
snd_pci_quirk
ad1884a_cfg_tbl
[]
=
{
SND_PCI_QUIRK
(
0x103c
,
0x3030
,
"HP"
,
AD1884A_MOBILE
),
SND_PCI_QUIRK
(
0x103c
,
0x3056
,
"HP"
,
AD1884A_MOBILE
),
SND_PCI_QUIRK
(
0x17aa
,
0x20ac
,
"Thinkpad X300"
,
AD1884A_THINKPAD
),
{}
};
...
...
sound/pci/hda/patch_sigmatel.c
浏览文件 @
0552f297
...
...
@@ -566,10 +566,8 @@ static int stac92xx_smux_enum_put(struct snd_kcontrol *kcontrol,
nid
=
codec
->
slave_dig_outs
[
smux_idx
-
1
];
if
(
spec
->
cur_smux
[
smux_idx
]
==
smux
->
num_items
-
1
)
val
=
AMP_OUT_MUTE
;
if
(
smux_idx
==
0
)
nid
=
spec
->
multiout
.
dig_out_nid
;
else
nid
=
codec
->
slave_dig_outs
[
smux_idx
-
1
]
;
val
=
AMP_OUT_UNMUTE
;
/* un/mute SPDIF out */
snd_hda_codec_write_cache
(
codec
,
nid
,
0
,
AC_VERB_SET_AMP_GAIN_MUTE
,
val
);
...
...
sound/pci/intel8x0.c
浏览文件 @
0552f297
...
...
@@ -2702,6 +2702,7 @@ static struct snd_pci_quirk intel8x0_clock_list[] __devinitdata = {
SND_PCI_QUIRK
(
0x0e11
,
0x008a
,
"AD1885"
,
41000
),
SND_PCI_QUIRK
(
0x1028
,
0x00be
,
"AD1885"
,
44100
),
SND_PCI_QUIRK
(
0x1028
,
0x0177
,
"AD1980"
,
48000
),
SND_PCI_QUIRK
(
0x1028
,
0x01ad
,
"AD1981B"
,
48000
),
SND_PCI_QUIRK
(
0x1043
,
0x80f3
,
"AD1985"
,
48000
),
{
}
/* terminator */
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录