Date: Tue, 2 Aug 2005 07:13:04 GMT From: Daisuke Orikasa <luxury-acura-3.5rl@nifty.com> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/84471: [sound][patch] no sound ICH4 (Analog Devices AD1981B AC97 Codec) Message-ID: <200508020713.j727D4pF059119@www.freebsd.org> Resent-Message-ID: <200508020720.j727KG9a075038@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 84471 >Category: kern >Synopsis: [sound][patch] no sound ICH4 (Analog Devices AD1981B AC97 Codec) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 02 07:20:15 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Daisuke Orikasa >Release: FreeBSD 6.0-BETA1 >Organization: Koriyama Matsushita Electric Works,Ltd. >Environment: FreeBSD acura35rl.localhost 6.0-BETA1 FreeBSD 6.0-BETA1 #1: Mon Aug 1 19:48:18 JST 2005 root@acura35rl.localhost:/usr/obj/usr/src/sys/ACURA35RL i386 >Description: The Laptop uses Intel ICH4 (82801DB) Chipset. The sound card is recognized by the snd_ich module, and all of the sound-producing programs work, but no sound ever comes out. >How-To-Repeat: Boot a 82852GM/82855GM Laptop # kldload snd_ich % mpg123 anything.mp3 >Fix: --- /sys/dev/sound/pcm/ac97.c~ Sun Apr 10 23:45:27 2005 +++ /sys/dev/sound/pcm/ac97.c Mon Aug 1 19:39:45 2005 @@ -547,6 +547,8 @@ return ENODEV; } + ac97_setflags(codec, AC97_F_EAPD_INV); + ac97_wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)? 0x800 0 : 0x0000); ac97_reset(codec); ac97_wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)? 0x800 0 : 0x0000); @@ -661,6 +663,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)? 0x800 0 : 0x0000); ac97_reset(codec); >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508020713.j727D4pF059119>