Jump to content

jernej

Members
  • Posts

    1145
  • Joined

  • Last visited

Posts posted by jernej

  1. I have found the cause of the problem with turning TV off and on. On reconnect init_hdmi is called and it overwrites two registers needed for my driver. I'm not sure how to fix it. Change the hdmi_init so that it wouldn't overwrite the registers or let the driver somehow know that it has to reset the registers.

     

    Maybe something like this: https://transfer.sh/12Ss3a/linux-011-disp2-keep-cec-signals.patch

    It preserves HDMI_CEC_MASK and HDMI_CEC_MASK, doesn't make software reset in HDMI_MC_SWRSTZ register and doesn't disable clock in HDMI_MC_CLKDIS register. Only question remains if register at address 0x10020 could hurt this or not.

  2. Uh, I was wondering what's that for. I didn't think it could be directly connected to CEC :wacko:

     

    Currently I can't help you much. Maybe in a few days?

     

    EDIT: Which registers exactly?

    EDIT2: I see, I think it would be safe to call this function only at driver init, at least that mainline driver does. I will test once I will have time.

  3. Continuation from here: http://forum.armbian.com/index.php/topic/1380-h3-kernel-repo/?p=10663
     

     

    Yes. Mali is just the 3D engine. But afaik you can at least display the frame with an EGL window (native or X based).

    For rendering it should be possible to use the vdpau presentation queue API or use the display ioctls directly in the app...

    Depends... In case of Kodi, i'm a friend of adapting libvdpau-sunxi  to imitate the nvidia/gl interoperation as near as possible to the spec. Just using neither nvidia nor gl but sunxi and gles ;) It is and will always be a hack, because vdpau is not intended to work on ARM at all.

    But If we can achieve this, the adaptions within e.g. kodi should be not that big. I have some minor success with nv_gles_interop and VDR (www.tvdr.de) already. But now we really get offtopic :P

     

    Regards rellla

     

    Interesting, it seems that even Tegra doesn't have VDPAU support. I concur that gles interop is most portable one, but it's not the most efficient, at least for H3. Maybe we could support both, presentation queue api and gles interop, with a switch in settings. Then both could be evaluated.

     

    I saw some problems mentioned in regards of bandwidth capabilities on A10 (or A20?). Do you know what was that about? HW scaling and compositing is not possible at FullHD resolution? Could Mali mitigate the issue?

  4. It seems that bluetooth is present on AP6210 but unfortunatelly not connected to SoC (based on fex file).

     

    There might be easier way to make this driver work. ap6210 and ap6212 folders could be merged to one (for example, /lib/firmware/bcmdhd) and nvram.txt files renamed to something like nvram_ap6210.txt and nvram_ap6212.txt Then kernel config should be fixed to point to this merged folder. After module is rebuild, we could load bcmdhd based on board with only

    modprobe bcmdhd nvram_path=/lib/firmware/bcmdhd/nvram_ap6210.txt
    

    for example...

  5. Firmware is missing. Extract https://transfer.sh/h6nda/ap6210.tar.xzto /lib/firmware so you will have /lib/firmware/ap6210 folder. Then unload bcmdhd driver if it is already loaded and load it with following command:

    modprobe bcmdhd firmware_path=/lib/firmware/ap6210/bcmdhd.bin nvram_path=/lib/firmware/ap6210/nvram.txt
    

    NOTE: Download link will be valid only for 14 days, but until then it will be fixed, I guess.

  6. @Melanrz,

    no, it works without board modifications. That is the beauty of it.

     

    @jodamm,

    while I couldn't test it due to bad TV CEC support but others did and they report that everything works if TV is already on. Once you turn off and on again TV, it stops working. I compared your kernel code with the imx6 one and I noticed that your code doesn't have "HDMI cable connect/disconnect" hooks. Do you think that is the reason?

  7. I will port it, no problem. Currently it doesn't apply cleanly due to a newer driver used, but there isn't much to fix. Just out of curiosity - wouldn't be better to use libvdpau-sunxi presentation framework for rendering? Mali was not designed for rendering/scaling/compositing video, especially for 4K, while Display Engine 2.0 (H3 video driver) used in libvdpau-sunxi is designed exactly for that.

  8. Just a few small observations:

    1. Could you change SUNXI_ADAPTER_PID to something else? On systems with imx6 patches also applied, libcec crashes (OpenELEC).

    2. Your kernel patch from server doesn't apply cleanly due to different end of line marker. Patch downloaded from github works, though.

    3. Documentation has a typo. It suggests using "cmake -DHAVE_SUNXI_LIB=1 .." while it should "cmake -DHAVE_SUNXI_API=1 .."

     

    Great job otherwise! I will test it tomorrow hopefully.

  9. rellla,

    I think you are right about subtitle rendering. pixman issue should not affect Kodi.

     

    I'm not yet in the contact with mosterta, but I guess it would be beneficial. There are some parts in the code, which seems to render image once through vdpau and once through gles... But this is off topic here. H3 kernel has some issues with sound, which should be resolved first, I guess.

     

    The problem with userspace mali r4p0 blobs is that they don't have clear usage license. Whitewind has them on github without any info where they came from. I and some others suspect that Steven/Xunlong provided them on forum or through e-mail, but that has to be confirmed.

     

    @Igor, can you ask Steven about those mali drivers? Forum thread is extremely long...

  10. You have done similar thing that is done in the patches. One patch "forbids" using 24 bit sound output and other properly founds all sound outputs and mark sndhdmi output as HDMI audio output (it is threated a bit in a special way, like enabled passthrough and other things). This is as far as you can get without patching. HW video decoding needs some changes, on which I intend to work in the future.

  11. Thanks for at least some encouragement :) While you (tkaiser) are absolutely focused on headless systems, others might be on desktop/graphics. So at least for them this will be interesting for a while. I will join you with maintaining desktop version shortly. If I want to make Kodi working with libvdpau-sunxi, Armbian is much nicer platform to develop on and I can help you with squashing some bugs in the meantime. Currently I'm a bit short on time, but I will contribute for sure.

  12. Actually, white RCA connector has also wrong ground connection. It would be better to fix in on 3.5 mm side - somehow switch parts marked 3 and 4. If you have some soldering skills it would be easier just to buy 4 pole 3.5 mm connectors (male and female) and make an adapter cable... Or just buy a proper cable. It goes under name "Apple iBook AV cable" or some others mentioned here: http://anythingbutipod.com/2006/04/zen-vision-m-video-cable-other-4pole-35mm-pinouts/

  13. If you bought TV cable from Xunlong, I must disappoint you that you have wrong cable - ground and TV signal are inverted which means that you might get picture only if you try to gently pull out connector for few milimeteres, but definetly no sound, because instead of ground, you have TV signal there which completely scrambles the sound.

     

    Image which I show you means that if you measure conductivity with a multimeter, all rings on RCA connector (don't know how to call it) should be connected to "4" on 3.5 mm jack. Xunlong cable has those rings connected to "3" on 3.5 mm jack. You should check that.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines