qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1.0] ac97: don't override the pci subsystem id
@ 2011-11-07 11:00 Gerd Hoffmann
  2011-11-07 14:17 ` Avi Kivity
  0 siblings, 1 reply; 11+ messages in thread
From: Gerd Hoffmann @ 2011-11-07 11:00 UTC (permalink / raw)
  To: qemu-devel; +Cc: Takashi Iwai, Gerd Hoffmann, kvm

This patch removes the code lines which set the subsystem id for the
emulated ac97 card to 8086:0000.  Due to the device id being zero the
subsystem id isn't vaild anyway.  With the patch applied the sound card
gets the default qemu subsystem id (1af4:1100) instead.

Cc: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/ac97.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/hw/ac97.c b/hw/ac97.c
index 6800af4..b43e435 100644
--- a/hw/ac97.c
+++ b/hw/ac97.c
@@ -1305,12 +1305,6 @@ static int ac97_initfn (PCIDevice *dev)
     c[PCI_BASE_ADDRESS_0 + 6] = 0x00;
     c[PCI_BASE_ADDRESS_0 + 7] = 0x00;
 
-    c[PCI_SUBSYSTEM_VENDOR_ID] = 0x86;      /* svid subsystem vendor id rwo */
-    c[PCI_SUBSYSTEM_VENDOR_ID + 1] = 0x80;
-
-    c[PCI_SUBSYSTEM_ID] = 0x00;      /* sid subsystem id rwo */
-    c[PCI_SUBSYSTEM_ID + 1] = 0x00;
-
     c[PCI_INTERRUPT_LINE] = 0x00;      /* intr_ln interrupt line rw */
     c[PCI_INTERRUPT_PIN] = 0x01;      /* intr_pn interrupt pin ro */
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-11-07 15:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-07 11:00 [Qemu-devel] [PATCH 1.0] ac97: don't override the pci subsystem id Gerd Hoffmann
2011-11-07 14:17 ` Avi Kivity
2011-11-07 14:33   ` Gerd Hoffmann
2011-11-07 14:39     ` Anthony Liguori
2011-11-07 14:42     ` Avi Kivity
2011-11-07 14:44       ` Anthony Liguori
2011-11-07 14:50         ` Avi Kivity
2011-11-07 14:53           ` Anthony Liguori
2011-11-07 15:00             ` Avi Kivity
2011-11-07 15:10               ` Gerd Hoffmann
2011-11-07 15:15                 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).