[Alsa-user] PCM/ALSA loopback (codec-->DMA_RX-->DMA_TX-->codec)

2008-07-17 Thread Norbert van Bolhuis
to be able to easily check our entire analog audio in/out cicuits (with a sweep generator feeding mic in and measuring the signal from audio out) I'd like to know whether there's any low level loopback available in ALSA core (or ALSA lib). The closer to HW the better it is. This is what our analo

[Alsa-user] real-time audio analyzer (amplitude, freq)

2008-07-17 Thread Norbert van Bolhuis
to check out some audio circuitry I'm in need of a simple audio analyzer tool that analyzes tones (given the sample rate). Ideally, it should read WAV/RAW audio samples from stdin and print the min, max, average amplitude and frequency (and SNR if possible). since it's all embedded stuff I'd pre

[Alsa-user] S24_LE is 3 bytes ? in alsa-lib example pcm.c

2008-07-10 Thread Norbert van Bolhuis
as far as I know: sample format S24_LE is 24bit sample in 4 bytes sample format S24_3LE is 24bit sample in 3 bytes (why else have separate definitions), right ? In the ALSA-LIb example /test/pcm.c however (http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2pcm_8c-example.html) there is no diff

Re: [Alsa-user] which are the pieces of ALSA source code responsibleforsetting sample rate ?

2008-07-01 Thread Norbert van Bolhuis
Sergei Steshenko wrote: > > -Original Message- > From: stan <[EMAIL PROTECTED]> > To: Sergei Steshenko <[EMAIL PROTECTED]> > Date: Tue, 01 Jul 2008 07:25:44 -0700 > Subject: Re: [Alsa-user] which are the pieces of ALSA source code > responsibleforsetting sample rate ? > > >> Then you ar

Re: [Alsa-user] loopback (playback captured data)

2008-06-26 Thread Norbert van Bolhuis
> > If you'd buffer a bit I guess. Is "arecord -f | aplay" not minimal > enough? Although it's not what you meant, arecord is a link to aplay, so > it's still one program :-) > thanks, it works great. sometimes one fails to see the most simple solution. N. -- This message has been scann

[Alsa-user] loopback (playback captured data)

2008-06-25 Thread Norbert van Bolhuis
I would like to test an ALSA driver by capturing audio and immediately play the captured audio (loopback). It's an embedded driver and the still to be developed audio app will interface to the driver via ALSA-LIB. therefore I would like to do this with the simplest and smallest possible ALSA-LIB