From alsa-devel-owner@alsa.jcu.cz  Wed Nov  4 18:59:35 1998
Received: from cyphyn.219.org (nwhn-sh10-port25.snet.net [204.60.201.25])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id SAA04113
	for <alsa-devel@jcu.cz>; Wed, 4 Nov 1998 18:58:03 +0100
Received: from localhost (emng@localhost)
          by cyphyn.219.org (8.8.4/8.8.4) with SMTP
	  id NAA00686 for <alsa-devel@jcu.cz>; Wed, 4 Nov 1998 13:01:15 -0500
Date: Wed, 4 Nov 1998 13:01:14 -0500 (EST)
From: Fred Floberg <emng@geocities.com>
To: alsa-devel@jcu.cz
Subject: Re: ES1371 Bugs again...
In-Reply-To: <199811021721.MAA02347@cyphyn.219.org>
Message-ID: <Pine.LNX.3.95.981104123054.551A-100000@cyphyn.219.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list




On Mon, 2 Nov 1998 perex@jcu.cz wrote:

> On Mon, 2 Nov 1998, Fred Floberg wrote:
> > > [patch for pcm1_native.c]
> > I applied this patch and recompiled, etc. but aplay and
> > wavplay (OSS program) sleep forever now. Don't know what's wrong.
> 
> My patch doesn't affect aplay or wavplay in any case. Maybe you need
> recompile whole alsa-driver again or get latest source from CVS (there
> is very much changes, so don't remember recompile all packages -
> alsa-driver, alsa-lib, alsa-utils)...
> 
Ok, I downloaded alsa-driver-0.2.0-pre9, alsa-lib, alsa-utils, and recompiled
them all as you said. The newly compiled aplay (using libasound.so.0.1.2) still
hangs after several writes to /dev/snd/pcm00. Here is the output of

# strace aplay file.wav

[strace setup deleted]
open("/usr/lib/libasound.so.0.1.2", O_RDONLY) = 3
[succeeds]
close(3)
write(1, "Aplay: version 0.0.7 by Jaroslav"..., 55Aplay: version 0.0.7 by
Jaroslav Kysela <perex@jcu.cz>
) = 55
open("/dev/snd/pcm00", O_WRONLY)        = 3
ioctl(3, 0x80044100, 0xbffff948)        = 0
ioctl(3, 0x80684102, 0x804d734)         = 0
brk(0x8057000)                          = 0x8057000
ioctl(3, 0x4131, 0)                     = 0
open("/hdb/4/mid.wav", O_RDONLY)        = 4
read(4, "RIFF\224\10m\1WAVEfmt \20\0\0\0\1"..., 24) = 24
read(4, "D\254", 2)                     = 2
read(4, "\0\0\20\261\2\0\4\0\20\0datap\10"..., 18) = 18
write(2, "Playing WAVE \'/hdb/4/mid.wav\' "..., 32Playing WAVE '/hdb/4/mid.wav'
: ) = 32
write(2, "Signed 16-bit Little Endian, ", 29Signed 16-bit Little Endian, ) = 29
write(2, "Speed 44100 Hz, ", 16Speed 44100 Hz, )        = 16
write(2, "Stereo", 6Stereo)                   = 6
write(2, "\n", 1
)                       = 1
ioctl(3, 0xc01c4110, 0x804d7a0)         = 0
ioctl(3, 0xc01c4112, 0xbffff904)        = 0
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 32768) = 32768
write(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 32768) = 32768
read(4, "\"\0\0\0\"\0\0\0\"\0\0\0\"\0\0\0"..., 32768) = 32768
write(3, "\"\0\0\0\"\0\0\0\"\0\0\0\"\0\0\0"..., 32768) = 32768
read(4, "\2\0\26\0\2\0\25\0\2\0\25\0\2\0\24"..., 32768) = 32768
write(3, "\2\0\26\0\2\0\25\0\2\0\25\0\2\0\24"..., 32768) = 32768
read(4, "e\0}\377b\0~\377^\0\200\377Z\0\201"..., 32768) = 32768
write(3, "e\0}\377b\0~\377^\0\200\377Z\0\201"..., 32768) = 32768
read(4, "\t\0\305\0\10\0\305\0\6\0\304\0\5"..., 32768) = 32768
write(3, "\t\0\305\0\10\0\305\0\6\0\304\0\5"..., 32768 <unfinished ...>

The program never returns from the last write call above.
The mixer and all of the /proc entries seem to be functioning ok.
I've cold rebooted several times but have gotten the same results
as above each time.
/proc/asound/memdebug shows no errors either.

Has anyone else using an ES1371 based card experienced this?
I haven't seen anyone else report this problem yet, so I wonder
if it's a local problem. I haven't changed my computer's hardware
or software configuration at all since installing the AudioPCI
card several weeks ago.

Fred



