All of lore.kernel.org
 help / color / mirror / Atom feed
* [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

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.