Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
45fae5c7
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
154
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,发现更多精彩内容 >>
提交
45fae5c7
编写于
9月 10, 2009
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'topic/ali5451-cleanup' into for-linus
* topic/ali5451-cleanup: ALSA: ali5451: remove dead code
上级
74fca6a4
848bffef
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
65 deletion
+0
-65
sound/pci/ali5451/ali5451.c
sound/pci/ali5451/ali5451.c
+0
-65
未找到文件。
sound/pci/ali5451/ali5451.c
浏览文件 @
45fae5c7
...
...
@@ -478,45 +478,6 @@ static int snd_ali_reset_5451(struct snd_ali *codec)
return
0
;
}
#ifdef CODEC_RESET
static
int
snd_ali_reset_codec
(
struct
snd_ali
*
codec
)
{
struct
pci_dev
*
pci_dev
;
unsigned
char
bVal
;
unsigned
int
dwVal
;
unsigned
short
wCount
,
wReg
;
pci_dev
=
codec
->
pci_m1533
;
pci_read_config_dword
(
pci_dev
,
0x7c
,
&
dwVal
);
pci_write_config_dword
(
pci_dev
,
0x7c
,
dwVal
|
0x08000000
);
udelay
(
5000
);
pci_read_config_dword
(
pci_dev
,
0x7c
,
&
dwVal
);
pci_write_config_dword
(
pci_dev
,
0x7c
,
dwVal
&
0xf7ffffff
);
udelay
(
5000
);
bVal
=
inb
(
ALI_REG
(
codec
,
ALI_SCTRL
));
bVal
|=
0x02
;
outb
(
ALI_REG
(
codec
,
ALI_SCTRL
),
bVal
);
udelay
(
5000
);
bVal
=
inb
(
ALI_REG
(
codec
,
ALI_SCTRL
));
bVal
&=
0xfd
;
outb
(
ALI_REG
(
codec
,
ALI_SCTRL
),
bVal
);
udelay
(
15000
);
wCount
=
200
;
while
(
wCount
--
)
{
wReg
=
snd_ali_codec_read
(
codec
->
ac97
,
AC97_POWERDOWN
);
if
((
wReg
&
0x000f
)
==
0x000f
)
return
0
;
udelay
(
5000
);
}
return
-
1
;
}
#endif
/*
* ALI 5451 Controller
*/
...
...
@@ -561,22 +522,6 @@ static void snd_ali_disable_address_interrupt(struct snd_ali *codec)
outl
(
gc
,
ALI_REG
(
codec
,
ALI_GC_CIR
));
}
#if 0 /* not used */
static void snd_ali_enable_voice_irq(struct snd_ali *codec,
unsigned int channel)
{
unsigned int mask;
struct snd_ali_channel_control *pchregs = &(codec->chregs);
snd_ali_printk("enable_voice_irq channel=%d\n",channel);
mask = 1 << (channel & 0x1f);
pchregs->data.ainten = inl(ALI_REG(codec, pchregs->regs.ainten));
pchregs->data.ainten |= mask;
outl(pchregs->data.ainten, ALI_REG(codec, pchregs->regs.ainten));
}
#endif
static
void
snd_ali_disable_voice_irq
(
struct
snd_ali
*
codec
,
unsigned
int
channel
)
{
...
...
@@ -677,16 +622,6 @@ static void snd_ali_free_channel_pcm(struct snd_ali *codec, int channel)
}
}
#if 0 /* not used */
static void snd_ali_start_voice(struct snd_ali *codec, unsigned int channel)
{
unsigned int mask = 1 << (channel & 0x1f);
snd_ali_printk("start_voice: channel=%d\n",channel);
outl(mask, ALI_REG(codec,codec->chregs.regs.start));
}
#endif
static
void
snd_ali_stop_voice
(
struct
snd_ali
*
codec
,
unsigned
int
channel
)
{
unsigned
int
mask
=
1
<<
(
channel
&
0x1f
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录