From owner-freebsd-multimedia@FreeBSD.ORG Sun Jan 8 16:39:17 2006 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.org Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4CBF16A41F; Sun, 8 Jan 2006 16:39:17 +0000 (GMT) (envelope-from luxury-acura-3.5rl@nifty.com) Received: from vsoutg502.nifty.com (vsoutg502.nifty.com [202.248.238.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id 398E443D46; Sun, 8 Jan 2006 16:39:16 +0000 (GMT) (envelope-from luxury-acura-3.5rl@nifty.com) Received: from vsoutg502.nifty.com by vsoutg502.nifty.com with ESMTP id k08GcpDj003143; Mon, 9 Jan 2006 01:38:51 +0900 Authentication-Results: vsoutg502.nifty.com from=luxury-acura-3.5rl@nifty.com; sender-id=neutral; spf=neutral DomainKey-Signature: a=rsa-sha1; s=vsoutg502; d=nifty.com; c=simple; q=dns; b=mqcPQsckkCUBS2uwkXXC+ScAlWqXVk4P/MjIPzZTEoRTSBR8I5/eZQi7labohiley lYsvb1yA/UqCSmVfqjCaQ== Received: from [211.133.101.145] (airh128018075.mobile.ppp.infoweb.ne.jp [211.133.101.145]) (authenticated) by vsoutg502.nifty.com with ESMTP id k08GcmCw003119; Mon, 9 Jan 2006 01:38:49 +0900 Message-ID: <43C14014.1020703@nifty.com> Date: Mon, 09 Jan 2006 01:38:44 +0900 From: Daisuke Orikasa User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060102 X-Accept-Language: ja, en-us, en MIME-Version: 1.0 To: Alexander Leidinger References: <200601061528.k06FSp4h000648@freefall.freebsd.org> In-Reply-To: <200601061528.k06FSp4h000648@freefall.freebsd.org> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@FreeBSD.org Subject: Re: kern/84471: [sound] [patch] no sound ICH4 (Analog Devices AD1981B AC97 Codec) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jan 2006 16:39:17 -0000 Alexander Leidinger wrote: >Synopsis: [sound] [patch] no sound ICH4 (Analog Devices AD1981B AC97 Codec) > >State-Changed-From-To: open->feedback >State-Changed-By: netchild >State-Changed-When: Fri Jan 6 15:28:25 UTC 2006 >State-Changed-Why: >Is this still a problem with a recent 6-stable or -current? > >http://www.freebsd.org/cgi/query-pr.cgi?pr=84471 > > > Yes. It is not settled in recent 6-stable and -current. acura35rl% dmesg | grep pcm0 pcm0: port 0x1c00-0x1cff,0x18c0-0x18ff mem 0xe0100c00-0xe0100dff,0xe0100800-0xe01008ff irq 10 at device 31.5 on pci0 pcm0: acura35rl% uname -a FreeBSD acura35rl.localhost 6.0-STABLE FreeBSD 6.0-STABLE #1: Sun Jan 8 06:57:24 JST 2006 root@acura35rl.localhost:/usr/obj/usr/src/sys/GATEWAY4028JP i386 Now I revise it in this way. --- /usr/src/sys/dev/sound/pcm/ac97.c.orig Sun Jan 1 18:49:50 2006 +++ /usr/src/sys/dev/sound/pcm/ac97.c Sun Jan 1 18:51:56 2006 @@ -615,6 +615,8 @@ return ENODEV; } + ac97_setflags(codec, AC97_F_EAPD_INV); + ac97_wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)? 0x8000 : 0x0000); ac97_reset(codec); ac97_wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)? 0x8000 : 0x0000); @@ -802,6 +804,8 @@ snd_mtxunlock(codec->lock); return ENODEV; } + + ac97_setflags(codec, AC97_F_EAPD_INV); ac97_wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)? 0x8000 : 0x0000); ac97_reset(codec);