From inoue@argv.org  Fri Jul 28 20:03:38 2000
Return-Path: <inoue@argv.org>
Received: from t-mta1.odn.ne.jp (mfep1.odn.ne.jp [143.90.131.179])
	by hub.freebsd.org (Postfix) with ESMTP id BBD2037B737
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 28 Jul 2000 20:03:37 -0700 (PDT)
	(envelope-from inoue@argv.org)
Received: from windy.argv.org ([210.197.172.223]) by t-mta1.odn.ne.jp
          (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP
          id <20000729030335452.RQYY.880.t-mta1.odn.ne.jp@mta1.odn.ne.jp>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Sat, 29 Jul 2000 12:03:35 +0900
Received: (from inoue@localhost)
	by windy.argv.org (8.9.3/3.7W) id MAA01068;
	Sat, 29 Jul 2000 12:03:35 +0900 (JST)
Message-Id: <200007290303.MAA01068@windy.argv.org>
Date: Sat, 29 Jul 2000 12:03:35 +0900 (JST)
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:         20278
>Category:       kern
>Synopsis:       YMF724 initialization fails on my environment.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    cg
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 28 20:10:00 PDT 2000
>Closed-Date:    Sun Apr 8 15:09:41 PDT 2001
>Last-Modified:  Sun Apr 08 15:12:35 PDT 2001
>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:
Responsible-Changed-From-To: gnats-admin->cg 
Responsible-Changed-By: jedgar 
Responsible-Changed-When: Sat Jul 29 09:55:09 PDT 2000 
Responsible-Changed-Why:  
Over to the pcm maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20278 
State-Changed-From-To: open->closed 
State-Changed-By: greid 
State-Changed-When: Sun Apr 8 15:09:41 PDT 2001 
State-Changed-Why:  
Delay increased in rev 1.9, MFC'd to -stable shortly after 

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