From owner-freebsd-questions Wed Nov 11 08:04:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA00649 for freebsd-questions-outgoing; Wed, 11 Nov 1998 08:04:37 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from titanium.yy.ics.keio.ac.jp (titanium.yy.ics.keio.ac.jp [131.113.47.73]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA00631; Wed, 11 Nov 1998 08:04:27 -0800 (PST) (envelope-from sanpei@sanpei.org) Received: from lavender.yy.cs.keio.ac.jp (ppp120.dialup.st.keio.ac.jp [131.113.27.120]) by titanium.yy.ics.keio.ac.jp (8.8.8+3.0Wbeta13/3.7W) with ESMTP id BAA28446; Thu, 12 Nov 1998 01:03:56 +0900 (JST) Received: (from sanpei@localhost) by lavender.yy.cs.keio.ac.jp (8.8.8/3.6W) id BAA09545; Thu, 12 Nov 1998 01:03:53 +0900 (JST) Date: Thu, 12 Nov 1998 01:03:53 +0900 (JST) Message-Id: <199811111603.BAA09545@lavender.yy.cs.keio.ac.jp> To: dmm125@bellatlantic.net Cc: deischen@iworks.interworks.org, freebsd-questions@FreeBSD.ORG, hardware@FreeBSD.ORG Subject: Re: ESS 1868 In-Reply-To: Your message of "Thu, 22 Oct 1998 06:55:40 JST". <362E585B.8314E1F7@bellatlantic.net> From: sanpei@sanpei.org (MIHIRA Yoshiro) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG dmm125@bellatlantic.net wrote >> Daniel M. Eischen wrote: >> >> > > Anybody tried the pcm driver with the ESS 1868 sound card? The sound >> > > only comes out of the left channel. Both speakers are working, but with >> > > the Luigi sound code, sound only comes out of the left speaker. With >> > > the voxware driver, both speakers work. Maybe a problem with full/half >> > > duplex? >> > >> > The voxware driver works fine for the ESS1868 in my laptop, but with >> > the PCM driver, I get a horrendous feedback sound and it doesn't >> > work well at all. I haven't had a chance to pick through the >> > code and see what the differences are between PCM and Voxware >> > ESS1868 support. >> > >> > DE >> >> I just tried it, and I get lots of distortion with real-video files (they >> STILL don't have RealPlayer 5.0 for FreeBSD yet). But simple stuff plays >> well, like >> >> cat sound.au > /dev/audio ## comes out left channel only. I find out problem. It is quick hack patch for FreeBSD-2.2.7-RELEASE and ESS chipset(or other chips??). This function is from VoxWare code (sb_mixer.c). But it was changed.... I think that code is need to calcurate correctly. I will contact Luigi and solve this problem. ---- Yoshiro MIHIRA --- sound.c.org Thu Oct 22 09:59:31 1998 +++ sound.c Thu Nov 12 00:56:26 1998 @@ -1351,7 +1351,12 @@ mask = (1 << (*t)[dev][chn].nbits) - 1; newval = (int) ((newval * mask) + 50) / 100; /* Scale it */ +#define ESS_VOLUME_HACK +#ifdef ESS_VOLUME_HACK + shift = (*t)[dev][chn].bitoffs - (*t)[dev][LEFT_CHN].nbits + 1; +#else shift = (*t)[dev][chn].bitoffs /*- (*t)[dev][LEFT_CHN].nbits + 1*/; +#endif *regval &= ~(mask << shift); /* Filter out the previous value */ *regval |= (newval & mask) << shift; /* Set the new value */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message