From owner-freebsd-multimedia Tue Mar 27 6:38: 6 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from polaris.we.lc.ehu.es (polaris.we.lc.ehu.es [158.227.6.43]) by hub.freebsd.org (Postfix) with ESMTP id 762D937B71A for ; Tue, 27 Mar 2001 06:38:02 -0800 (PST) (envelope-from jose@we.lc.ehu.es) Received: from v-ger.we.lc.ehu.es (v-ger [158.227.6.179]) by polaris.we.lc.ehu.es (8.11.1/8.11.1) with ESMTP id f2REbt901172 for ; Tue, 27 Mar 2001 16:37:55 +0200 (MET DST) Received: from we.lc.ehu.es (localhost [127.0.0.1]) by v-ger.we.lc.ehu.es (8.11.3/8.11.3) with ESMTP id f2REbtr01707 for ; Tue, 27 Mar 2001 16:37:56 +0200 (CEST) (envelope-from jose@we.lc.ehu.es) Message-ID: <3AC0A5C3.BD7E33FF@we.lc.ehu.es> Date: Tue, 27 Mar 2001 16:37:55 +0200 From: "Jose M. Alcaide" Organization: Universidad del Pais Vasco - Dpto. de Electricidad y Electronica X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: es-ES, es, en-US, en MIME-Version: 1.0 To: multimedia@FreeBSD.org Subject: yet another ES1371 chip rev. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello, After installing 4.3-RC1 on a new system based on the Gigabyte GA-7ZX motherboard, which includes an ES1371 audio chip, the pcm driver fails to detect the AC97 codec properly: pcm0: port 0xd000-0xd03f irq 10 at device 14.0 on pci0 es_init es_init pre ac97 2.1 wrcodec addr 0x26 data 0x0 wrcodec addr 0x0 data 0x0 rdcodec addr 0x0 ... loop 1 t 0x1000 x 0x40000000 loop 2 t 0x5000 x 0x70000 loop 3 t 0x1000 0x40000000 ret 0x0 rdcodec addr 0x7c ... loop 1 t 0x1000 x 0x40000000 loop 2 t 0x5000 x 0x70000 loop 3 t 0x1000 0x40000000 ret 0x0 rdcodec addr 0x7e ... loop 1 t 0x1000 x 0x40000000 loop 2 t 0x5000 x 0x70000 loop 3 t 0x1000 0x40000000 ret 0x0 pcm0: ac97 codec invalid or not present (id == 0) device_probe_and_attach: pcm0 attach returned 6 And this is the relevant line from "pciconf -l": none0@pci0:14:0: class=0x040100 card=0xa0001458 chip=0x58801274 rev=0x03 hdr=0x00 I modified es137x.c, changing the test revid == 7 || revid >= 9 || (devid == ES1371_PCI_ID3 && revid == 2) to (yes, I know it is ugly ;-) ): revid == 7 || revid >= 9 || (devid == ES1371_PCI_ID3 && (revid == 2 || revid == 3)) Now, the AC97 codec is correctly detected, and audio playing seems to work (I cannot test audio recording because I have no microphone). Perhaps this little patch could be applied and even MFC'ed before 4.3-RELEASE. Cheers, -- JMA ****** Jose M. Alcaide // jose@we.lc.ehu.es // jmas@FreeBSD.org ****** ** "Beware of Programmers who carry screwdrivers" -- Leonard Brandwein ** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message