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.

ti816x DVRRDK350 DSP alg osd--about Synchronization and mutual exclusion

Hello:

      DVRRDK350 osd alg : I think the method is just like memory share, but can't find the mutex lock to keep the memory safe.

   recently, I found when A8 use the DSP memeory, the dsp still use the same memory,so the OSD may be not completely.

   is there any method to keep the share memory safe? especially the Dsp share memory!

  • Yes there is no locking of SWOSD graphics plane buffer. If you want to add mutex locking you will have to add

    gateHandle = GateMP_getDefaultRemote()

    key = GateMP_enter(gateHandle)

    -- App update the SWOSD graphics buffer

    GateMP_leave(gateHandle,key)

    You also have to add similar code in /dvr_rdk/mcfw/src_bios6/links_c6xdsp/alg_link/swosd/osdLink_alg.c

    AlgLink_OsdalgProcessFrame()

    Make sure you carefully release the gate whenever you acquire it else system will hang.