From: Chris Rankin <rankinc@zip.com.au>
To: linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org
Subject: ENSONIQ SoundScape PNP - small patch
Date: Sat, 6 Jan 2001 18:13:03 +0000 (GMT) [thread overview]
Message-ID: <200101061813.f06ID3L07517@wittsend.ukgateway.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 303 bytes --]
Hi,
I have made further tweaks to the sscape module:
- removed two redundant calls to release_region()
- set the default MIDI volume(s?) to 100. These volume settings aren't
accessible from any mixer I have. Therefore set them to "maximum" and
use the volume control on the speaker instead.
Chris
[-- Attachment #2: C program text --]
[-- Type: text/plain, Size: 1028 bytes --]
--- linux-vanilla/drivers/sound/sscape.c Sun Nov 12 02:33:14 2000
+++ linux-2.4.0/drivers/sound/sscape.c Sat Jan 6 17:58:03 2001
@@ -671,7 +673,7 @@
return;
}
- if (sscape_is_pnp == 0) {
+ if (!sscape_is_pnp) {
save_flags(flags);
cli();
@@ -1087,8 +1089,8 @@
sscape_pnp_write_codec( devc, 10, (sscape_pnp_read_codec(devc, 10) & 0x7f) |
( sscape_mic_enable == 0 ? 0x00 : 0x80) );
}
- sscape_write_host_ctrl2( devc, 0x84, 0x32 );
- sscape_write_host_ctrl2( devc, 0x86, 0x32 );
+ sscape_write_host_ctrl2( devc, 0x84, 0x64 ); /* MIDI volume */
+ sscape_write_host_ctrl2( devc, 0x86, 0x64 ); /* MIDI volume?? */
sscape_write_host_ctrl2( devc, 0x8A, sscape_ext_midi);
sscape_pnp_write_codec ( devc, 6, 0x3f ); //WAV_VOL
@@ -1239,10 +1241,7 @@
sscape_pnp_write_codec( devc, 0, sscape_pnp_read_codec( devc, 0) | 0x20);
sscape_pnp_write_codec( devc, 0, sscape_pnp_read_codec( devc, 1) | 0x20);
-
- release_region(devc->codec, 2);
- release_region(devc->base, 8);
-
+
return 1;
}
reply other threads:[~2001-01-06 18:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200101061813.f06ID3L07517@wittsend.ukgateway.net \
--to=rankinc@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).