devg-rpxlite

Has anyone had any luck working with this driver? I’m seeing a problem
with the mode function get_modelist(). Is this driver another special case?

thanks
Charlie

Charlie_Surface@oti.com wrote:

Has anyone had any luck working with this driver? I’m seeing a problem
with the mode function get_modelist(). Is this driver another special case?

What problem are you seeing? I don’t think there’s anything
special about it. It only supports one mode (640x480x8), so the list
will contain one entry (1234 decimal) followed by the list end marker.

Dave

Thanks for the quick reply. In fact, there is a problem with some of our
code which gets the mode list. We are asking the driver for two mode
entries, so it is hanging. I guess we should only be asking for one at a
time.

Charlie

Charlie_Surface@oti.com wrote:

Thanks for the quick reply. In fact, there is a problem with some of our
code which gets the mode list. We are asking the driver for two mode
entries, so it is hanging. I guess we should only be asking for one at a
time.

I’m not sure what you mean. You can’t “ask” for a specific number of
modes; the “size” parameter to get_modelist allows you to specify
the size of the “list” array, to prevent a buffer overflow.

Something to note, which is probably not obvious from the docs, is
that “size” must be at least 2 (it makes sense though, the array
should be big enough to hold at least one mode element, plus
the end of list marker). The rpxlite driver will fail (return -1)
if “size” is less than 2.

Dave