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.

[参考译文] Linux/DRA746:DCI_init()之前的 DCE_SET_FD()似乎不能及#39;t。

Guru**** 2553260 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/608427/linux-dra746-dce_set_fd-before-dce_init-seems-doesn-t-take-effort

器件型号:DRA746

工具/软件:Linux

https://git.ti.com/glsdk/omapdrmtest/blobs/master/viddec3test.c#line182

DCE_SET_FD()在 DCE_INIT()之前调用。

http://git.omapzoom.org/?p=repo/libdce.git;a=blob;f=libdce_linux.c;h=43ea740e36e89d2f541aebec1a32de6c73316be7;hb=HEAD#l67

但 DCE_INIT()简单"OmapDrm_FD = drmOpen ("omapdrm"、"platform:omapdrm:00");",不检查 是否 设置了 OmapDrm_FD

看起来很差。

2.在 DCE_init()之前,我是否应该调用 DCE_SET_FD()?

在 GST-plugins-Ducati 中,DCE_SET_FD()之前没有 DCE_INIT()。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!

    我已将您的问题转交给一位专家进行评论。

    此致、
    Yordan
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好 Halley、
    是的,在 DCI_init()中,如果 DCE_GET_FD()返回有效的 FD,然后使用该 FD 创建 OMAP_device,则不会对其进行测试。
    但是 drmOpen 也会获得相同的 FD。 OMAP-DRM 驱动程序管理参考计数。

    在本例中、drmOpen 将被调用两次。 从 disp_open()开始一次,第二次在 dcp_init()中

    Ramprasad
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    谢谢。