[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <878xjrqeh2.fsf_-_@gandalf.hd.free.fr>
Date: Sun, 08 Oct 2006 12:38:49 +0200
From: Dominique Dumont <domi.dumont@...e.fr>
To: Alan Cox <alan@...rguk.ukuu.org.uk>
Cc: Lee Revell <rlrevell@...-job.com>,
alsa-user <alsa-user@...ts.sourceforge.net>,
Francesco Peeters <Francesco@...Peeters.com>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: PCM distorsion snapshots from SATA/ALSA conflict (was: [Alsa-user] Pb with simultaneous SATA and ALSA I/O)
Alan Cox <alan@...rguk.ukuu.org.uk> writes:
> If it's electrical noise though then power fluctuations or similar
> could be to blame ?
To check this, I've dusted off my old oscilloscope.
I've used speaker-test program to generate a 500, 900 and 1000 Hz sine
wave that I've sent on the spdif line (as PCM) and had them decoded by
my Yamaha DSP-A1 amplifier.
I've enclosed only the snapshots to this mail, I hope it'll get
through vger's majordomo.
Anyway, the oscilloscope shows that:
- a spike occurs every 330 useconds (about 3kHz)
(note: 330us is 15.85 times the period of the 48KHz spdif stream)
- the spike level roughly matches the level of the sine waves 330
useconds sooner
I may be wrong, but it looks like that, somewhere in the audio data
stream, a buffer is read downstream before the correct value is
written by upstream (delayed by SATA I/O ??). OTOH, 16 samples is a
very short buffer...
If needed I can try other things like:
- loop back the spdif output to my mobo's input to get the actual
values of the PCM stream sent to the Yamaha.
- try the oscilloscope on the analog output of the SB live card ( I
couldn't hear any distorsion on the analog line, but it does mean
there no problem on this side as the D/A converter may filter out
these kind of short duration spikes)
- try another signal shape
Any thought ?
HTH
Download attachment "c2_500Hz.jpg" of type "image/jpeg" (15821 bytes)
Download attachment "c2_900Hz.jpg" of type "image/jpeg" (16690 bytes)
Download attachment "c2_1000Hz.jpg" of type "image/jpeg" (22708 bytes)
Powered by blists - more mailing lists