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.

DM388: OSD related query

Part Number: DM388

Hello,

   We are using DM388 CSK and IPNC RDK v3.9.1 application. We need to change the functionailty of OSD for text window. We are going to enable it for some specific time and after that disable the text.


   We are facing following problems:

1. We are updating "Source/ipnc_rdk/ipnc_mcfw/mcfw/src_bios6/links_m3vpss/alg/sw_osd/ti_swosd.c" file. In this I added #include<time.h>, #include<signal.h> 

    But during compilation it gives error:

"links_m3vpss/alg/sw_osd/ti_swosd.c", line 5020: error: incomplete type is not allowed
"links_m3vpss/alg/sw_osd/ti_swosd.c", line 5021: error: incomplete type is not allowed
"links_m3vpss/alg/sw_osd/ti_swosd.c", line 5023: error: identifier "timer_t" is undefined
"links_m3vpss/alg/sw_osd/ti_swosd.c", line 5024: error: identifier "sigset_t" is undefined
"links_m3vpss/alg/sw_osd/ti_swosd.c", line 5025: error: incomplete type is not allowed
"links_m3vpss/alg/sw_osd/ti_swosd.c", line 5028: error: identifier "SIGUSR1" is undefined
"links_m3vpss/alg/sw_osd/ti_swosd.c", line 5030: error: identifier "SIGEV_SIGNAL" is undefined
"links_m3vpss/alg/sw_osd/ti_swosd.c", line 5033: error: function "timer_create" declared implicitly
"links_m3vpss/alg/sw_osd/ti_swosd.c", line 5033: error: identifier "CLOCK_REALTIME" is undefined
"links_m3vpss/alg/sw_osd/ti_swosd.c", line 5041: error: function "timer_settime" declared implicitly
"links_m3vpss/alg/sw_osd/ti_swosd.c", line 5022: error: variable "freq_nanosecs" was declared but never referenced

I added this function in the file:

Int32 Swosd_Createtimer()
{

    struct sigevent sev;
    struct itimerspec its;
    long long freq_nanosecs;
    timer_t timerid;
    sigset_t mask;
    struct sigaction sa;


    signal(SIGUSR1, handler);

    sev.sigev_notify = SIGEV_SIGNAL;
    sev.sigev_signo = SIGUSR1;
    sev.sigev_value.sival_ptr = &timerid;
    timer_create(CLOCK_REALTIME, &sev, &timerid);
    /* Start the timer */

    its.it_value.tv_sec = 5;
    its.it_value.tv_nsec = 0;
    its.it_interval.tv_sec = its.it_value.tv_sec;
    its.it_interval.tv_nsec = its.it_value.tv_nsec;

    timer_settime(timerid, 0, &its, NULL);
//    sleep(100);
    return 0;
        
}

and I included time.h and signal.h

Still it is not taking reference.

2. I want to add reference to library -lrt in the makefile for "Source/ipnc_rdk/ipnc_mcfw/mcfw/src_bios6/links_m3vpss/alg/sw_osd/ti_swosd.c". But This is showing invalid during compilation. How to add this library?

Regards,

Amit Soni