Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Sep 2005 05:34:43 +0800
From:      Ariff Abdullah <skywizard@MyBSD.org.my>
To:        Michael Nottebrock <lofi@freebsd.org>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: As promised: Soft volume mixer controller (doesn't work for me)
Message-ID:  <20050914053443.5c0de364.skywizard@MyBSD.org.my>
In-Reply-To: <200509132329.16105.lofi@freebsd.org>
References:  <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509132234.25656.lofi@freebsd.org> <20050914050422.39b2aa04.skywizard@MyBSD.org.my> <200509132329.16105.lofi@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help


On Tue, 13 Sep 2005 23:29:11 +0200
Michael Nottebrock <lofi@freebsd.org> wrote:
> On Tuesday, 13. September 2005 23:04, Ariff Abdullah wrote:
> 
> > (sorry, I need uname -a as well..)
> 
> FreeBSD kiste 5.4-STABLE FreeBSD 5.4-STABLE #0: Tue Sep 13 18:38:46
> CEST 2005      root@kiste:/usr/obj/usr/src/sys/KISTE-UP  i386
> 
> > How about applying this one:
> >
> > --- ac97.c.diff BEGIN ---
> >
> > [...]
> 
> In addition to the other patch I suppose?
> 
Yes (don't revert anything), and use the second one (the first one is
bogus, accidentally muting everything). Sorry.

Here (again)

--- ac97.c.diff BEGIN ---
--- sys/dev/sound/pcm/ac97.c.orig	Wed Sep 14 04:54:36 2005
+++ sys/dev/sound/pcm/ac97.c	Wed Sep 14 05:15:13 2005
@@ -558,15 +558,17 @@
 		case 0x434d4941:	/* CMI9738 */
 		case 0x434d4961:	/* CMI9739 */
 		case 0x434d4983:	/* CMI9761 */
+			ac97_wrcd(codec, AC97_MIX_PCM, 0);
 			bzero(&codec->mix[SOUND_MIXER_PCM],
 				sizeof(codec->mix[SOUND_MIXER_PCM]));
-			codec->flags |= AC97_F_SOFTVOL;
-			if (d)
-				d->flags |= SD_F_SOFTVOL;
 			break;
 		default:
+			return;
 			break;
 	}
+	codec->flags |= AC97_F_SOFTVOL;
+	if (d)
+		d->flags |= SD_F_SOFTVOL;
 }
 
 static const char*

--- ac97.c.diff END ---

--

Ariff Abdullah
MyBSD

http://www.MyBSD.org.my (IPv6/IPv4)
http://staff.MyBSD.org.my (IPv6/IPv4)
http://tomoyo.MyBSD.org.my (IPv6/IPv4)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050914053443.5c0de364.skywizard>