Hello everyone,
I posted this some time ago and did not get any reply at all.
Please try and respond...
Itai
--
Itai Nahshon nahshon@actcom.co.il
Also nahshon@vnet.ibm.com
--------------0301DEFACAAFDBA5294CD18B
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Received: from nic.funet.fi by actcom.co.il with ESMTP
(8.8.6/actcom-0.2) id PAA19059 for <nahshon@actcom.co.il>;
Sat, 24 Jan 1998 15:57:33 +0200 (EET)
(rfc931-sender: nic.funet.fi [128.214.248.6])
Received: from vger.rutgers.edu ([128.6.190.2]:36400 "EHLO vger.rutgers.edu" ident: "root") by nic.funet.fi with ESMTP id <13913-619>; Sat, 24 Jan 1998 15:56:30 +0200
Received: by vger.rutgers.edu id <970948-257>; Sat, 24 Jan 1998 08:51:39 -0500
Received: from actcom.co.il ([192.114.47.1]:1669 "EHLO actcom.co.il" ident: "root") by vger.rutgers.edu with ESMTP id <971002-257>; Sat, 24 Jan 1998 08:51:31 -0500
Received: from actcom.co.il by actcom.co.il with ESMTP
(8.8.6/actcom-0.2) id PAA17802;
Sat, 24 Jan 1998 15:52:03 +0200 (EET)
(rfc931-sender: itai@p8.haifa2.actcom.co.il [192.114.47.68])
Message-ID: <34C9F286.B76A3CBD@actcom.co.il>
Date: Sat, 24 Jan 1998 15:54:14 +0200
From: Itai Nahshon <nahshon@actcom.co.il>
Organization: Itai at home...
X-Mailer: Mozilla 4.04 [en] (X11; I; Linux 2.1.80 i586)
MIME-Version: 1.0
To: linux kernel list <linux-kernel@vger.rutgers.edu>
Subject: PATCH - mixer for ad1848 based sound cards.
Content-Type: multipart/mixed; boundary="------------80310CF28E59E97049E00D68"
X-Orcpt: rfc822;linux-kernel@vger.rutgers.edu
Sender: owner-linux-kernel@vger.rutgers.edu
Precedence: bulk
This is a multi-part message in MIME format.
--------------80310CF28E59E97049E00D68
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
If you own a soundcard and the driver for your souncard
uses ad1848.c please test this patch.
A small change that will affect almost all cards i that the mute
bit is used also for the left channel. Without that if I set the volume
to 0 (on a stereo channel) I still get signals on the left channel
but none on the right channel.
All other changes are for the OPTI 82C930/931 chip where some bits
in the mixer setting shifted one position. That is almost un-noticed
because the mixer works but with less accuracy.
Documets for all OPTI chips can be downloaded from their FTP
site ftp://ftp.opti.com.
Itai
--
Itai Nahshon nahshon@actcom.co.il
Also nahshon@vnet.ibm.com
--------------80310CF28E59E97049E00D68
Content-Type: text/plain; charset=us-ascii; name="diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="diff"
diff -ruN linux-2.1-orig/drivers/sound/ad1848_mixer.h linux-2.1/drivers/sound/ad1848_mixer.h
--- linux-2.1-orig/drivers/sound/ad1848_mixer.h Tue Sep 30 18:46:44 1997
+++ linux-2.1/drivers/sound/ad1848_mixer.h Tue Dec 23 02:57:16 1997
@@ -77,7 +77,7 @@
*/
#define MIX_ENT(name, reg_l, pola_l, pos_l, len_l, reg_r, pola_r, pos_r, len_r, mute_bit) \
- {{reg_l, pola_l, pos_l, len_l}, {reg_r, pola_r, pos_r, len_r, mute_bit}}
+ {{reg_l, pola_l, pos_l, len_l, mute_bit}, {reg_r, pola_r, pos_r, len_r, mute_bit}}
static mixer_ents ad1848_mix_devices[32] = {
MIX_ENT(SOUND_MIXER_VOLUME, 27, 1, 0, 4, 29, 1, 0, 4, 8),
@@ -125,18 +125,18 @@
* MIC is level of mic monitoring direct to output. Same for CD, LINE, etc.
*/
static mixer_ents c930_mix_devices[32] = {
-MIX_ENT(SOUND_MIXER_VOLUME, 22, 1, 0, 5, 23, 1, 0, 5, 7),
+MIX_ENT(SOUND_MIXER_VOLUME, 22, 1, 1, 5, 23, 1, 1, 5, 7),
MIX_ENT(SOUND_MIXER_BASS, 0, 0, 0, 0, 0, 0, 0, 0, 8),
MIX_ENT(SOUND_MIXER_TREBLE, 0, 0, 0, 0, 0, 0, 0, 0, 8),
-MIX_ENT(SOUND_MIXER_SYNTH, 4, 1, 0, 5, 5, 1, 0, 5, 7),
-MIX_ENT(SOUND_MIXER_PCM, 6, 1, 0, 6, 7, 1, 0, 6, 7),
-MIX_ENT(SOUND_MIXER_SPEAKER, 22, 1, 0, 5, 23, 1, 0, 5, 8),
+MIX_ENT(SOUND_MIXER_SYNTH, 4, 1, 1, 4, 5, 1, 1, 4, 7),
+MIX_ENT(SOUND_MIXER_PCM, 6, 1, 0, 5, 7, 1, 0, 5, 7),
+MIX_ENT(SOUND_MIXER_SPEAKER, 22, 1, 1, 5, 23, 1, 1, 5, 7),
MIX_ENT(SOUND_MIXER_LINE, 18, 1, 1, 4, 19, 1, 1, 4, 7),
-MIX_ENT(SOUND_MIXER_MIC, 20, 1, 0, 4, 21, 1, 0, 4, 8),
+MIX_ENT(SOUND_MIXER_MIC, 20, 1, 1, 4, 21, 1, 1, 4, 7),
MIX_ENT(SOUND_MIXER_CD, 2, 1, 1, 4, 3, 1, 1, 4, 7),
-MIX_ENT(SOUND_MIXER_IMIX, 0, 0, 0, 0, 0, 0, 0, 0, 8),
+MIX_ENT(SOUND_MIXER_IMIX, 0, 0, 0, 0, 0, 0, 0, 0, 8),
MIX_ENT(SOUND_MIXER_ALTPCM, 0, 0, 0, 0, 0, 0, 0, 0, 8),
-MIX_ENT(SOUND_MIXER_RECLEV, 0, 0, 0, 0, 0, 0, 0, 0, 8),
+MIX_ENT(SOUND_MIXER_RECLEV, 0, 0, 0, 0, 0, 0, 0, 0, 8),
MIX_ENT(SOUND_MIXER_IGAIN, 0, 0, 0, 4, 1, 0, 0, 4, 8),
MIX_ENT(SOUND_MIXER_OGAIN, 0, 0, 0, 0, 0, 0, 0, 0, 8),
MIX_ENT(SOUND_MIXER_LINE1, 2, 1, 1, 4, 3, 1, 1, 4, 7),
--------------80310CF28E59E97049E00D68--
--------------0301DEFACAAFDBA5294CD18B--