Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932162AbWCSSpD (ORCPT ); Sun, 19 Mar 2006 13:45:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932163AbWCSSpD (ORCPT ); Sun, 19 Mar 2006 13:45:03 -0500 Received: from main.gmane.org ([80.91.229.2]:26542 "EHLO ciao.gmane.org") by vger.kernel.org with ESMTP id S932162AbWCSSpA (ORCPT ); Sun, 19 Mar 2006 13:45:00 -0500 X-Injected-Via-Gmane: http://gmane.org/ To: linux-kernel@vger.kernel.org From: Andras Mantia Subject: Re: [PATCH 001/001] PCI: PCI quirk for Asus A8V and A8V Deluxe motherboards Date: Sun, 19 Mar 2006 20:44:38 +0200 Message-ID: References: <20060305192709.GA3789@skyscraper.unix9.prv> <20060317143303.GR20746@lug-owl.de> <20060317144920.GS20746@lug-owl.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 84.247.49.226 User-Agent: KNode/0.10.1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1560 Lines: 34 Måns Rullgård wrote: > It is the BIOS that disables the onboard sound if it detects a PCI > sound card.  Chances are other vendors use different BIOS > configurations that do not automatically disable things.  I don't know > if messing with those bits might do something bad on another board. > Yes, this might be a case, but you never know if ASUS engineers realize that they can enable the board even if there is a PCI card and will include in the next bios (as I wrote, they say it is impossible, but you never know). So checking for ASUS will be wrong starting from that BIOS version. When I first saw this bug on my system I searched a lot to see if I made a wrong decision by buying ASUS and not another brand and everywhere on the forums the same issue was described for other brands as well. >From the code I would say that pci_read_config_byte(dev, 0x50, &val); if (val & 0xc0) { is the test if it's enabled by the bios or not, as after trying to enable with pci_write_config_byte(dev, 0x50, val & (~0xc0)); it reads again the same byte and checks if the correct bits are enabled. I see no harm here, but as I said I am not a hardware guy, just a desktop programmer. ;-) Andras -- Quanta Plus developer - http://quanta.kdewebdev.org K Desktop Environment - http://www.kde.org - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/