From alsa-user-owner@alsa.jcu.cz  Sun Oct  4 18:17:10 1998
Received: from Mail.ZEDAT.FU-Berlin.DE (mail.zedat.fu-berlin.de [160.45.2.8])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id SAA27037
	for <alsa-user@alsa.jcu.cz>; Sun, 4 Oct 1998 18:15:49 +0200
Received: by Mail.ZEDAT.FU-Berlin.DE (Smail3.2.0.98)
	  from c64 (160.45.228.41) with smtp
	  id <m0zPqp2-00NGs0C>; Sun, 4 Oct 1998 18:15:48 +0200 (MEST)
Message-Id: <m0zPqp2-00NGs0C@Mail.ZEDAT.FU-Berlin.DE>
From: "A.J." <s600603@compute-atm.tfh-berlin.de>
To: alsa-user@alsa.jcu.cz
Date: Sun, 4 Oct 1998 18:16:31 +0000
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: Couldn't use second sound card any idee ?
CC: s600603@tfh-berlin.de
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

Hello,
I've installed the latest (0.2.0.pre8) alsa-driver, the driver is 
loaded correctly, see below for more infos about my system, but I 
could not use the second soundcard (SB 2.0 8Bit the old one) the 
first card works very well. 
But if I want to play a wav using the second card (SB 2.0 Unsigned 
8-bit, Speed 11111 Hz, Mono) with aplay, I hear all as output of the
first one, its every time the same if I use /dev/dsp0 or /dev/dsp1 or
/dev/audio0 or /dev/audio1.
How do I use the second card ? 
Please let me know if you know something.
Thanks
			Christian

MORE INFOS :
----------------------

# aplay -d /dev/xxxx -w frogs.wav Aplay: version 0.0.6 by Jaroslav 
Kysela <perex@jcu.cz> Playing WAVE 'frogs.wav': Unsigned 8-bit, Speed 
11111 Hz, Mono

# cat /proc/modules 
snd-sb8            1            0
snd-sb16           1            0
snd-opl3           1    [snd-sb8 snd-sb16]      0
snd-mpu401-uart    1    [snd-sb16]      0
snd-sb-dsp         4    [snd-sb8 snd-sb16]      0
snd-synth          1    [snd-sb8 snd-sb16 snd-opl3]     0
snd-timer          1    [snd-opl3]      0
snd-midi           3    [snd-sb8 snd-sb16 snd-mpu401-uart snd-sb-dsp] 
 0 snd-pcm1-oss       4            0 snd-pcm1           4   
[snd-sb-dsp snd-pcm1-oss]       0 snd-pcm            2    [snd-sb8
snd-sb16 snd-sb-dsp snd-pcm1-oss snd-pcm1]    0 snd-mixer          4  
 [snd-sb8 snd-sb16 snd-sb-dsp snd-pcm1-oss]      0 snd               
7    [snd-sb8 snd-sb16 snd-opl3 snd-mpu401-uart snd-sb-dsp snd-synth
snd-timer snd-midi snd-pcm1-oss snd-pcm1 snd-pcm snd-mixer]     0

# cat /proc/asound/devices 
144: [0]   : control
145: [1]   : control
152: [0- 0]: mixer
168: [0- 0]: digital audio
172: [1- 0]: digital audio
200: [0- 0]: raw midi
204: [1- 0]: raw midi

# aplay -l
Sound Blaster 16: 1 [card1] / #0: DSP v4.13
  Directions: playback record duplex 
  Playback:
    Speed range: 4000Hz-44100Hz
    Voices range: 1-2
    Formats:
      Mu-Law
      Unsigned 8-bit [hardware]
      Signed 16-bit Little Endian [hardware]
      Signed 8-bit [hardware]
      Unsigned 16-bit Little Endian [hardware]
  Record:
    Speed range: 4000Hz-44100Hz
    Voices range: 1-2
    Formats:
      Mu-Law
      Unsigned 8-bit [hardware]
      Signed 16-bit Little Endian [hardware]
      Signed 8-bit [hardware]
      Unsigned 16-bit Little Endian [hardware]
Sound Blaster 2.0: 2 [card2] / #0: DSP v2.0
  Directions: playback record 
  Playback:
    Speed range: 4000Hz-23000Hz
    Voices range: 1-1
    Formats:
      Mu-Law
      Unsigned 8-bit [hardware]
  Record:
    Speed range: 4000Hz-13000Hz
    Voices range: 1-1
    Formats:
      Mu-Law
      Unsigned 8-bit [hardware]

INTO SYSLOG, the following message came up :
Oct  3 22:48:03  modprobe: Can't locate module snd-card-3

# cat /dev/sndstat 
Sound Driver:3.8.1a-980706 (ALSA v0.2.0-pre8 emulation code)
Kernel: Linux 2.0.34 #10 Fri Oct 2 03:53:50 MEST 1998 i586
Config options: 0

Installed drivers: 
Type 10: ALSA emulation

Card config: 
Sound Blaster 16 at 0x220, irq 5, dma 3&5
Sound Blaster 2.0 at 0x240, irq 9, dma 1

Audio devices: 
0: DSP v4.13
1: DSP v2.0

Synth devices: 
0: OPL3 FM

Midi devices: 
0: MPU-401 (UART)
1: SB8 MIDI

Timers: 
7: system timer

Mixers: 
0: CTL1745


# ls /proc/asound/card1
midi0   mixer0  pcm0    pcm0o   pcm0p   pcm0r   sb16
# ls /proc/asound/card2
midi0  pcm0   pcm0o  pcm0p  pcm0r

# cat /proc/asound/card1/mixer0  
Mixer 'CTL1745'
Channel 'Master' 0 31 27 24
Channel 'Bass' 0 15 9 9
Channel 'Treble' 0 15 9 9
Channel 'Synth' 0 31 19 19
Channel 'PCM' 0 31 20 20
Channel 'Line-In' 0 31 19 19
Channel 'MIC' 0 31 19 19
Channel 'CD' 0 31 19 19
Channel 'In-Gain' 0 3 0 0 mute
Channel 'Out-Gain' 0 3 0 0 mute
Channel 'PC Speaker' 0 3 3 3
Switch 'MIC Auto-Gain-Control' 0
00000000:00000000:00000000:00000000:00000000:00000000:00000000:0000000
0

 # ls -l /dev/dsp*
crw-rw-rw-   1 root     root      14,   3 Oct  3 22:13 /dev/dsp0
crw-rw-rw-   1 root     root      14,  19 Oct  3 22:12 /dev/dsp1

# ls -l /dev/audio*
crw-rw-rw-   1 root     root      14,   4 Oct  3 23:36 /dev/audio0
crw-rw-rw-   1 root     root      14,  20 Oct  3 23:36 /dev/audio1


