Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
bafdb727
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
bafdb727
编写于
3月 24, 2009
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'topic/quirk-cleanup' into for-linus
上级
5b56eec7
8bd4bb7a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
6 deletion
+20
-6
include/sound/core.h
include/sound/core.h
+14
-2
sound/core/misc.c
sound/core/misc.c
+6
-4
未找到文件。
include/sound/core.h
浏览文件 @
bafdb727
...
...
@@ -458,21 +458,33 @@ static inline int __snd_bug_on(int cond)
struct
snd_pci_quirk
{
unsigned
short
subvendor
;
/* PCI subvendor ID */
unsigned
short
subdevice
;
/* PCI subdevice ID */
unsigned
short
subdevice_mask
;
/* bitmask to match */
int
value
;
/* value */
#ifdef CONFIG_SND_DEBUG_VERBOSE
const
char
*
name
;
/* name of the device (optional) */
#endif
};
#define _SND_PCI_QUIRK_ID(vend,dev) \
.subvendor = (vend), .subdevice = (dev)
#define _SND_PCI_QUIRK_ID_MASK(vend, mask, dev) \
.subvendor = (vend), .subdevice = (dev), .subdevice_mask = (mask)
#define _SND_PCI_QUIRK_ID(vend, dev) \
_SND_PCI_QUIRK_ID_MASK(vend, 0xffff, dev)
#define SND_PCI_QUIRK_ID(vend,dev) {_SND_PCI_QUIRK_ID(vend, dev)}
#ifdef CONFIG_SND_DEBUG_VERBOSE
#define SND_PCI_QUIRK(vend,dev,xname,val) \
{_SND_PCI_QUIRK_ID(vend, dev), .value = (val), .name = (xname)}
#define SND_PCI_QUIRK_VENDOR(vend, xname, val) \
{_SND_PCI_QUIRK_ID_MASK(vend, 0, 0), .value = (val), .name = (xname)}
#define SND_PCI_QUIRK_MASK(vend, mask, dev, xname, val) \
{_SND_PCI_QUIRK_ID_MASK(vend, mask, dev), \
.value = (val), .name = (xname)}
#else
#define SND_PCI_QUIRK(vend,dev,xname,val) \
{_SND_PCI_QUIRK_ID(vend, dev), .value = (val)}
#define SND_PCI_QUIRK_MASK(vend, mask, dev, xname, val) \
{_SND_PCI_QUIRK_ID_MASK(vend, mask, dev), .value = (val)}
#define SND_PCI_QUIRK_VENDOR(vend, xname, val) \
{_SND_PCI_QUIRK_ID_MASK(vend, 0, 0), .value = (val)}
#endif
const
struct
snd_pci_quirk
*
...
...
sound/core/misc.c
浏览文件 @
bafdb727
...
...
@@ -95,12 +95,14 @@ snd_pci_quirk_lookup(struct pci_dev *pci, const struct snd_pci_quirk *list)
{
const
struct
snd_pci_quirk
*
q
;
for
(
q
=
list
;
q
->
subvendor
;
q
++
)
if
(
q
->
subvendor
==
pci
->
subsystem_vendor
&&
(
!
q
->
subdevice
||
q
->
subdevice
==
pci
->
subsystem_device
))
for
(
q
=
list
;
q
->
subvendor
;
q
++
)
{
if
(
q
->
subvendor
!=
pci
->
subsystem_vendor
)
continue
;
if
(
!
q
->
subdevice
||
(
pci
->
subsystem_device
&
q
->
subdevice_mask
)
==
q
->
subdevice
)
return
q
;
}
return
NULL
;
}
EXPORT_SYMBOL
(
snd_pci_quirk_lookup
);
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录