??? No, the only reference I found about this option is regarding OSS
(http://alsa.opensrc.org/index.php?page=cs46xx) and I never thought it
was of any use for me...
I have added
options snd-cs46xx mmap_valid=1
to my /etc/modules.conf and done an /etc/init.d/alsa restart without any
change, so I try a /etc/init.d/alsa stop and checked that's there is no
more alsa modules loaded at all and do a
modprobe snd-cs46xx mmap_valid=1



Adding it to modules.conf should be enough, that does not seems to be the problem anyway. So:

if ((err = snd_pcm_hw_params_set_period_size(out, hwparams, MMAP_BURST, 0)) < 0) {
!! esyslog("S/P-DIF: Period size not available: %s", snd_strerror(err));
period_size = 0;
goto err_out;
}
// function returns less than 0 on error or greater than 0
if ((err = snd_pcm_hw_params_set_buffer_size_near(out, hwparams, burst_size*periods)) < 0) {
esyslog("S/P-DIF: Buffer size not available: %s", snd_strerror(err));
goto err_out;
}
} else {
frag = 1;


// function returns less than 0 on error or greater than 0
if ((err = snd_pcm_hw_params_set_period_size(out, hwparams, burst_size, 0)) < 0) {
!! esyslog("S/P-DIF: Period size not available: %s", snd_strerror(err));
period_size = 0;
goto err_out;
}


It seems to be the snd_pcm_hw_params_set_period_size(...) that fails, it seems to be two possible places where this function is called.
I guess there's a constraint in the cs46xx driver which does not allow the desired period settings, maybe someone with more knowledge about the alsa-lib can help us figure out what ??


/Benny




-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to