[Xenomai-core] Analogy: A4L_CHAN_AREF_* and AREF_* and other macros

2010-03-29 Thread Daniele Nicolodi
Hello Alexis, I have noticed that in Analogy headers there are two sets of macros to define channels references, one with prefix A4L_CHAN_AREF_ and the other with prefix AREF_. I think keeping both is confusing and dangerous, because similar symbols are defined with different numerical values! Th

[Xenomai-core] Analogy: improve a4l_find_range()

2010-03-29 Thread Daniele Nicolodi
Hello Alexis, I wrote a small patch to improve a4l_find_range(). As many every other functions expect to have the range specified as its idx into the struct describing the subdevice it is useful have it returned from a4l_find_range(). I also made returning a pointer to the range struncture optiona

Re: [Xenomai-core] [announce] Xenomai v2.5.2

2010-03-29 Thread Roland Stigge
Hi! Gilles Chanteperdrix wrote: > here comes Xenomai v2.5.2, codenamed "Souls Of Distortion" available > from Xenomai download area: > http://download.gna.org/xenomai/stable/xenomai-2.5.2.tar.bz2 Cool, thanks! I'm attaching a patch from Debian. I needed to introduce it because without it, --with

Re: [Xenomai-core] Analogy: cancel ongoing commands when a device is closed

2010-03-29 Thread Daniele Nicolodi
Alexis Berlemont wrote: > Daniele Nicolodi wrote: >> After fixing analogy to permit continuous acquisition, I discovered that >> ongoing commands are not canceled when a device is closed (I obtain a >> DMA buffer owerwrite warning in the kernel log when I abruptly terminate >> my acquisition progr

Re: [Xenomai-core] [PULL REQUEST] analogy: bug fixes

2010-03-29 Thread Daniele Nicolodi
Alexis Berlemont wrote: > There is a bug in cmd_write and cmd_read. I have should have taken > into account the buffers edges. I will fix it. The function > a4l_mark_bufrw() is not designed to handle boundaries, that is why its > arguments represent data size not addresses. That makes sense. I can

Re: [Xenomai-core] Bug in a4l_get_chan

2010-03-29 Thread Daniele Nicolodi
Alexis Berlemont wrote: > Daniele Nicolodi wrote: >> Hello Alexis, >> >> I found that a4l_get_chan() in buffer.c does not work for subdevices >> that use a global channels description struct (mode = >> A4L_CHAN_GLOBAL_CHANDESC in the a4l_chdesc_t structure). > However, with your accurate descripti