* [PATCH] Full duplex dmix,dsnoop
@ 2004-03-25 19:37 James Courtier-Dutton
2004-03-25 19:40 ` Jaroslav Kysela
0 siblings, 1 reply; 3+ messages in thread
From: James Courtier-Dutton @ 2004-03-25 19:37 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 863 bytes --]
See attached patch for suggested new pcm device.
It works for: -
arecord -fdat -Dplug:duplex | aplay -Dplug:duplex
bash-2.05b# arecord -fdat -Dplug:duplex | aplay -Dplug:duplex
Recording WAVE 'stdout' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
but fails for: -
arecord -fcd -Dplug:duplex | aplay -Dplug:duplex
bash-2.05b# arecord -fcd -Dplug:duplex | aplay -Dplug:duplex
Recording WAVE 'stdout' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
arecord: pcm.c:5920: snd_pcm_mmap_commit: Assertion `frames <=
snd_pcm_mmap_avail(pcm)' failed.
Aborted by signal Aborted...
This last example with -fcd, outputs one period, maybe two then exits
with the above error.
Can anybody help?
Cheers
James
[-- Attachment #2: duplex.dmix.dsnoop.patch --]
[-- Type: text/x-patch, Size: 263 bytes --]
--- alsa.conf.org 2004-02-04 12:28:31.000000000 +0000
+++ alsa.conf 2004-03-25 19:27:34.207640104 +0000
@@ -228,6 +228,12 @@
}
}
+pcm.duplex {
+ type asym
+ playback.pcm "dmix"
+ capture.pcm "dsnoop"
+}
+
pcm.shm {
@args [ SOCKET PCM ]
@args.SOCKET {
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Full duplex dmix,dsnoop
2004-03-25 19:37 [PATCH] Full duplex dmix,dsnoop James Courtier-Dutton
@ 2004-03-25 19:40 ` Jaroslav Kysela
2004-03-25 21:11 ` James Courtier-Dutton
0 siblings, 1 reply; 3+ messages in thread
From: Jaroslav Kysela @ 2004-03-25 19:40 UTC (permalink / raw)
To: James Courtier-Dutton; +Cc: alsa-devel
On Thu, 25 Mar 2004, James Courtier-Dutton wrote:
> bash-2.05b# arecord -fcd -Dplug:duplex | aplay -Dplug:duplex
> Recording WAVE 'stdout' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
> Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
> arecord: pcm.c:5920: snd_pcm_mmap_commit: Assertion `frames <=
> snd_pcm_mmap_avail(pcm)' failed.
> Aborted by signal Aborted...
>
> This last example with -fcd, outputs one period, maybe two then exits
> with the above error.
Do you use latest CVS code? I've fixed this problem with the rate
(resampling) plugin.
Jaroslav
-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Full duplex dmix,dsnoop
2004-03-25 19:40 ` Jaroslav Kysela
@ 2004-03-25 21:11 ` James Courtier-Dutton
0 siblings, 0 replies; 3+ messages in thread
From: James Courtier-Dutton @ 2004-03-25 21:11 UTC (permalink / raw)
To: Jaroslav Kysela; +Cc: alsa-devel
Jaroslav Kysela wrote:
> On Thu, 25 Mar 2004, James Courtier-Dutton wrote:
>
>
>>bash-2.05b# arecord -fcd -Dplug:duplex | aplay -Dplug:duplex
>>Recording WAVE 'stdout' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
>>Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
>>arecord: pcm.c:5920: snd_pcm_mmap_commit: Assertion `frames <=
>>snd_pcm_mmap_avail(pcm)' failed.
>>Aborted by signal Aborted...
>>
>>This last example with -fcd, outputs one period, maybe two then exits
>>with the above error.
>
>
> Do you use latest CVS code? I've fixed this problem with the rate
> (resampling) plugin.
>
> Jaroslav
>
I think so, cat /usr/include/alsa/version.h
/*
* version.h
*/
#define SND_LIB_MAJOR 1 /**< major number of library version */
#define SND_LIB_MINOR 0 /**< minor number of library version */
#define SND_LIB_SUBMINOR 3 /**< subminor number of library version */
#define SND_LIB_EXTRAVER 1000000 /**< extra version number, used
mainly for betas */
/** library version */
#define SND_LIB_VERSION ((SND_LIB_MAJOR<<16)|\
(SND_LIB_MINOR<<8)|\
SND_LIB_SUBMINOR)
/** library version (string) */
#define SND_LIB_VERSION_STR "1.0.3b"
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-25 21:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-25 19:37 [PATCH] Full duplex dmix,dsnoop James Courtier-Dutton
2004-03-25 19:40 ` Jaroslav Kysela
2004-03-25 21:11 ` James Courtier-Dutton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.