[PD-dev] [ pure-data-Bugs-1154130 ] pd segfaults on linux using alsammap with wron channelcount

SourceForge.net noreply at sourceforge.net
Mon Jun 20 13:42:19 CEST 2005


Bugs item #1154130, was opened at 2005-03-01 11:59
Message generated for change (Comment added) made by zmoelnig
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1154130&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: puredata
Group: None
>Status: Closed
>Resolution: Accepted
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

----------------------------------------------------------------------

>Comment By: IOhannes m zmölnig (zmoelnig)
Date: 2005-06-20 13:42

Message:
Logged In: YES 
user_id=564396

accepted by msp

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1154130&group_id=55736




More information about the Pd-dev mailing list