From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:58157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNMwV-0003Ft-Ay for qemu-devel@nongnu.org; Mon, 07 Nov 2011 06:00:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNMwQ-00045L-Q5 for qemu-devel@nongnu.org; Mon, 07 Nov 2011 06:00:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:30840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNMwQ-000458-IV for qemu-devel@nongnu.org; Mon, 07 Nov 2011 06:00:38 -0500 From: Gerd Hoffmann Date: Mon, 7 Nov 2011 12:00:34 +0100 Message-Id: <1320663634-29453-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 1.0] ac97: don't override the pci subsystem id List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Takashi Iwai , Gerd Hoffmann , kvm@vger.kernel.org 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 Signed-off-by: Gerd Hoffmann --- 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