maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Using of OMAP ISP Resizer module (https://talk.maemo.org/showthread.php?t=59721)

Grinchman 2010-08-04 06:35

Using of OMAP ISP Resizer module
 
Hello!
I built omap_resizer module as explained in http://wiki.maemo.org/Documentation/...o_Kernel_Guide

Then I compiled test program which use omap_resizer module for resize some test image. But omap_resizer module is stuck on function
Code:

wait_for_completion_interruptible(&device_config->compl_isr);
This interrubtible is completed in callback function
Code:

rsz_isr
which sets as callback by calling isp_mod`s function:
Code:

isp_set_callback(fh->dev, CBK_RESZ_DONE, rsz_isr, (void *) NULL,
                                                        (void *)NULL))

As you see, callback is set for event CBK_RESZ_DONE.

But this callback is never being called...

Any ideas?

Grinchman 2010-08-05 08:08

Re: Using of OMAP ISP Resizer module
 
I investigated maemo kernel sources for ISP module. And found that ISP in function isp_set_callback not control CBK_RESZ_DONE event! They contol only CBK_PREV_DONE!!! :confused:
Code:

switch (type) {
        case CBK_PREV_DONE:
                isp_reg_writel(dev, IRQ0ENABLE_PRV_DONE_IRQ,
                              OMAP3_ISP_IOMEM_MAIN, ISP_IRQ0STATUS);
                isp_reg_or(dev, OMAP3_ISP_IOMEM_MAIN, ISP_IRQ0ENABLE,
                          IRQ0ENABLE_PRV_DONE_IRQ);
                break;
        default:
                break;
        }

And now how to use resizer module in maemo without rebuilding kernel with correct isp module? :(


All times are GMT. The time now is 08:20.

vBulletin® Version 3.8.8