From: Hans Verkuil <hansverk@cisco.com>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: Tomasz Stanislawski <t.stanislaws@samsung.com>,
linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org,
m.szyprowski@samsung.com, kyungmin.park@samsung.com
Subject: Re: [PATCH/RFC 0/5] HDMI driver for Samsung S5PV310 platform
Date: Wed, 9 Feb 2011 09:59:29 +0100 [thread overview]
Message-ID: <201102090959.29732.hansverk@cisco.com> (raw)
In-Reply-To: <AANLkTi=A=HiAvHojWP8HcFXpjXbZpq6UdHjOnWq-8jww@mail.gmail.com>
On Tuesday, February 08, 2011 16:28:32 Alex Deucher wrote:
> On Tue, Feb 8, 2011 at 4:47 AM, Hans Verkuil <hansverk@cisco.com> wrote:
<snip>
> >> The driver supports an interrupt. It is used to detect plug/unplug
events
> > in
> >> kernel debugs. The API for detection of such an events in V4L2 API is to
be
> >> defined.
> >
> > Cisco (i.e. a few colleagues and myself) are working on this. We hope to
post
> > an RFC by the end of this month. We also have a proposal for CEC support
in
> > the pipeline.
>
> Any reason to not use the drm kms APIs for modesetting, display
> configuration, and hotplug support? We already have the
> infrastructure in place for complex display configurations and
> generating events for hotplug interrupts. It would seem to make more
> sense to me to fix any deficiencies in the KMS APIs than to spin a new
> API. Things like CEC would be a natural fit since a lot of desktop
> GPUs support hdmi audio/3d/etc. and are already using kms.
There are various reasons for not going down that road. The most important one
is that mixing APIs is actually a bad idea. I've done that once in the past
and I've regretted ever since. The problem with doing that is that it is
pretty hard on applications who have to mix two different styles of API,
somehow know where to find the documentation for each and know that both APIs
can in fact be used on the same device.
Now, if there was a lot of code that could be shared, then that might be
enough reason to go that way, but in practice there is very little overlap.
Take CEC: all the V4L API will do is to pass the CEC packets from kernel to
userspace and vice versa. There is no parsing at all. This is typically used
by embedded apps that want to do their own CEC processing.
An exception might be a PCI(e) card with HDMI input/output that wants to
handle CEC internally. At that point we might look at sharing CEC parsing
code. A similar story is true for EDID handling.
One area that might be nice to look at would be to share drivers for HDMI
receivers and transmitters. However, the infrastructure for such drivers is
wildly different between how it is used for GPUs versus V4L and has been for
10 years or so. I also suspect that most GPUs have there own HDMI internal
implementation so code sharing will probably be quite limited.
So, no, there are no plans to share anything between the two (except perhaps
EDID and CEC parsing should that become relevant).
Oh, and let me join Andy in saying that the drm/kms/whatever API documentation
*really* needs a lot of work.
Regards,
Hans
next prev parent reply other threads:[~2011-02-09 9:09 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-08 9:30 [PATCH/RFC 0/5] HDMI driver for Samsung S5PV310 platform Tomasz Stanislawski
2011-02-08 9:30 ` [PATCH 1/5] i2c-s3c2410: fix I2C dedicated for hdmiphy Tomasz Stanislawski
2011-02-09 7:14 ` Kukjin Kim
2011-02-08 9:30 ` [PATCH 2/5] universal: i2c: add I2C controller 8 (HDMIPHY) Tomasz Stanislawski
2011-02-09 6:54 ` Kukjin Kim
2011-02-08 9:30 ` [PATCH 3/5] v4l: add macro for 1080p59_54 preset Tomasz Stanislawski
2011-02-08 9:30 ` [PATCH 4/5] s5p-tv: add driver for HDMI output on S5PC210 platform Tomasz Stanislawski
2011-02-08 9:30 ` [PATCH 5/5] s5pc210: add s5p-tv to platform devices Tomasz Stanislawski
2011-02-09 6:40 ` Kukjin Kim
2011-02-08 9:47 ` [PATCH/RFC 0/5] HDMI driver for Samsung S5PV310 platform Hans Verkuil
2011-02-08 10:08 ` Marek Szyprowski
2011-02-08 15:28 ` Alex Deucher
2011-02-08 22:47 ` Andy Walls
2011-02-09 7:12 ` Alex Deucher
2011-02-09 19:00 ` Matt Turner
2011-02-09 19:43 ` Hans Verkuil
2011-02-09 23:59 ` Alex Deucher
2011-02-10 0:51 ` Andy Walls
2011-02-12 18:38 ` Alex Deucher
2011-02-09 8:59 ` Hans Verkuil [this message]
2011-02-09 17:55 ` Alex Deucher
2011-02-09 18:45 ` Corbin Simpson
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=201102090959.29732.hansverk@cisco.com \
--to=hansverk@cisco.com \
--cc=alexdeucher@gmail.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=t.stanislaws@samsung.com \
/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