From alsa-user-owner@alsa.jcu.cz  Wed Feb 24 23:08:27 1999
Received: from csd.ia.pw.edu.pl (csd.ia.pw.edu.pl [148.81.31.1])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id XAA22823
	for <alsa-user@alsa.jcu.cz>; Wed, 24 Feb 1999 23:08:09 +0100
Received: from elektron ([148.81.63.249]:60406 "HELO unknown" ident: "TIMEDOUT2") by csd.ia.pw.edu.pl with SMTP id <34212-4959> convert rfc822-to-8bit; Wed, 24 Feb 1999 23:07:46 +0100
From: pingling@elka.pw.edu.pl (Piniek aka Piotr Ingling)
To: alsa-user@alsa.jcu.cz
Subject: alsactl problems with dual card conf.
Date: 	Wed, 24 Feb 1999 22:11:13 GMT
Message-ID: <36d47708.302709@csd.ia.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

Hi!

I've just upgraded to alsa driver/lib 0.3.0-pre4 and I see that alsactl is
broken. First - it doesn't see my 2nd card, second - it doesn't retrieve
settings for the 1st card, even though it stores them correctly. Well, in fact
it stores them only when I delete the asound.conf file. Otherwise... but see
below:

<root>(61)# alsactl store

<root>(62)# cat /etc/asound.conf

# ALSA driver configuration
# Generated by alsactl

soundcard( "card1" ) {
  mixer( "GF1" ) {
    ; Capabilities: join-mute.
    ; Accepted channel range is from 0 to 1.
    channel( "Master", mono( 1 ) )
    ; Capabilities: stereo digital.
    ; Accepted channel range is from 0 to 127.
    channel( "PCM", stereo( 127, 127 ) )
  }
}

soundcard( "card2" ) {
}

<root>(63)# alsactl store card2

alsactl: Cannot find soundcard 'card2'...

<root>(64)# alsactl store card1

alsactl: Error in configuration file '/etc/asound.conf' (line 16): parse error

<root>(65)# cat /proc/asound/cards

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

It is only alsactl that has problems - for example alsamixer sees both cards
and set them properly. 
My system is kernel 2.2.2, driver/lib 0.3.0-pre4, utils 0.3.0-pre3.

                         Piotr Ingling

                e-mail: pingling@elka.pw.edu.pl

