This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am trying to do some prototyping that will use pixel based Alpha Blending on the HDVPSS with the DM8148 EVM and version 5.02.01.59 of the EZSDK. It appears that the HDVPSS driver does not have alpha blending enabled by default and if I attempt to enable it using the following code as spelled out in the HDVPSS users guide it appears that this may be a kernel mode only call.
#include <linux/ti81xxfb.h>
struct ti81xxfb_region_params regp;
/* Enable Pixel Alpha Blending */
if (ioctl(fb_context[i].framebuff_handle, TIFB_GET_PARAMS, ®p) < 0)
{
printf ("Error getting TIFB Params\n");
close(fb_context[i].framebuff_handle);
return NULL;
}
/*Set Pixel Alpha Blending*/
regp.blendtype = TI81XXFB_BLENDING_PIXEL;
if (ioctl(fb_context[i].framebuff_handle, TIFB_SET_PARAMS, ®p) < 0)
{
printf ("Error setting TIFB Params\n");
close(fb_context[i].framebuff_handle);
return NULL;
}
Is there a way to call this IOCTL from user mode? If not can I enable pixel based alpha blending without rebuilding vpss.ko and ti81xxfb.ko?
Thanks,
Kurt
Thank you for confirming that the IOCTL is for user space use.
I was already opening the frame buffer and doing all the standard procedures to handle it. However, I did figure out what the problem was on my own. The TIFB_GET_PARAMS and TIFB_SET_PARAMS IOCTLs are only supported on fb0 and I was trying to call them on fb1.
Thanks,
Kurt
Hi,
All the ioctls are supported on all the /dev/fbx nodes. You need to allocate memory for fb1 to make it effective. Please load ti81xxfb.ko with following command. After which you will be able to use /dev/fb1 node also with all above ioctls.
insmod ti81xxfb.ko vram=0:16M,1:16M,2:16M
Regards,
Hardik Shah
No, the ioctls are common for all /dev/fbx node, by default, dirver only allocate the memroy for /dev/fb0. if /dev/fb1 is used, please be sure to allocate the memory for it when loading ti81xxfb.ko
insmod ti81xxfb.ko vram=1:xxM
Regards,
yihe