PCM/ALSA loopback (codec-->DMA_RX-->DMA_TX-->codec)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 analog/digital audio path look like:

mic in -> analog in circuitry -> CODEC -> analog out circuitry -> out
                                   | |
                                   v ^
                                   | |
                                  -----
                                   CPU
                                  -----
                                  kernel
                                alsa core
                                ---------
                                 alsa lib
                              aplay/arecord


The problem is there's no loopback/echo nor sidetone possible with
the CODEC we use.
Also the DMA between CPU and CODEC cannot be looped (no DMA_RX-->DMA_TX
possible).

I know it's possible to loop digital audio in user-space with
arecord -D hw:0,0 .. | aplay -D hw:0,0 ..
This will probably give latencies of 10-100ms (depending upon CPU,
DMA priority, SW load, period_size, etc...). These are too high for the
sweep generator.

Is it possible to loopback a PCM in stream to a PCM out stream somehow
in ALSA core/lib ?

How does the latency ALSA lib example program do this ?


-- 
This message has been scanned for viruses and is believed to be clean


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux