From alsa-devel-owner@alsa.jcu.cz  Fri Aug 14 10:53:34 1998
Received: from entry.jcu.cz (perex@entry.jcu.cz [160.217.1.111])
	by marvin.jcu.cz (8.8.8/8.8.8) with SMTP id KAA13454;
	Fri, 14 Aug 1998 10:53:08 +0200
Date: Fri, 14 Aug 1998 10:53:08 +0200 (MET DST)
From: Jaroslav Kysela <perex@jcu.cz>
To: David Fries <dfries@mail.win.org>
cc: alsa-devel@alsa.jcu.cz
Subject: Re: 0.2.0pre4 problems
In-Reply-To: <19980813183309.J320@AeroSpace.miango.com>
Message-ID: <Pine.LNX.3.96.980814104103.8025E-100000@entry.jcu.cz>
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 Thu, 13 Aug 1998, David Fries wrote:

> The static is back playing sound.  Are you getting the static on your GUS
> Max?  Could it just be my computer?  Should I post to the list and see if
> anyone else is having similar problems?  I could also dig up an old
> ultrasound driver and see if I have problems there.

This problem isn't very good. I really don't know how I can this problem
fix. Looks that code does something wrong. With ultra driver I did have
problems with InterWave chips (same problem as now ALSA have with CS4231A
chip). Sometimes noise occurs. I'm thinking that problem is caused in
calibration process, but I can't figure where problem exactly is.
If problem doesn't repeat in exact loops, then debugging is very very
poor.

OK. We can collect informations: Please, if someone have same problem
(with noise) with these soundcards, please, report it to this list:

	1. GUS MAX
	2. InterWave (GUS PnP, STB etc..)
	3. Yamaha OPL3-SA[2,3]

Maybe Thomas Sailer have some experience with CS4231/CS4231A chips?
Is there some magic thing or timing which is needed?

> I can output the music from mpg123 to a file and play it with aplay and
> sometimes it comes out good sometimes it comes out as static.  Since I used
> that last patch I didn't have any problems until my "alarm" of mpg123
> playing music went off this morning as static not music.
> 
> 
> According to aplay the synth is able to record,

It's true, recording from GF1 chip is working with GUS MAX, but don't ask
me where is the analog input path. I simply don't know, it's not documented.

> Gravis UltraSound MAX: 1 [card1] / #1: GF1 (synth)
>   Directions: playback record duplex 
>   Playback:
>     Speed range: 5510Hz-44100Hz
>     Voices range: 1-32
>     Formats:
>       Unsigned 8-bit
>       Signed 16-bit Little Endian
>       Signed 8-bit
>       Unsigned 16-bit Little Endian
>   Record:
>     Speed range: 5510Hz-48000Hz
>     Voices range: 1-2
>     Formats:
>       Unsigned 8-bit
>       Signed 8-bit
> 
> I didn't think that was possible,
> 
> AeroSpace:~/media/sound/wave$ cat /proc/sound/card1/pcm1
> GF1 (synth)
> 
> Playback isn't active.
> Record
>   Mode           : native
>   Format         : Unsigned 8-bit
>   Rate           : 8000Hz [requested 8000Hz]
>   Channels       : 1
>   Buffer size    : 131072
>   Buffer used    : 131072
>   Fragments      : 128
>   Fragment size  : 1024
>   Fragments min  : 1
>   Overruns       : 0
>   Total overruns : 0
> 
> That would indicate it was recording, but
> AeroSpace:~/media/sound/wave$ aplay bugler5.wave 
> Aplay: version 0.0.4 by Jaroslav Kysela <perex@jcu.cz>
> Error: audio open error: Device or resource busy
> 
> indicates that pcm0 was being used.

OK. GUS MAX have 2 DMA channels. First is used for onboard RAM DMA (GF1
synth) + CODEC record, second is used for GF1 record + CODEC playback.
As you see - you can't use CODEC playback + GF1 record simultaneously.

						Jaroslav

-----
Jaroslav Kysela <perex@jcu.cz>
Academic Computer Centre, University of South Bohemia
Branisovska 31, C. Budejovice, CZ-370 05 Czech Republic


