From alsa-user-owner@alsa.jcu.cz  Wed Nov 11 20:18:53 1998
Received: from elektron.elka.pw.edu.pl (root@elektron.elka.pw.edu.pl [148.81.63.249])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id UAA11849
	for <alsa-user@jcu.cz>; Wed, 11 Nov 1998 20:17:24 +0100
Received: from elektron.elka.pw.edu.pl ([148.81.63.249]:41139 "HELO unknown" ident: "pingling") by elektron.elka.pw.edu.pl with SMTP id <86642-27291> convert rfc822-to-8bit; Wed, 11 Nov 1998 20:16:43 +0100
From: <pingling@elka.pw.edu.pl>
To: alsa-user@jcu.cz
Subject: alsactl problems
Date: 	Wed, 11 Nov 1998 19:18:15 GMT
Message-ID: <364ae214.1401361@elektron.elka.pw.edu.pl>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8BIT
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

Hello!

I have a strange problem with alsactl. I have two soundcards (GUS ACE and
SBPro) in my computer. Everything worked fine until I installed pre10.
Although I have two cards (and both ARE working properly) alsactl stores
settings of GUS only. When I try to specify the card number in the command
line I get the following responses:

 root# alsactl store 1

 alsactl: Error in configuration file '/etc/asound.conf' (line 4): Cannot
 find soundcard 'card1'...

 root# alsactl store 2

 Cannot find soundcard 'card2'...

/proc/asound/cards is as follows:

0 [card1          ]: GUS - Gravis UltraSound Ace
                     Gravis UltraSound Ace at 0x250, irq 11, dma 5&6
1 [card2          ]: SB - Sound Blaster Pro
                     Sound Blaster Pro at 0x220, irq 7, dma 1

More fun is with restoring settings:

 root# alsactl restore
 
 alsactl: Error in configuration file '/etc/asound.conf' (line 8): parse
 error

It complains about 'switch...' line (In my case this line is not neccesary
because ACE doesn't have a joystick interface).

asound.conf is as follows:

# ALSA driver configuration
# Generated by alsactl

soundcard( "card1" ) {
  control {
    ; Type is 'byte'.
    ; Accepted switch range is from 0i to 31i.
    switch( "Joystick Speed Compensation", 29i )
  }
  mixer( "GF1" ) {
    ; Capabilities: join-mute.
    ; Accepted channel range is from 0 to 1.
    channel( "Master", mono( 0 ) )
    ; Capabilities: stereo digital.
    ; Accepted channel range is from 0 to 127.
    channel( "PCM", stereo( 0, 0 ) )
  }
}

I'm using:

kernel 2.1.127
alsa-driver-pre10p1
alsa-lib-0.1.3
alsa-utils-0.0.7

Thanks for any help.

                         Piotr Ingling
e-mail: pingling@elka.pw.edu.pl
------------------------------------------------------------
Ceny na gieldzie komputerowej w Warszawie:
        http://home.elka.pw.edu.pl/~pingling/ceny-pl.html

