* Re:[RFC] DMAsound 2.4.0-tx => 2.2.17 back-port.
@ 2000-08-24 15:37 Henry Worth
2000-08-24 16:08 ` [RFC] " Michel Dänzer
0 siblings, 1 reply; 3+ messages in thread
From: Henry Worth @ 2000-08-24 15:37 UTC (permalink / raw)
To: iain, linuxppc-dev
Iain,
(Iain, you may have recieved an earlier version of this, it bounced
on a typo in the maillist addr, so I'm resending with some additions)
My Pismo is back from the shop (bad I/O logic board) and Linux
reinstalled. I've applied the dmasound backport to
linux-2.2.217pre19-ben1. There were a couple of simple typos, I
think I've seen them mentioned before but let me know if you want
the diffs.
First the good news:
More recent verisons of esound (looks like those with ALSA changes)
have had some sort of buffering problem were they would skip blocks
during playback (with both esdplay and XMMS esd output plugin). The
blocks that played were at the correct speed, but the
track/sample would playback as quick as it could be read off
storage. The backport corrects, or perhaps covers-up, the problem. I
need to investigate the root cause some more.
With the old driver it was impossible to use the modem while
playing back CD's, throughput would drop to zero. Now there is
little if any impact and the CPU load is cut significantly
(this is with, and without, irq unmasking enabled for the DVD
in both cases).
However, on the Pismo it looks like that in additional to the LE
modes not being set, as previously discussed, the 8bit mode and rate
parms are also not getting set in the Screamer. The RAW_AFMT_S8_S_44K
sample sounds like Alvin and the Chipmonks and the lower rate samples
are just high-speed jibberish. Here's the stest ouput for a couple:
[henry@osprey stest]$ ./stest -f AFMT_S16_LE_S_44K.wav
/dev/dsp Capabilities : Rev 18
DUPLEX : real-time : BATCH : co-proc : trigger : mmap
/dev/dsp Supported Formats.
MU-LAW : A-LAW : ima-adpcm : U8 : S16-LE : S16-BE : S8 : U16-LE :
U16-BE : mpeg-2
/dev/dsp current settings < AFMT_S16_BE : STEREO : >
/dev/dsp now set to : AFMT_S16_BE : STEREO :
SAMPLINGRATE=44100
fragment parameter = 00020009
OSS BUFFERS: fragments=2 fragment size=512 total buffer size=1024
buffer latency=5.804989 ms
[henry@osprey stest]$ ./stest -f RAW_AFMT_S8_S_44K
/dev/dsp Capabilities : Rev 18
DUPLEX : real-time : BATCH : co-proc : trigger : mmap
/dev/dsp Supported Formats.
MU-LAW : A-LAW : ima-adpcm : U8 : S16-LE : S16-BE : S8 : U16-LE :
U16-BE : mpeg-2
/dev/dsp current settings < AFMT_S16_BE : STEREO : >
/dev/dsp now set to : AFMT_S16_BE : STEREO :
SAMPLINGRATE=44100
fragment parameter = 00020009
OSS BUFFERS: fragments=2 fragment size=512 total buffer size=1024
buffer latency=5.804989 ms
finished
[henry@osprey stest]$ ./stest -f SUN_AFMT_A_LAW_M_11K
/dev/dsp Capabilities : Rev 18
DUPLEX : real-time : BATCH : co-proc : trigger : mmap
/dev/dsp Supported Formats.
MU-LAW : A-LAW : ima-adpcm : U8 : S16-LE : S16-BE : S8 : U16-LE :
U16-BE : mpeg-2
/dev/dsp current settings < AFMT_S16_BE : STEREO : >
/dev/dsp now set to : AFMT_S16_BE : STEREO :
SAMPLINGRATE=44100
fragment parameter = 00020009
OSS BUFFERS: fragments=2 fragment size=512 total buffer size=1024
buffer latency=5.804989 ms
finished
[henry@osprey stest]$ ./stest -f SUN_AFMT_MU_LAW_M_8K
/dev/dsp Capabilities : Rev 18
DUPLEX : real-time : BATCH : co-proc : trigger : mmap
/dev/dsp Supported Formats.
MU-LAW : A-LAW : ima-adpcm : U8 : S16-LE : S16-BE : S8 : U16-LE :
U16-BE : mpeg-2
/dev/dsp current settings < AFMT_S16_BE : STEREO : >
/dev/dsp now set to : AFMT_S16_BE : STEREO :
SAMPLINGRATE=44100
fragment parameter = 00020009
OSS BUFFERS: fragments=2 fragment size=512 total buffer size=1024
buffer latency=5.804989 ms
finished
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC] DMAsound 2.4.0-tx => 2.2.17 back-port.
2000-08-24 15:37 Re:[RFC] DMAsound 2.4.0-tx => 2.2.17 back-port Henry Worth
@ 2000-08-24 16:08 ` Michel Dänzer
2000-08-24 16:15 ` Hollis R Blanchard
0 siblings, 1 reply; 3+ messages in thread
From: Michel Dänzer @ 2000-08-24 16:08 UTC (permalink / raw)
To: Henry Worth; +Cc: iain, linuxppc-dev
Henry Worth wrote:
> More recent verisons of esound (looks like those with ALSA changes)
> have had some sort of buffering problem were they would skip blocks
> during playback (with both esdplay and XMMS esd output plugin). The
> blocks that played were at the correct speed, but the
> track/sample would playback as quick as it could be read off
> storage. The backport corrects, or perhaps covers-up, the problem. I
> need to investigate the root cause some more.
This sounds familiar.
I've been playing with the Quake sound playback In order to enable sound
without mmap support, Steffen Haeuser advised using a dedicated thread which
writes sound data to /dev/dsp.
It basically works, but the sound is somewhat distorted, and I think the
problem might be similar to esd's .
Where is your backport (or rather patches against 2.4.0-testx) available?
Michel
--
Earthling Michel Dänzer (MrCooper) \ CS student and free software enthusiast
Debian GNU/Linux (powerpc,i386) user \ member of XFree86 and the DRI project
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-08-24 16:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-24 15:37 Re:[RFC] DMAsound 2.4.0-tx => 2.2.17 back-port Henry Worth
2000-08-24 16:08 ` [RFC] " Michel Dänzer
2000-08-24 16:15 ` Hollis R Blanchard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).