Subject: Latest auich for i82801EB gives calibration timed out
To: NetBSD Users <netbsd-users@NetBSD.org>
From: Jorgen Lundman <lundman@lundman.net>
List: netbsd-users
Date: 07/12/2005 16:08:32
NetBSD netbsd 2.0 NetBSD 2.0 (netbsd) #4: Tue Jul 12 15:53:22 JST 2005 
root@netbsd:/usr/src/sys/arch/i386/compile/netbsd i386

Just upgraded the desktop at work as the lease expired on the older. The new 
machine is an IBM ThinkCentre 8320. Which appears to come with a:

auich0 at pci0 dev 31 function 5: i82801EB (ICH5) AC-97 Audio
auich0: interrupting at irq 9
auich0: ac97: Analog Devices AD1981B codec; headphone, 20 bit DAC, no 3D stereo
auich0: ac97: ext id 601<AC97_22,AMAP,VRA>

However, during the calibration phase I receive:

auich0: ac97 link rate calibration timed out after 1996618 us

.. and no audio operations will work on this device.

mixerctl -w outputs.master=63,63
mixerctl: AUDIO_MIXER_WRITE: Inappropriate ioctl for device
sys_ioctl: _IOWR('M', 1, 20) returned -1: pid=857 comm=mixerctl


I attempted to grab auich.c from cvsweb with my kernel:
/*      $NetBSD: auich.c,v 1.58.2.1.2.1 2005/04/07 16:07:21 tron Exp $  */

.. compiled and rebooted, but it behaives just the same. I also grabbed the 
latest daily kernel for 2.0.2. (The 3.0 directory is missing i386/ arch). Also, 
no difference. Done the usual i386 dance with turning PnP off/on, making sure no 
other devices are on the same irq. But no difference.

For fun, I thought I would take out the "return;" line at timeout, so it got 
configured anyway, which produces an amusing output, but it still does not work.

auich0: ac97 link rate calibration timed out after 1996618 us
auich0: measured ac97 link rate at 8013 Hz, will use 48000 Hz


Does anyone have any suggestions as to how I can get my audio to work?

Sincerely,

Jorgen Lundman

-- 
Jorgen Lundman       | <lundman@lundman.net>
Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
Japan                | +81 (0)3 -3375-1767          (home)