Bugs item #1154130, was opened at 2005-03-01 11:59 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1154130...
Category: puredata Group: None Status: Open Resolution: None Priority: 5 Submitted By: Winfried Ritsch (ritsch) Assigned to: Nobody/Anonymous (nobody) Summary: pd segfaults on linux using alsammap with wron channelcount
Initial Comment: with linux pd 0-38-4 and probably earlier versions if eg rme9652 card is used with alsammap and the wrong number of channels is given then pd segfaults.
The problem was that the alsamm_drivers needs excat the number of channels of the card to work and this depends on samplerate. on hdsp-madi card the channel number can be adjusted to the needs....
Anyway I have a short dirty patch so it doesnt segfault, and changes the sys_inchannels and sys_out_channels and memory allocation with in stuff exported function.
Problem is that it does not affect the GUI ALSA settings and I dont know if I should use
sys_setchsr(alsamm_inchannels, alsamm_outchannels, alsamm_sr)
in my drivers, better it would be if change of channels samplerate is always checkt after open_audio call in every drivers and corrected for the interface and pd
But if someone depends on allocated memory in sys_setchsr and it is changed afterwards, i dont want to be the someone.
I submit also a patch to patches (at least try to ;-)
mfg winfried
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1154130...