aboutsummaryrefslogtreecommitdiff
path: root/hw/ac97.c
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-06-20 05:13:29 +0400
committermalc <av1474@comtv.ru>2009-06-20 05:13:29 +0400
commitd999f7e023c2c55f30667d368479037bd18d5a23 (patch)
tree459ed4161557c947671bdf368b46abe5bffbb450 /hw/ac97.c
parent03dfe9f871871921c03c3c65ff69c68759186994 (diff)
downloadqemu-d999f7e023c2c55f30667d368479037bd18d5a23.zip
qemu-d999f7e023c2c55f30667d368479037bd18d5a23.tar.gz
qemu-d999f7e023c2c55f30667d368479037bd18d5a23.tar.bz2
Restore consistent formatting of audio devices
Diffstat (limited to 'hw/ac97.c')
-rw-r--r--hw/ac97.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/ac97.c b/hw/ac97.c
index a70bb90..b911308 100644
--- a/hw/ac97.c
+++ b/hw/ac97.c
@@ -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