Skip to contentSkip to conversation

dsnoop

DISCUSSION Patrick Shirkey 2 participants 3 messages Dec 9, 2003 – Dec 10, 2003

lore
Share & tools
lore
#0 lore raw

I'm using older alsa drivers so maybe this is fixed already.

Advanced Linux Sound Architecture Driver Version 0.9.3c. Compiled on May 25 2003 for kernel 2.4.19 with versioned symbols.

I can sucessfully run two instances of arecord with the dsnoop plugin but I get an error with my intel8x0 that doesn't occur while using my cmipci:

arecord: set_params:847: Can't use period equal to buffer size (7526 == 7526)

The number above is directly related to the buffer_size option below. 7526 corresponds to buffer size of 8192. If I use a lower size like 4096 it is:

arecord: set_params:847: Can't use period equal to buffer size (3763 == 3763)

Here's the definition I use in my .asoundrc

pcm.mixin {
        type dsnoop
        ipc_key 5978293	# must be unique for all dmix plugins!!!!
        ipc_key_add_uid yes
        slave {
                pcm "hw:0,0"
		channels 2
		period_size 1024
		buffer_size 4096
		rate 44100
        }
        bindings {
                0 0
                0 1
        }
}
Signature · 22 lines
Patrick Shirkey - Boost Hardware Ltd.
Http://www.boosthardware.com
Http://www.djcj.org - The Linux Audio Users guide
========================================


 Apparently upon the beginning of the barrage, the donkey broke 
discipline and panicked, toppling the cart. At that point, the rockets disconnected from the timer, leaving them strewn around the street. Tethered to the now toppled cart, the donkey was unable to escape before the arrival of U.S. troops.

United Press International
Rockets on donkeys hit major Baghdad sites

By P. MITCHELL PROTHERO
Published 11/21/2003 11:13 AM



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
#1 lore raw
Quoted 22 lines · Patrick Shirkey

I'm using older alsa drivers so maybe this is fixed already.

Advanced Linux Sound Architecture Driver Version 0.9.3c. Compiled on May 25 2003 for kernel 2.4.19 with versioned symbols.

I can sucessfully run two instances of arecord with the dsnoop plugin but I get an error with my intel8x0 that doesn't occur while using my cmipci:

arecord: set_params:847: Can't use period equal to buffer size (7526 == 7526)

The number above is directly related to the buffer_size option below. 7526 corresponds to buffer size of 8192. If I use a lower size like 4096 it is:

arecord: set_params:847: Can't use period equal to buffer size (3763 == 3763)

Here's the definition I use in my .asoundrc

Quoted 8 lines
pcm.mixin {
         type dsnoop
         ipc_key 5978293	# must be unique for all dmix plugins!!!!
         ipc_key_add_uid yes
         slave {
                 pcm "hw:0,0"
		channels 2
		period_size 1024

'periods 0' and 'period_time 0' is missing here. You need to overwrite the default values.

Quoted 8 lines
		buffer_size 4096
		rate 44100
         }
         bindings {
                 0 0
                 0 1
         }
}

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/

#2 lore raw
Quoted 5 lines · Jaroslav Kysela

'periods 0' and 'period_time 0' is missing here. You need to overwrite the default values.

Thanks that works. I will update the .asoundrc page for the online docs.

Signature · 22 lines
Patrick Shirkey - Boost Hardware Ltd.
Http://www.boosthardware.com
Http://www.djcj.org - The Linux Audio Users guide
========================================


 Apparently upon the beginning of the barrage, the donkey broke 
discipline and panicked, toppling the cart. At that point, the rockets disconnected from the timer, leaving them strewn around the street. Tethered to the now toppled cart, the donkey was unable to escape before the arrival of U.S. troops.

United Press International
Rockets on donkeys hit major Baghdad sites

By P. MITCHELL PROTHERO
Published 11/21/2003 11:13 AM



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/