From alsa-user-owner@alsa.jcu.cz  Sat Dec  5 12:24:36 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 MAA24346;
	Sat, 5 Dec 1998 12:23:43 +0100
Date: Sat, 5 Dec 1998 12:23:43 +0100 (CET)
From: Jaroslav Kysela <perex@jcu.cz>
To: bwmott@eos.ncsu.edu
cc: alsa-user@alsa.jcu.cz
Subject: Re: AudioPCI and Game Port
In-Reply-To: <199812050432.XAA27024@zermelo.csc.ncsu.edu>
Message-ID: <Pine.LNX.3.96.981205122226.29731C-100000@entry.jcu.cz>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

On Fri, 4 Dec 1998 bwmott@eos.ncsu.edu wrote:

> > > I've got an AudioPCI card and I've been able to get the ALSA drivers
> > > working with it, however, I can't seem to get the game port to show up
> > > for the joystick driver.
> > > 
> > > Does anyone know how to get the game port working on this card?
> > 
> > 1. get latest ALSA driver (0.2.0pre10p2), alsa-lib and alsa-utils
> > 2. use alsactl for store configuration (if you don't have already one
> >    in /etc/asound.conf file) - command is 'alsactl store'
> > 3. look to /etc/asound.conf and rewrite line:
> > 
> > 	switch( "Joystick", false )
> > 
> >   to
> > 
> > 	switch( "Joystick", true )
> > 
> > 4. restore driver configuration - 'alsactl restore'
> 
> Hi!  
> 
> I've done what you described above, however, when I try to do 
> the 'alsactl restore' step I get the following error:
> 
>   alsactl: Error in configuration file '/etc/asound.conf' (line 10): Value 
>   for switch 'Joystick Address' out of range (0-0)...
> 
> Here's the information from asound.conf:
> 
> soundcard( "card1" ) {
>   control {
>     ; Type is 'bool'.
>     switch( "Joystick", true )
>     ; Type is 'word'.
>     ; Available addresses - 0x200, 0x208, 0x210, 0x218
>     switch( "Joystick Address", 512 )    ***** THIS IS LINE 10 ******

512 = 0x200, ok - now is Joystick Address printed in hex form...

>   }
> 
> Any idea what I'm doing wrong?

You have probably old version of alsa-utils. You may get CVS version..

							Jaroslav

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


