From alsa-devel-owner@alsa.jcu.cz  Sun Dec  6 19:48:45 1998
Received: from entry.jcu.cz (IDENT:perex@entry.jcu.cz [160.217.1.111])
	by marvin.jcu.cz (8.9.1a/8.9.1) with SMTP id TAA25271;
	Sun, 6 Dec 1998 19:48:27 +0100
Date: Sun, 6 Dec 1998 19:48:27 +0100 (CET)
From: Jaroslav Kysela <perex@jcu.cz>
To: John Karcz <jsk29@cornell.edu>
cc: alsa-devel@alsa.jcu.cz
Subject: Re: Joystick support on an Audiopci
In-Reply-To: <19981206113430.A31014@crossbow.localdomain>
Message-ID: <Pine.LNX.3.96.981206194642.30245A-100000@entry.jcu.cz>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

On Sun, 6 Dec 1998, John Karcz wrote:

> I thought that command I tried was a little crazy, but it looked similar
> to some stuff I saw in the docs, so I tried it. :)
> 
> I had tried using the 'alsactl store; vi /etc/asound.conf; alsactl restore'
> cycle with the release version, before I tried the wacky command.  I changed
> the Joystick switch line to 
> 
> switch( "Joystick", true )
> 
> before restore the configuration.   When I catted /proc/asound/0/audiopci,
> I still saw
> 
> Joystick enable  : off
> 
> as one of the lines in the output.
> 
> At your suggustion, I tried the cvs version, but there was still no effect
> on the Joystick line in /proc/asound/0/audiopci.

Oops... Small bug in driver code... Get CVS version of driver or apply
this patch:

Index: control.c
===================================================================
RCS file: /home/alsa/cvsroot/alsa-driver/kernel/control.c,v
retrieving revision 1.9
diff -u -r1.9 control.c
--- control.c   1998/11/10 13:11:40     1.9
+++ control.c   1998/12/06 18:46:26
@@ -156,7 +156,6 @@
                }
                root_str++;
        }
-       memset(&sw, 0, sizeof(sw));
        err = ksw->set_switch(card, ksw, &sw);
        snd_mutex_up(card, control);
        return err;


-----
Jaroslav Kysela <perex@jcu.cz>
Academic Computer Centre, University of South Bohemia
Branisovska 31, C. Budejovice, CZ-370 05 Czech Republic


