1. In the file alsa-lib/src/pcm/pcm_direct.c, line 531 reads:
ret = snd_pcm_sw_params_set_silence_threshold(spcm, sw_params, 0);
However, this last parameter causes an assert in pcm.c, since the value 0 can aparently be less than the value spcm->buffer_size, which is a check in this function in pcm.c.
There are two solutions:
Rewrite the offending line to not send values that are too small:
ret = snd_pcm_sw_params_set_silence_threshold\ (spcm, sw_params, (0 < spcm->buffer_size) ? spcm->buffer_size : 0 );
This doesn't seem to work.
another solution would be to change the assert in pcm.c:
from:
assert(val < pcm->buffer_size);
to:
assert(val <= pcm->buffer_size);
Ths latter solution *seems* to work. Since I don't have the ALSA code memorized, I'm guessing this latter solution works because, after all, if I'm got it set to zero than I'm still legal.
If I could do a cvs diff I'd have a better idea of when this problem started and if this is the solution. I am pretty certain the problem was introduced last week.
NOTE: the way I generate the assert is to run "asterisk" and load both the chan_oss.so modules and the chan_alsa.so module.
2. Another problem is that alsamixer no longer compiles, as of today, because the Makefile no longer contains a reference to the ncurses library! I get dozens of complaints about "undefined reference", and they all are for references in libncurses.
A quick glance at alsamixer/configure.in shows that someone commented out the code that would configure references to libnucrses or libcurses. I can't figure out why were taken out since I can't access cvs ("end of file from server" for every command I attempt to execute). Uncommenting this change lets me compile and install.
I would like help, and I offer help to solve these puzzles...
-- Moshe Yudkowsky * http://www.Disaggregate.com
------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user
