[alsa-devel] Dsnoop-plugin buffer sizes

Magnus Olsson magnus.olsson at axis.com
Tue Mar 15 10:51:27 CET 2011


> -----Original Message-----
> From: Jaroslav Kysela [mailto:perex at perex.cz]
> Sent: den 14 mars 2011 11:53
> To: Magnus Olsson
> Cc: alsa-devel at alsa-project.org
> Subject: Re: [alsa-devel] Dsnoop-plugin buffer sizes
> 
> Also, you may try to force the buffer size to 8000 for dsnoop (use
> period_size 2000, periods 4) in your dmix slave configuration, for
> example:
> 
>  	type dmix
>  	slave {
>  		period_size 2000
>  		periods 4
>  	}
> 
> If this works, it's probably a bug in the driver.


Ah, yes, I traced down the issue in the PCM driver. It assumed params_periods()*params_period_bytes() == params_buffer_bytes() without an integer constraint on number of periods. 

Thanks!

> 
>  					Jaroslav
> 
> -----
> Jaroslav Kysela <perex at perex.cz>
> Linux Kernel Sound Maintainer
> ALSA Project, Red Hat, Inc.



More information about the Alsa-devel mailing list