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.

Two processes accessing DCE on DRA7xx

Hi,

I have a requirement where two processes needs to be created(each runs on encoding use case). Could you please provide me the following information

1. Is DCE multiinstantiable (can dce_init be done multiple times)

2. If not can I call dce_init() in one process and use the same handle in another process to create the encoding instances

3. If (2) is possible how thread/process safe it is to concurrently access the dce from two different processes?

Thank you inadvance

Regards,

Mahi

3 Replies

  • Can someone please respond for the above query?

    Thank you in advance
    Mahi
  • In reply to Mahi:

    Hi Mahi,
    Refer viddec3test.c, dce_init() is called in decoder_open(). so for dual decode case, dce_init will be called twice.
    You will get same fd and dev in both the cases. Omap-drm will use a refcount to check how many times dce_init is called.
  • In reply to Ramprasad:

    Thanks Ramprasad

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.