Skip site navigation (1)Skip section navigation (2)
Date:      21 Sep 2000 15:12:35 -0000
From:      avatar@mmlab.cse.yzu.edu.tw
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   i386/21452: ESS audio mixer with speaker support
Message-ID:  <20000921151235.4982.qmail@www.mmlab.cse.yzu.edu.tw>

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

>Number:         21452
>Category:       i386
>Synopsis:       Add speaker volume adjusting support for ESS audio mixer
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 21 08:50:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Tai-hwa Liang
>Release:        FreeBSD 3.4-RELEASE i386
>Organization:
Multimedia Laboratory at Yuan Ze University
>Environment:

	FreeBSD 4.1-RELEASE, with newpcm:

		FreeBSD Audio Driver (newpcm) Sep  1 2000 08:21:59
		Installed devices:
		pcm0: <ESS 1869 DSP> at io 0x220 irq 5 drq 3:5 (1p/1r channels)


>Description:

	Add(missing in current newpcm?) speaker volume adjusting support
for ESS audio mixer.


>How-To-Repeat:

	Apply patch(against src/sys/dev/sound/isa/ess.c,v 1.3.2.1) in Fix
section.

>Fix:
	
	

--- sys/dev/sound/isa/ess.c.old	Thu Sep 21 23:02:20 2000
+++ sys/dev/sound/isa/ess.c	Thu Sep 21 22:31:49 2000
@@ -722,7 +722,7 @@
 
 	mix_setdevs(m, SOUND_MASK_SYNTH | SOUND_MASK_PCM | SOUND_MASK_LINE |
 		       SOUND_MASK_MIC | SOUND_MASK_CD | SOUND_MASK_VOLUME |
-		       SOUND_MASK_LINE1);
+		       SOUND_MASK_LINE1 | SOUND_MASK_SPEAKER);
 
 	ess_setmixer(sc, 0, 0); /* reset */
 
@@ -766,6 +766,10 @@
 	case SOUND_MIXER_CD:
 		preg = 0x38;
 		rreg = 0x6a;
+		break;
+
+	case SOUND_MIXER_SPEAKER:
+		preg = 0x3c;
 		break;
 
 	case SOUND_MIXER_VOLUME:


>Release-Note:
>Audit-Trail:
>Unformatted:
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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