Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Fix to the Pro Audio Spectrum sound driver

0 views
Skip to first unread message

Arthur Peters

unread,
Jun 7, 2000, 3:00:00 AM6/7/00
to linux-...@vger.rutgers.edu
Hello,
There has been been a problem with the pas2 driver that caused
the mixer not to function. I found the problem in the code and created
this patch. It fixes the mixer on the Pro Audio Spectrum 16
rev. D. Would anyone who uses this driver please test this change. The
patch is as follows:
<<BEGIN PATCH>>
--- /usr/src/kernel-source-2.2.12/drivers/sound/pas2_mixer.c Mon Nov 1 16:30:21 1999
+++ pas2_mixer.c Fri May 26 00:23:39 2000
@@ -71,7 +71,7 @@

if (pas_model == 4)
{
- outw(data | (data << 8), (ioaddr ^ translate_code) - 1);
+ outw(data | (data << 8), (ioaddr + translate_code) - 1);
outb((0x80), 0);
} else
pas_write(data, ioaddr);
<<END PATCH>>

If you'd rather download it, the patch can be found at
http://home.swbell.net/ri1300/programs.html. Thanks for your time.
-Arthur Peters

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

Tom Leete

unread,
Jun 9, 2000, 3:00:00 AM6/9/00
to Arthur Peters
Arthur Peters wrote:
>
> Hello,
> There has been been a problem with the pas2 driver that caused
> the mixer not to function. I found the problem in the code and created
> this patch. It fixes the mixer on the Pro Audio Spectrum 16
> rev. D. Would anyone who uses this driver please test this change. The
> patch is as follows:
> <<BEGIN PATCH>>
> --- /usr/src/kernel-source-2.2.12/drivers/sound/pas2_mixer.c Mon Nov 1 16:30:21 1999
> +++ pas2_mixer.c Fri May 26 00:23:39 2000
> @@ -71,7 +71,7 @@
>
> if (pas_model == 4)
> {
> - outw(data | (data << 8), (ioaddr ^ translate_code) - 1);
> + outw(data | (data << 8), (ioaddr + translate_code) - 1);
> outb((0x80), 0);
> } else
> pas_write(data, ioaddr);

I edited it in. It works great, thanks.

Tom

0 new messages