From alsa-user-owner@alsa.jcu.cz  Tue May 12 18:02:00 1998
Received: from itchy.xosoft.ml.org (itchy.wdc.com [199.107.100.202])
	by marvin.jcu.cz (8.8.8/8.8.8) with ESMTP id SAA10547
	for <alsa-user@alsa.jcu.cz>; Tue, 12 May 1998 18:01:31 +0200
Received: from wdc.com (scratchy.xosoft.ml.org [199.107.100.203]) by itchy.xosoft.ml.org (8.8.4/8.7.3) with ESMTP id HAA09627; Tue, 12 May 1998 07:56:17 -0700
Message-ID: <355871D1.91D953F6@wdc.com>
Date: Tue, 12 May 1998 08:59:13 -0700
From: Aaron Newsome <aaron.d.newsome@wdc.com>
MIME-Version: 1.0
To: Jaroslav Kysela <perex@jcu.cz>
CC: alsa-user@alsa.jcu.cz
Subject: Re: Could not open /dev/dsp with mpg123
References: <Pine.LNX.3.96.980512122755.10044B-100000@entry.jcu.cz>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

I did a 'modprobe snd-pcm-oss' and it seemed to load fine.

I then tried to use mpg123 to play an mp3 file (and x11amp). This time I did
not get a 'could not open /dev/dsp' error, but yet no sound came out. The
mpg123 progress indicator never moved either.

I then began to realize that there is /proc/sound structure now so I'll give
you some of the output of that.

cat /proc/sound/oss-devices
  0: [0- 0]: mixer
  2: [0- 2]: raw midi
  3: [0- 3]: digital audio
  4: [0- 4]: digital audio
  5: [0- 5]: digital audio
  6:       : sndstat
  9: [0- 9]: raw midi

cat /proc/sound/version
Advanced Linux Sound Architecture Driver Version 0.1.1.
Compiled in May 11 1998 for kernel 2.1.101 (SMP) with versioned symbols.

cat /proc/sound/meminfo
Driver using 34 pages (139264 bytes) of kernel memory for data.


 cat /proc/sound/cards
0 [card1          ]: SB16 - Sound Blaster 16
                     Sound Blaster 16 at 0x220, irq 5, dma 1&6

cat /proc/sound/card1/pcm0
DSP v4.13

Playback
  Mode           : OSS compatible
  Format         : Signed 16-bit Little Endian
  Rate           : 44100Hz [requested 44100Hz]
  Channels       : 2
  Buffer size    : 131072
  Buffer used    : 131072
  Fragments      : 4
  Fragment size  : 32768
  Underruns      : 0
  Total underruns: 0

cat /proc/sound/card1/sb16
SB16 DMA usage

Playback DMA  : auto (16-bit)
Record DMA    : auto (inactive)

 cat /proc/sound/card1/mixer0
Mixer 'CTL1745'
Channel 'Master' 0 31 21 21
Channel 'Bass' 0 15 0 0
Channel 'Treble' 0 15 10 10
Channel 'Synth' 0 31 18 18
Channel 'PCM' 0 31 25 25
Channel 'Line-In' 0 31 13 13
Channel 'MIC' 0 31 16 0
Channel 'CD' 0 31 21 21
Channel 'In-Gain' 0 3 2 2
Channel 'Out-Gain' 0 3 2 2
Channel 'PC Speaker' 0 3 1 0

 lsmod
Module                  Size  Used by
snd-pcm-oss            13092   1
snd-sb16                3232   3
snd-sb-dsp             14720   0  [snd-sb16]
snd-pcm                20528   0  [snd-pcm-oss snd-sb16 snd-sb-dsp]
snd-mixer              12808   2  [snd-pcm-oss snd-sb16 snd-sb-dsp]
snd-mpu401-uart         1792   0  [snd-sb16]
snd-midi                9372   0  [snd-sb16 snd-sb-dsp snd-mpu401-uart]
snd                    22124   0  [snd-pcm-oss snd-sb16 snd-sb-dsp snd-pcm
snd-mixer snd-mpu401-uart snd-midi]
st                     22116   0
sr_mod                 15928   1
sg                      4128   0
isofs                  15576   0
loop                    5136   0  (unused)
cdrom                   9496   0  [sr_mod]
dummy                    700   0  (unused)
smc-ultra               4008   1
8390                    6012   0  [smc-ultra]


Loading that additional module seemed to help a bit, but I'm not quite there
yet. Any ideas anyone?

Thanks, again.

Aaron Newsome
aaron.d.newsome@wdc.com

Jaroslav Kysela wrote:

> On Mon, 11 May 1998, Aaron Newsome wrote:
>
> > This all seems to work OK. The first program I tried was my CD player
> > application (kscd, included with KDE). This seemed to work fine, as did
> > the kmix program (a mixer applet also included with KDE). Next I tried
> > mpg123 and that's when the problems started.
> >
> > Mpg123 says it cannot open /dev/dsp. I downloaded and compiled the
> > latest mpg123 just in case something was *wrong* with the mpg123 I had
> > already. Mpg123 previously worked fine with my OSS commercial drivers
> > from 4front-Tech (all except the PC locking up after 30 or so hours of
> > continous sound output, which is why I am trying ALSA to begin with).
>
> Module snd-pcm-oss isn't probably for some reason loaded. Without this
> add-on module which emulates OSS's digital audio can't be run any OSS
> /dev/dsp applications. Try 'modprobe snd-pcm-oss'.
>
> > cat /etc/conf.modules
> > =================
> > alias char-major-14 off
> > alias snd-minor-oss-0 snd-mixer
> > alias snd-minor-oss-3 snd-pcm-oss
> > alias snd-minor-oss-4 snd-pcm-oss
> > alias snd-minor-oss-5 snd-pcm-oss
> > alias snd-card-0 snd-sb16
> > options snd snd_major=14 snd_cards_limit=2
> > options snd-sb16 snd_index=1 snd_port=0x220 snd_irq=5 snd_dma8=1
> > snd_dma16=6
>
> Looks good. There must be some problem with kerneld or kmod.
>
>                                                 Jaroslav
>
> -----
> Jaroslav Kysela <perex@jcu.cz>
> Academic Computer Centre, University of South Bohemia
> Branisovska 31, C. Budejovice, CZ-370 05 Czech Republic




