Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
14ab0861
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
14ab0861
编写于
2月 05, 2009
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ALSA: intel8x0 - Add missing KERN_* prefix to printk
Signed-off-by:
N
Takashi Iwai
<
tiwai@suse.de
>
上级
b833b5ec
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
8 deletion
+17
-8
sound/pci/intel8x0.c
sound/pci/intel8x0.c
+7
-4
sound/pci/intel8x0m.c
sound/pci/intel8x0m.c
+10
-4
未找到文件。
sound/pci/intel8x0.c
浏览文件 @
14ab0861
...
@@ -689,7 +689,7 @@ static void snd_intel8x0_setup_periods(struct intel8x0 *chip, struct ichdev *ich
...
@@ -689,7 +689,7 @@ static void snd_intel8x0_setup_periods(struct intel8x0 *chip, struct ichdev *ich
bdbar
[
idx
+
1
]
=
cpu_to_le32
(
0x80000000
|
/* interrupt on completion */
bdbar
[
idx
+
1
]
=
cpu_to_le32
(
0x80000000
|
/* interrupt on completion */
ichdev
->
fragsize
>>
ichdev
->
pos_shift
);
ichdev
->
fragsize
>>
ichdev
->
pos_shift
);
#if 0
#if 0
printk("bdbar[%i] = 0x%x [0x%x]\n",
printk(
KERN_DEBUG
"bdbar[%i] = 0x%x [0x%x]\n",
idx + 0, bdbar[idx + 0], bdbar[idx + 1]);
idx + 0, bdbar[idx + 0], bdbar[idx + 1]);
#endif
#endif
}
}
...
@@ -701,8 +701,10 @@ static void snd_intel8x0_setup_periods(struct intel8x0 *chip, struct ichdev *ich
...
@@ -701,8 +701,10 @@ static void snd_intel8x0_setup_periods(struct intel8x0 *chip, struct ichdev *ich
ichdev
->
lvi_frag
=
ICH_REG_LVI_MASK
%
ichdev
->
frags
;
ichdev
->
lvi_frag
=
ICH_REG_LVI_MASK
%
ichdev
->
frags
;
ichdev
->
position
=
0
;
ichdev
->
position
=
0
;
#if 0
#if 0
printk("lvi_frag = %i, frags = %i, period_size = 0x%x, period_size1 = 0x%x\n",
printk(KERN_DEBUG "lvi_frag = %i, frags = %i, period_size = 0x%x, "
ichdev->lvi_frag, ichdev->frags, ichdev->fragsize, ichdev->fragsize1);
"period_size1 = 0x%x\n",
ichdev->lvi_frag, ichdev->frags, ichdev->fragsize,
ichdev->fragsize1);
#endif
#endif
/* clear interrupts */
/* clear interrupts */
iputbyte
(
chip
,
port
+
ichdev
->
roff_sr
,
ICH_FIFOE
|
ICH_BCIS
|
ICH_LVBCI
);
iputbyte
(
chip
,
port
+
ichdev
->
roff_sr
,
ICH_FIFOE
|
ICH_BCIS
|
ICH_LVBCI
);
...
@@ -768,7 +770,8 @@ static inline void snd_intel8x0_update(struct intel8x0 *chip, struct ichdev *ich
...
@@ -768,7 +770,8 @@ static inline void snd_intel8x0_update(struct intel8x0 *chip, struct ichdev *ich
ichdev
->
lvi_frag
%=
ichdev
->
frags
;
ichdev
->
lvi_frag
%=
ichdev
->
frags
;
ichdev
->
bdbar
[
ichdev
->
lvi
*
2
]
=
cpu_to_le32
(
ichdev
->
physbuf
+
ichdev
->
lvi_frag
*
ichdev
->
fragsize1
);
ichdev
->
bdbar
[
ichdev
->
lvi
*
2
]
=
cpu_to_le32
(
ichdev
->
physbuf
+
ichdev
->
lvi_frag
*
ichdev
->
fragsize1
);
#if 0
#if 0
printk("new: bdbar[%i] = 0x%x [0x%x], prefetch = %i, all = 0x%x, 0x%x\n",
printk(KERN_DEBUG "new: bdbar[%i] = 0x%x [0x%x], prefetch = %i, "
"all = 0x%x, 0x%x\n",
ichdev->lvi * 2, ichdev->bdbar[ichdev->lvi * 2],
ichdev->lvi * 2, ichdev->bdbar[ichdev->lvi * 2],
ichdev->bdbar[ichdev->lvi * 2 + 1], inb(ICH_REG_OFF_PIV + port),
ichdev->bdbar[ichdev->lvi * 2 + 1], inb(ICH_REG_OFF_PIV + port),
inl(port + 4), inb(port + ICH_REG_OFF_CR));
inl(port + 4), inb(port + ICH_REG_OFF_CR));
...
...
sound/pci/intel8x0m.c
浏览文件 @
14ab0861
...
@@ -411,7 +411,10 @@ static void snd_intel8x0_setup_periods(struct intel8x0m *chip, struct ichdev *ic
...
@@ -411,7 +411,10 @@ static void snd_intel8x0_setup_periods(struct intel8x0m *chip, struct ichdev *ic
bdbar
[
idx
+
0
]
=
cpu_to_le32
(
ichdev
->
physbuf
+
(((
idx
>>
1
)
*
ichdev
->
fragsize
)
%
ichdev
->
size
));
bdbar
[
idx
+
0
]
=
cpu_to_le32
(
ichdev
->
physbuf
+
(((
idx
>>
1
)
*
ichdev
->
fragsize
)
%
ichdev
->
size
));
bdbar
[
idx
+
1
]
=
cpu_to_le32
(
0x80000000
|
/* interrupt on completion */
bdbar
[
idx
+
1
]
=
cpu_to_le32
(
0x80000000
|
/* interrupt on completion */
ichdev
->
fragsize
>>
chip
->
pcm_pos_shift
);
ichdev
->
fragsize
>>
chip
->
pcm_pos_shift
);
// printk("bdbar[%i] = 0x%x [0x%x]\n", idx + 0, bdbar[idx + 0], bdbar[idx + 1]);
/*
printk(KERN_DEBUG "bdbar[%i] = 0x%x [0x%x]\n",
idx + 0, bdbar[idx + 0], bdbar[idx + 1]);
*/
}
}
ichdev
->
frags
=
ichdev
->
size
/
ichdev
->
fragsize
;
ichdev
->
frags
=
ichdev
->
size
/
ichdev
->
fragsize
;
}
}
...
@@ -421,8 +424,10 @@ static void snd_intel8x0_setup_periods(struct intel8x0m *chip, struct ichdev *ic
...
@@ -421,8 +424,10 @@ static void snd_intel8x0_setup_periods(struct intel8x0m *chip, struct ichdev *ic
ichdev
->
lvi_frag
=
ICH_REG_LVI_MASK
%
ichdev
->
frags
;
ichdev
->
lvi_frag
=
ICH_REG_LVI_MASK
%
ichdev
->
frags
;
ichdev
->
position
=
0
;
ichdev
->
position
=
0
;
#if 0
#if 0
printk("lvi_frag = %i, frags = %i, period_size = 0x%x, period_size1 = 0x%x\n",
printk(KERN_DEBUG "lvi_frag = %i, frags = %i, period_size = 0x%x, "
ichdev->lvi_frag, ichdev->frags, ichdev->fragsize, ichdev->fragsize1);
"period_size1 = 0x%x\n",
ichdev->lvi_frag, ichdev->frags, ichdev->fragsize,
ichdev->fragsize1);
#endif
#endif
/* clear interrupts */
/* clear interrupts */
iputbyte
(
chip
,
port
+
ichdev
->
roff_sr
,
ICH_FIFOE
|
ICH_BCIS
|
ICH_LVBCI
);
iputbyte
(
chip
,
port
+
ichdev
->
roff_sr
,
ICH_FIFOE
|
ICH_BCIS
|
ICH_LVBCI
);
...
@@ -465,7 +470,8 @@ static inline void snd_intel8x0_update(struct intel8x0m *chip, struct ichdev *ic
...
@@ -465,7 +470,8 @@ static inline void snd_intel8x0_update(struct intel8x0m *chip, struct ichdev *ic
ichdev
->
lvi_frag
*
ichdev
->
lvi_frag
*
ichdev
->
fragsize1
);
ichdev
->
fragsize1
);
#if 0
#if 0
printk("new: bdbar[%i] = 0x%x [0x%x], prefetch = %i, all = 0x%x, 0x%x\n",
printk(KERN_DEBUG "new: bdbar[%i] = 0x%x [0x%x], "
"prefetch = %i, all = 0x%x, 0x%x\n",
ichdev->lvi * 2, ichdev->bdbar[ichdev->lvi * 2],
ichdev->lvi * 2, ichdev->bdbar[ichdev->lvi * 2],
ichdev->bdbar[ichdev->lvi * 2 + 1], inb(ICH_REG_OFF_PIV + port),
ichdev->bdbar[ichdev->lvi * 2 + 1], inb(ICH_REG_OFF_PIV + port),
inl(port + 4), inb(port + ICH_REG_OFF_CR));
inl(port + 4), inb(port + ICH_REG_OFF_CR));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录