From alsa-user-owner@alsa.jcu.cz  Tue May 12 07:52:37 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 HAA04510
	for <alsa-user@alsa.jcu.cz>; Tue, 12 May 1998 07:52:35 +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 VAA08746 for <alsa-user@alsa.jcu.cz>; Mon, 11 May 1998 21:48:16 -0700
Message-ID: <3557E34D.4A372F6F@wdc.com>
Date: Mon, 11 May 1998 22:51:10 -0700
From: Aaron Newsome <aaron.d.newsome@wdc.com>
MIME-Version: 1.0
To: alsa-user@alsa.jcu.cz
Subject: Could not open /dev/dsp with mpg123
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 just downloaded and compiled the latest ALSA drivers today (caught on
freshmeat).

I am having trouble getting appliations to play sound, although the
sound driver seems to be loaded fine.

I've looked at the mailing list archive and read through any docs that
came with the source.. The install procedure was pretty straightforward:

*./configure && make && make install
* ./snddevices
* depmod -a
* create /etc/conf.modules
* modprobe snd-sb16

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).

Is there some patched mpg123 code I need to use to work with the ALSA
API. I read that it is OSS/Lite API compliant, so I don't really know
what's going on here.

Here is a little config info for you:

Linux kernel 2.1.101
Pentium 200 128MB Ram

cat /proc/dma
===========
 1: Sound Blaster 16
 4: cascade
 5: advansys
 6: Sound Blaster 16

cat /proc/interupts
===============
           CPU0
  0:     512206   XT-PIC         timer
  1:       4801   XT-PIC         keyboard
  2:          0   XT-PIC         cascade
  4:      29582   XT-PIC         serial
  5:          0   XT-PIC         Sound Blaster 16
  9:      20577   XT-PIC         aic7xxx
 10:        947   XT-PIC         SMC EtherEZ
 12:      10672   XT-PIC         advansys
 13:          4   XT-PIC         fpu
 14:     148976   XT-PIC         ide0
NMI:          0
IPI:          0

cat /proc/ioports
=============
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0120-012f : advansys
01f0-01f7 : ide0
0220-022f : Sound Blaster 16
0300-031f : SMC EtherEZ
0330-0331 : Sound Blaster 16 - MPU-401
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(auto)
6000-60be : aic7xxx
f000-f007 : ide0

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

BTW: I have no idea what all those lines in conf.modules mean. I could
not find their usage documented anywhere, so I just copied them from the
INSTALL file and made what I thought were reasonable changes.

If anyone has any idea of what might be going on here, please let me
know. Also please respond to *my* e-mail address since I am not sure if
the subsribe was successfull or not.

TIA, in advance.

Aaron Newsome


