From inoue@ARGV.ORG  Sat Jul 29 05:36:12 2000
Return-Path: <inoue@ARGV.ORG>
Received: from mocha.argv.org (mocha.argv.org [211.6.180.210])
	by hub.freebsd.org (Postfix) with SMTP id D158C37B740
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 29 Jul 2000 05:36:11 -0700 (PDT)
	(envelope-from inoue@ARGV.ORG)
Received: (qmail 32946 invoked by uid 1003); 29 Jul 2000 21:36:11 +0900
Message-Id: <20000729123611.32945.qmail@mocha.argv.org>
Date: 29 Jul 2000 21:36:11 +0900
From: inoue@argv.org
Reply-To: inoue@argv.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: YAMAHA YMF724 init fails
X-Send-Pr-Version: 3.2

>Number:         20285
>Category:       kern
>Synopsis:       YMF724 initialization fails on my environment.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 29 05:40:05 PDT 2000
>Closed-Date:    Sat Jul 29 09:57:00 PDT 2000
>Last-Modified:  Sat Jul 29 09:57:36 PDT 2000
>Originator:     Koichi INOUE
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
Accessibility Research Group for the Visually-Impaired
>Environment:

CPU: Pentium III/450Mhz
Mem: 128Mb
MB: AOpen AX6BC-R
Sound: YAMAHA Waveforce192D, SB VIBRA16X

>Description:

In my system the YMF724 based board (YAMAHA Waveforce 192D) is installed. I tried to make the kernel with the option
device		pcm
but it fails to initialize as follows:

pcm0: <Yamaha DS-1E (YMF724F)> mem 0xed020000-0xed027fff irq 11 at device 9.0 on pci0
pcm0: ac97 codec init failed

>How-To-Repeat:

In the same hardware environment, make kernel with the above configuration and reboot. It may (or not) occur.

>Fix:

In /sys/dev/sound/pci/ds1.c there is the following code:

		if (sc->type == 8)
			DELAY(400000);

When I commented out the 'if' line and increased the delay to 500000, the chip is correctly initialized.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jedgar 
State-Changed-When: Sat Jul 29 09:57:00 PDT 2000 
State-Changed-Why:  
Duplicate of kern/20278 


Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: jedgar 
Responsible-Changed-When: Sat Jul 29 09:57:00 PDT 2000 
Responsible-Changed-Why:  
Misfiled PR 

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