From: Florian Fainelli <f.fainelli@gmail.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media <linux-media@vger.kernel.org>,
dri-devel@lists.freedesktop.org
Subject: Re: Update on the CEC API
Date: Mon, 08 Oct 2012 17:06:20 +0200 [thread overview]
Message-ID: <2013064.dUp2SJ3pm9@flexo> (raw)
In-Reply-To: <201209271633.30812.hverkuil@xs4all.nl>
Hi Hans,
On Thursday 27 September 2012 16:33:30 Hans Verkuil wrote:
> Hi all,
>
> During the Linux Plumbers Conference we (i.e. V4L2 and DRM developers) had a
> discussion on how to handle the CEC protocol that's part of the HDMI
standard.
>
> The decision was made to create a CEC bus with CEC clients, each represented
> by a /dev/cecX device. So this is independent of the V4L or DRM APIs.
>
> In addition interested subsystems (alsa for the Audio Return Channel, and
> possibly networking as well for ethernet over HDMI) can intercept/send CEC
> messages as well if needed. Particularly for the CEC additions made in
> HDMI 1.4a it is no longer possible to handle the CEC protocol completely in
> userspace, but part of the intelligence has to be moved to kernelspace.
What kind of "intelligence" are you talking about? I see nothing in HDMI 1.4a
or earlier that requires doing stuff in kernelspace besides managing control to
the hardware, but I might be missing something.
In my opinion ARC is just a control mechanism, and can be dealt with in user-
space, since you really want to just have hints about when ARC is
enabled/disabled to take appropriate actions on the audio outputs or your
system.
>
> I've started working on this API but I am still at the stage of playing
> around with it and thinking about the best way this functionality should
> be exposed. At least I managed to get the first CEC packets transferred
> today :-)
>
> It will probably be a few weeks before I post something, but in the meantime
> if you want to use CEC and have certain requirements that need to be met,
> please let me know. If only so that I can be certain I haven't forgotten
> anything.
Here is my wish-list, if I may:
- allow for a CEC adapter to be in "detached" / "attached" mode, particularly
useful if the hardware doing CEC can process a basic set of messages to act a
a global wake-up source for the system
- allow for a CEC adapter to define several receive modes: unicast and
"promiscuous", which is useful for dumping the CEC bus messages
- make the CEC adapter API asynchronous for the data path, so it is easy for a
driver to report completion of a successfully transmitted/received CEC frame
Thank you!
--
Florian
next parent reply other threads:[~2012-10-08 15:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201209271633.30812.hverkuil@xs4all.nl>
2012-10-08 15:06 ` Florian Fainelli [this message]
2012-10-08 15:49 ` Update on the CEC API Hans Verkuil
2012-10-08 17:45 ` Florian Fainelli
2012-10-09 21:27 ` Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2013064.dUp2SJ3pm9@flexo \
--to=f.fainelli@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox