From nobody@FreeBSD.org  Tue Nov 16 01:36:28 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7F36516A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Nov 2004 01:36:28 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6EEC943D1F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Nov 2004 01:36:28 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id iAG1aSdW019833
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Nov 2004 01:36:28 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id iAG1aSUT019832;
	Tue, 16 Nov 2004 01:36:28 GMT
	(envelope-from nobody)
Message-Id: <200411160136.iAG1aSUT019832@www.freebsd.org>
Date: Tue, 16 Nov 2004 01:36:28 GMT
From: Andriy <freebsd_my@ua.fm>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Nfirce2 MB sound problem
X-Send-Pr-Version: www-2.3

>Number:         73987
>Category:       kern
>Synopsis:       [sound] Nforce2 MB sound problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-multimedia
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 16 01:40:26 GMT 2004
>Closed-Date:    Fri Jun 08 12:13:15 GMT 2007
>Last-Modified:  Fri Jun 08 12:13:15 GMT 2007
>Originator:     Andriy
>Release:        5.3
>Organization:
Colir-Pro
>Environment:
FreeBSD home.color-pro.in 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Sun Nov 14 02:19:12 EET 2004     root@home.color-pro.in:/usr/src/sys/i386/compile/my  i386

>Description:
sound card didn`t work because a bug in ich code!
>How-To-Repeat:
gm, just try to cat /dev/sndstat
>Fix:
    static int
ich_resetchan(struct sc_info *sc, int num)
{
        int i, cr, regbase;

        if (num == 0)
                regbase = ICH_REG_PO_BASE;
        else if (num == 1)
                regbase = ICH_REG_PI_BASE;
        else if (num == 2)
                regbase = ICH_REG_MC_BASE;
        else
                return ENXIO;

        ich_wr(sc, regbase + ICH_REG_X_CR, 0, 1);
        DELAY(1000); //edited by me -was 100
        ich_wr(sc, regbase + ICH_REG_X_CR, ICH_X_CR_RR, 1);
        for (i = 0; i < ICH_TIMEOUT; i++) {
                cr = ich_rd(sc, regbase + ICH_REG_X_CR, 1);
                if (cr == 0)
                        return 0;
        }

        device_printf(sc->dev, "cannot reset channel %d\n", num);
return 0; ///added by me
//      return ENXIO;
}

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->sound 
Responsible-Changed-By: arved 
Responsible-Changed-When: Fri Dec 17 23:18:58 GMT 2004 
Responsible-Changed-Why:  
Over to sound developers 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73987 

From: Eric Anholt <eta@lclark.edu>
To: gnats <freebsd-gnats-submit@FreeBSD.ORG>
Cc:  
Subject: Re: i386/73987
Date: Fri, 24 Jun 2005 01:55:46 -0700

 --=-l9H5g53NWAtNJDeckJ6y
 Content-Type: text/plain
 Content-Transfer-Encoding: 7bit
 
 I'm guessing this is a PCI posting bug.  Could you try the patch at:
 http://people.freebsd.org/~anholt/ich.c-posting.diff
 and see if it helps you the same as your patch?
 
 (also attached)
 
 -- 
 Eric Anholt                                     eta@lclark.edu
 http://people.freebsd.org/~anholt/              anholt@FreeBSD.org
 
 --=-l9H5g53NWAtNJDeckJ6y
 Content-Disposition: attachment; filename=ich.c-posting.diff
 Content-Transfer-Encoding: base64
 Content-Type: text/x-patch; name=ich.c-posting.diff; charset=ISO-8859-1
 
 SW5kZXg6IGRldi9zb3VuZC9wY2kvaWNoLmMNCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBmaWxlOiAvaG9tZS9u
 Y3ZzL3NyYy9zeXMvZGV2L3NvdW5kL3BjaS9pY2guYyx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEu
 NTMNCmRpZmYgLXUgLXIxLjUzIGljaC5jDQotLS0gZGV2L3NvdW5kL3BjaS9pY2guYwkyOSBNYXkg
 MjAwNSAyMzoyMjoyMyAtMDAwMAkxLjUzDQorKysgZGV2L3NvdW5kL3BjaS9pY2guYwkyNCBKdW4g
 MjAwNSAwODo1MTozOCAtMDAwMA0KQEAgLTIyMiw3ICsyMjIsNyBAQA0KIAkJcmV0dXJuIEVOWElP
 Ow0KIA0KIAlpY2hfd3Ioc2MsIHJlZ2Jhc2UgKyBJQ0hfUkVHX1hfQ1IsIDAsIDEpOw0KLQlERUxB
 WSgxMDApOw0KKwkodm9pZClpY2hfcmQoc2MsIHJlZ2Jhc2UgKyBJQ0hfUkVHX1hfQ1IsIDEpOw0K
 IAlpY2hfd3Ioc2MsIHJlZ2Jhc2UgKyBJQ0hfUkVHX1hfQ1IsIElDSF9YX0NSX1JSLCAxKTsNCiAJ
 Zm9yIChpID0gMDsgaSA8IElDSF9USU1FT1VUOyBpKyspIHsNCiAJCWNyID0gaWNoX3JkKHNjLCBy
 ZWdiYXNlICsgSUNIX1JFR19YX0NSLCAxKTsNCg==
 
 
 --=-l9H5g53NWAtNJDeckJ6y--
State-Changed-From-To: open->feedback 
State-Changed-By: netchild 
State-Changed-When: Sun Sep 11 10:43:01 GMT 2005 
State-Changed-Why:  
Any results with this patch? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73987 

From: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To: bug-followup@FreeBSD.org, freebsd_my@ua.fm
Cc:  
Subject: Re: kern/73987: [sound] Nforce2 MB sound problem
Date: Wed, 30 May 2007 18:42:24 +0100

 The patch suggested in the PR as a possible fix has been committed to
 sys/dev/sound/pci/ich.c 1.54 and MFC'd in 1.53.2.1 (although the code is
 #if'd out).
 
 As the submitter has not responded to the request for feeedback on the
 patch, and no other PRs exist suggesting that others are seeing the
 problem, this PR should be closed.
State-Changed-From-To: feedback->closed 
State-Changed-By: gavin 
State-Changed-When: Fri Jun 8 12:12:51 UTC 2007 
State-Changed-Why:  
Feedback timeout (18 months) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73987 
>Unformatted:
