Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
d999f7e0
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d999f7e0
编写于
6月 20, 2009
作者:
M
malc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Restore consistent formatting of audio devices
上级
03dfe9f8
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
31 addition
and
31 deletion
+31
-31
hw/ac97.c
hw/ac97.c
+5
-5
hw/adlib.c
hw/adlib.c
+2
-2
hw/cs4231a.c
hw/cs4231a.c
+15
-15
hw/es1370.c
hw/es1370.c
+5
-5
hw/sb16.c
hw/sb16.c
+4
-4
未找到文件。
hw/ac97.c
浏览文件 @
d999f7e0
...
...
@@ -278,12 +278,12 @@ static void update_sr (AC97LinkState *s, AC97BusMasterRegs *r, uint32_t new_sr)
if
(
level
)
{
s
->
glob_sta
|=
masks
[
r
-
s
->
bm_regs
];
dolog
(
"set irq level=1
\n
"
);
qemu_set_irq
(
s
->
pci_dev
->
irq
[
0
],
1
);
qemu_set_irq
(
s
->
pci_dev
->
irq
[
0
],
1
);
}
else
{
s
->
glob_sta
&=
~
masks
[
r
-
s
->
bm_regs
];
dolog
(
"set irq level=0
\n
"
);
qemu_set_irq
(
s
->
pci_dev
->
irq
[
0
],
0
);
qemu_set_irq
(
s
->
pci_dev
->
irq
[
0
],
0
);
}
}
...
...
@@ -1331,8 +1331,8 @@ int ac97_init (PCIBus *bus)
s
=
&
d
->
ac97
;
s
->
pci_dev
=
&
d
->
dev
;
c
=
d
->
dev
.
config
;
pci_config_set_vendor_id
(
c
,
PCI_VENDOR_ID_INTEL
);
/* ro */
pci_config_set_device_id
(
c
,
PCI_DEVICE_ID_INTEL_82801AA_5
);
/* ro */
pci_config_set_vendor_id
(
c
,
PCI_VENDOR_ID_INTEL
);
/* ro */
pci_config_set_device_id
(
c
,
PCI_DEVICE_ID_INTEL_82801AA_5
);
/* ro */
c
[
0x04
]
=
0x00
;
/* pcicmd pci command rw, ro */
c
[
0x05
]
=
0x00
;
...
...
@@ -1342,7 +1342,7 @@ int ac97_init (PCIBus *bus)
c
[
0x08
]
=
0x01
;
/* rid revision ro */
c
[
0x09
]
=
0x00
;
/* pi programming interface ro */
pci_config_set_class
(
c
,
PCI_CLASS_MULTIMEDIA_AUDIO
);
/* ro */
pci_config_set_class
(
c
,
PCI_CLASS_MULTIMEDIA_AUDIO
);
/* ro */
c
[
PCI_HEADER_TYPE
]
=
PCI_HEADER_TYPE_NORMAL
;
/* headtyp header type ro */
c
[
0x10
]
=
0x01
;
/* nabmar native audio mixer base
...
...
hw/adlib.c
浏览文件 @
d999f7e0
...
...
@@ -115,7 +115,7 @@ static void adlib_kill_timers (AdlibState *s)
}
}
static
IO_WRITE_PROTO
(
adlib_write
)
static
IO_WRITE_PROTO
(
adlib_write
)
{
AdlibState
*
s
=
opaque
;
int
a
=
nport
&
3
;
...
...
@@ -133,7 +133,7 @@ static IO_WRITE_PROTO(adlib_write)
#endif
}
static
IO_READ_PROTO
(
adlib_read
)
static
IO_READ_PROTO
(
adlib_read
)
{
AdlibState
*
s
=
opaque
;
uint8_t
data
;
...
...
hw/cs4231a.c
浏览文件 @
d999f7e0
...
...
@@ -216,7 +216,7 @@ static int16_t ALawDecompressTable[256] =
944
,
912
,
1008
,
976
,
816
,
784
,
880
,
848
};
static
void
cs_reset
(
void
*
opaque
)
static
void
cs_reset
(
void
*
opaque
)
{
CSState
*
s
=
opaque
;
...
...
@@ -597,23 +597,23 @@ static int cs_dma_read (void *opaque, int nchan, int dma_pos, int dma_len)
return
dma_pos
;
}
static
void
cs_save
(
QEMUFile
*
f
,
void
*
opaque
)
static
void
cs_save
(
QEMUFile
*
f
,
void
*
opaque
)
{
CSState
*
s
=
opaque
;
unsigned
int
i
;
uint32_t
val
;
for
(
i
=
0
;
i
<
CS_REGS
;
i
++
)
qemu_put_be32s
(
f
,
&
s
->
regs
[
i
]);
qemu_put_be32s
(
f
,
&
s
->
regs
[
i
]);
qemu_put_buffer
(
f
,
s
->
dregs
,
CS_DREGS
);
val
=
s
->
dma_running
;
qemu_put_be32s
(
f
,
&
val
);
val
=
s
->
audio_free
;
qemu_put_be32s
(
f
,
&
val
);
val
=
s
->
transferred
;
qemu_put_be32s
(
f
,
&
val
);
val
=
s
->
aci_counter
;
qemu_put_be32s
(
f
,
&
val
);
qemu_put_buffer
(
f
,
s
->
dregs
,
CS_DREGS
);
val
=
s
->
dma_running
;
qemu_put_be32s
(
f
,
&
val
);
val
=
s
->
audio_free
;
qemu_put_be32s
(
f
,
&
val
);
val
=
s
->
transferred
;
qemu_put_be32s
(
f
,
&
val
);
val
=
s
->
aci_counter
;
qemu_put_be32s
(
f
,
&
val
);
}
static
int
cs_load
(
QEMUFile
*
f
,
void
*
opaque
,
int
version_id
)
static
int
cs_load
(
QEMUFile
*
f
,
void
*
opaque
,
int
version_id
)
{
CSState
*
s
=
opaque
;
unsigned
int
i
;
...
...
@@ -623,14 +623,14 @@ static int cs_load(QEMUFile *f, void *opaque, int version_id)
return
-
EINVAL
;
for
(
i
=
0
;
i
<
CS_REGS
;
i
++
)
qemu_get_be32s
(
f
,
&
s
->
regs
[
i
]);
qemu_get_be32s
(
f
,
&
s
->
regs
[
i
]);
qemu_get_buffer
(
f
,
s
->
dregs
,
CS_DREGS
);
qemu_get_buffer
(
f
,
s
->
dregs
,
CS_DREGS
);
qemu_get_be32s
(
f
,
&
dma_running
);
qemu_get_be32s
(
f
,
&
val
);
s
->
audio_free
=
val
;
qemu_get_be32s
(
f
,
&
val
);
s
->
transferred
=
val
;
qemu_get_be32s
(
f
,
&
val
);
s
->
aci_counter
=
val
;
qemu_get_be32s
(
f
,
&
dma_running
);
qemu_get_be32s
(
f
,
&
val
);
s
->
audio_free
=
val
;
qemu_get_be32s
(
f
,
&
val
);
s
->
transferred
=
val
;
qemu_get_be32s
(
f
,
&
val
);
s
->
aci_counter
=
val
;
if
(
dma_running
&&
(
s
->
dregs
[
Interface_Configuration
]
&
PEN
))
cs_reset_voices
(
s
,
s
->
dregs
[
FS_And_Playback_Data_Format
]);
return
0
;
...
...
hw/es1370.c
浏览文件 @
d999f7e0
...
...
@@ -327,7 +327,7 @@ static void es1370_update_status (ES1370State *s, uint32_t new_status)
else
{
s
->
status
=
new_status
&
~
STAT_INTR
;
}
qemu_set_irq
(
s
->
pci_dev
->
irq
[
0
],
!!
level
);
qemu_set_irq
(
s
->
pci_dev
->
irq
[
0
],
!!
level
);
}
static
void
es1370_reset
(
ES1370State
*
s
)
...
...
@@ -353,7 +353,7 @@ static void es1370_reset (ES1370State *s)
s
->
dac_voice
[
i
]
=
NULL
;
}
}
qemu_irq_lower
(
s
->
pci_dev
->
irq
[
0
]);
qemu_irq_lower
(
s
->
pci_dev
->
irq
[
0
]);
}
static
void
es1370_maybe_lower_irq
(
ES1370State
*
s
,
uint32_t
sctl
)
...
...
@@ -1026,10 +1026,10 @@ int es1370_init (PCIBus *bus)
}
c
=
d
->
dev
.
config
;
pci_config_set_vendor_id
(
c
,
PCI_VENDOR_ID_ENSONIQ
);
pci_config_set_device_id
(
c
,
PCI_DEVICE_ID_ENSONIQ_ES1370
);
pci_config_set_vendor_id
(
c
,
PCI_VENDOR_ID_ENSONIQ
);
pci_config_set_device_id
(
c
,
PCI_DEVICE_ID_ENSONIQ_ES1370
);
c
[
0x07
]
=
2
<<
1
;
pci_config_set_class
(
c
,
PCI_CLASS_MULTIMEDIA_AUDIO
);
pci_config_set_class
(
c
,
PCI_CLASS_MULTIMEDIA_AUDIO
);
#if 1
c
[
0x2c
]
=
0x42
;
...
...
hw/sb16.c
浏览文件 @
d999f7e0
...
...
@@ -1066,14 +1066,14 @@ static void reset_mixer (SB16State *s)
}
}
static
IO_WRITE_PROTO
(
mixer_write_indexb
)
static
IO_WRITE_PROTO
(
mixer_write_indexb
)
{
SB16State
*
s
=
opaque
;
(
void
)
nport
;
s
->
mixer_nreg
=
val
;
}
static
IO_WRITE_PROTO
(
mixer_write_datab
)
static
IO_WRITE_PROTO
(
mixer_write_datab
)
{
SB16State
*
s
=
opaque
;
...
...
@@ -1129,13 +1129,13 @@ static IO_WRITE_PROTO(mixer_write_datab)
s
->
mixer_regs
[
s
->
mixer_nreg
]
=
val
;
}
static
IO_WRITE_PROTO
(
mixer_write_indexw
)
static
IO_WRITE_PROTO
(
mixer_write_indexw
)
{
mixer_write_indexb
(
opaque
,
nport
,
val
&
0xff
);
mixer_write_datab
(
opaque
,
nport
,
(
val
>>
8
)
&
0xff
);
}
static
IO_READ_PROTO
(
mixer_read
)
static
IO_READ_PROTO
(
mixer_read
)
{
SB16State
*
s
=
opaque
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录