aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/quirks.c
diff options
context:
space:
mode:
authorJohannes Goecke <goecke@upb.de>2007-09-10 04:46:52 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 18:03:16 -0400
commit346ca04d050ac48ceb8e4a6b1c76c2d7fd5d1a6a (patch)
treee25eb9141a7b859393417bf0dc157732bc89c57f /drivers/pci/quirks.c
parent651472fbff71df39d3d734de31bca6e5412a688b (diff)
PCI: re-enable onboard sound on "MSI K8T Neo2-FIR"
On the "MSI K8T Neo2-FIR" board the BIOS disables the onboard soundcard, if a second PCI soundcard is present. This patch sets the korrect register bit to enable the onboard sound. Removed old code in /drivers/pci/quirks.c that only checks for the PCI-ID and fires on any Board with VIA 8237. New code in /arch/i386/pci/fixup.c checks the DMI-tables and only runs on the specific board. Signed-off-by: Johannes Goecke <goecke@upb.de> Acked-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/quirks.c')
-rw-r--r--drivers/pci/quirks.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 3b0bb3268bbd..59d4da2734c1 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -925,38 +925,6 @@ static void __init quirk_eisa_bridge(struct pci_dev *dev)
925} 925}
926DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82375, quirk_eisa_bridge ); 926DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82375, quirk_eisa_bridge );
927 927
928/*
929 * On the MSI-K8T-Neo2Fir Board, the internal Soundcard is disabled
930 * when a PCI-Soundcard is added. The BIOS only gives Options
931 * "Disabled" and "AUTO". This Quirk Sets the corresponding
932 * Register-Value to enable the Soundcard.
933 *
934 * FIXME: Presently this quirk will run on anything that has an 8237
935 * which isn't correct, we need to check DMI tables or something in
936 * order to make sure it only runs on the MSI-K8T-Neo2Fir. Because it
937 * runs everywhere at present we suppress the printk output in most
938 * irrelevant cases.
939 */
940static void k8t_sound_hostbridge(struct pci_dev *dev)
941{
942 unsigned char val;
943
944 pci_read_config_byte(dev, 0x50, &val);
945 if (val == 0xc8) {
946 /* Assume it's probably a MSI-K8T-Neo2Fir */
947 printk(KERN_INFO "PCI: MSI-K8T-Neo2Fir, attempting to turn soundcard ON\n");
948 pci_write_config_byte(dev, 0x50, val & (~0x40));
949
950 /* Verify the Change for Status output */
951 pci_read_config_byte(dev, 0x50, &val);
952 if (val & 0x40)
953 printk(KERN_INFO "PCI: MSI-K8T-Neo2Fir, soundcard still off\n");
954 else
955 printk(KERN_INFO "PCI: MSI-K8T-Neo2Fir, soundcard on\n");
956 }
957}
958DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237, k8t_sound_hostbridge);
959DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237, k8t_sound_hostbridge);
960 928
961/* 929/*
962 * On ASUS P4B boards, the SMBus PCI Device within the ICH2/4 southbridge 930 * On ASUS P4B boards, the SMBus PCI Device within the ICH2/4 southbridge