-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with "HDMI CEC framework" support in mainline Linux 4.8 kernel and later? #67
Comments
I've seen the discussion on the kernel thread and I've signed up to the mailing list so I can respond, as soon as someone posts something there. Couldn't find a proper way to comment to it when not signed up last week end, but might have missed it :) I've taken a look at the implementation, and half of it is good: the promiscuous mode that got added, which will indeed allow interfacing with libCEC if done right. Patches to support it are welcome once it enters the kernel. The other half, trying to process key presses directly in the kernel, not so much:
So, in short, "promiscuous mode" as they call it, is good, if it only does the following:
This is the same as the implementations for the Raspberry Pi, TDA995x and Exynos (the current implementation) do. All the rest should not be done in the kernel. And if someone who's subscribed to the linux-media mailing list (@anssih or @FernetMenta perhaps?) could post a response to http://lists.freedesktop.org/archives/dri-devel/2015-March/079696.html with this, or tell me how to respond there when I wasn't signed up before the message was posted, then that would be great. |
@opdenkamp Maybe just mail the main two developers directly with your feedback? "Kamil Debski" [email protected] "Hans Verkuil" [email protected] Like it that multiple applications can send CEC commands to the same API/client. |
FYI, "Hans Verkuil" [email protected] is now on his seventh revision of this patch series |
FYI, Hans Verkuil is still working on this and is now on his 13th version of this patch series: https://patchwork.linuxtv.org/project/linux-media/list/?submitter=676&archive=both&state=* The patch is now also devided into seventeen parts. |
I got aware of a new cec driver in an unreleased amlogic kernel for android. I will write an adapter for libcec for any implementation I will get hands on first. As my development environment is OpenELEC/LibreELEC and my current hardware is Wetek Play/Core and Odroid C2, I have to wait till it will show up on them. |
You could try contacting the developers, Hans Verkuil (a.k.a. hverkuil), either mail directly to Hans Verkuil [email protected] / [email protected] and Kamil Debski [email protected]/ [email protected] or via linuxtv.org mailing-list. I understand that as reference hardware he and Kamil Debski [email protected] is at present using Samsung Exynos range of SoCs for testing this CEC framework. Guess that means ODROID U & X series from Hardkernel, such as the ODROID-XU4 http://www.hardkernel.com/main/products/prdt_info.php?g_code=G143452239825 Not sure if OpenELEC is already supported on ODROID-XU4 or not(?). |
If the Exynos driver is the reference, then no activity is necessary as there is already an adapter for Exynos in the libcec. OpenELEC doesn't support Odroid U & X. As far as I know the OpenELEC team doesn't own one of this devices. |
You might want to checkout this v4l2-subdev patch, maybe LibCEC could be implemented through it? https://patchwork.linuxtv.org/patch/33526/ While Exynos seems to be the reference they still look to be working on other hardware too, see patches: https://patchwork.linuxtv.org/project/linux-media/list/?submitter=676&archive=both&state=* There are seperate CEC adapters for Cobalt, Exynos, Vivid, ADV7511, ADV7604, and ADV7842 drivers. |
That looks strange, receiving cec messages by ioctl calls? Seems not to have something in common with the old exynos driver. |
@opdenkamp FYI: Linux 4.8 release finally include this HDMI-CEC framework in the mainline kernel. http://www.phoronix.com/scan.php?page=news_item&px=HDMI-CEC-Linux-4.8 Details on the framework in this PDF: http://events.linuxfoundation.org/sites/events/files/slides/cec-wide_1.pdf Full development changelog here: https://lwn.net/Articles/685756/ Developers contributions here: |
Nice video from the Embedded Linux Conference with Hans Verkuil on this HDMI CEC implementation: |
For 4.10, the framework and drivers are moved out of staging. Is there a plan on how libcec should use/co-exist with this? Or is the plan just to ignore it? |
The plan is to use it's raw mode for libCEC, but that'll be something for the next major release of libCEC |
Hi, are there any news about integrating with the Linux CEC Framework? |
It's going to take some time because unfortunately. Too many other things that need to be done ;) |
Hello fellows, Is there any progress on this new feature request? This is the only feature that does not work in Kodi on Gentoo Linux on raspberry pi 3B that makes no use of any proprietary broadcom drivers/firmware. Kodi development seems to have no interest into implementing direct CEC calls in their software to the new kernel framework, thus use of libcec will remain required. I can do code testing if needed. Cheers, |
Hallo, |
Excellent, I have tested it and it does implement the required functionality successfully! See: |
@opdenkamp any more thoughts on the Linux kernel's HDMI CEC framework and an libcec adapter? |
merged now #380 |
@opdenkamp Very cool! Does that mean that we will see a libcec 5.0.x release in the near future? ...and hay look! Almost on the 5th year anniversary of this feature request too! ;) |
yes, but there will also be a 4.x release that includes it |
Update! Linux 4.8 release finally include this HDMI-CEC framework in the mainline kernel.
http://www.phoronix.com/scan.php?page=news_item&px=HDMI-CEC-Linux-4.8
Details on the framework in this PDF:
http://events.linuxfoundation.org/sites/events/files/slides/cec-wide_1.pdf
HDMI CEC Framework project was revived for the Linux Kernel, read some history here:
http://lists.freedesktop.org/archives/dri-devel/2015-March/079678.html
http://www.phoronix.com/scan.php?page=news_item&px=HDMI-CEC-Framework-Linux
http://www.phoronix.com/scan.php?page=news_item&px=MTIwMTk
http://lists.freedesktop.org/archives/dri-devel/2012-October/028716.html
Question is if libCEC can be supported through this framework too? See:
https://hverkuil.home.xs4all.nl/cec.html#cec-api
This new CEC API uses a CEC bus with CEC clients.
Guess this means that LibCEC could be a CEC client usable via this API?
PS: Looks like this "HDMI CEC framework" is sponsored by Samsung & Cisco.
At least the main developers are "Kamil Debski"[email protected] / Kamil Debski [email protected] and "Hans Verkuil" [email protected] / "Hans Verkuil" [email protected]
http://lists.freedesktop.org/archives/dri-devel/2015-March/thread.html#79678
http://lists.freedesktop.org/archives/dri-devel/2015-March/079679.html
http://lists.freedesktop.org/archives/dri-devel/2015-March/079680.html
http://lists.freedesktop.org/archives/dri-devel/2015-March/079681.html
http://lists.freedesktop.org/archives/dri-devel/2015-March/079682.html
http://lists.freedesktop.org/archives/dri-devel/2015-March/079683.html
http://lists.freedesktop.org/archives/dri-devel/2015-March/079684.html
http://lists.freedesktop.org/archives/dri-devel/2015-March/079685.html
http://lists.freedesktop.org/archives/dri-devel/2015-March/079686.html
http://lists.freedesktop.org/archives/dri-devel/2015-March/079687.html
The text was updated successfully, but these errors were encountered: