public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: Luca Santini <luca.santini-wNesuFfO2Ajz1n+OaKNE4w@public.gmane.org>
Cc: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
Subject: Re: tvp5150 new style i2c driver
Date: Sat, 20 Sep 2008 11:36:29 +0200	[thread overview]
Message-ID: <20080920113629.08986320@hyperion.delvare> (raw)
In-Reply-To: <48D4BDF9.8050003-wNesuFfO2Ajz1n+OaKNE4w@public.gmane.org>

On Sat, 20 Sep 2008 11:10:17 +0200, Luca Santini wrote:
> Oh... ok. Some example? glue code beetween the codec and...?

I am not aware of an example (of embedded platform with a video decoder
chip on a generic I2C bus) in the kernel at this point. But it
shouldn't be too different from regular v4l code. The only difference
being that the I2C bus code will be in a separate module, so you need
to get a reference to the i2c_adapter your chip is on. Presumably you
know the bus numbers in advance so you should be able to use
i2c_get_adapter() for that.

> can i bypass v4l ?

You can certainly bypass v4l if you want. It might make sense if you
can't afford the overhead. But on the other hand, implementing the
standard v4l interface has the huge benefit that you can then use all
the standard tools, and I doubt the overhead is that much.

> (...)
> My short-term goal is only initialize the codec and set the input
> source to composite ('sources' was in this sense.).
> I think  - as a quick and dirty solution - i'll copy the init code
> from the kernel driver and do this in userspace using /dev/i2c-X
> interface. But that's very ugly... ...but on the other hand i
> don't need (and i don't know how to use) a full v4l interface...

Using i2c-dev should work fine, even though I agree it's not
particularly elegant.

-- 
Jean Delvare

_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c

  parent reply	other threads:[~2008-09-20  9:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-19 15:30 tvp5150 new style i2c driver Luca Santini
     [not found] ` <48D3C5A3.3080802-wNesuFfO2Ajz1n+OaKNE4w@public.gmane.org>
2008-09-19 20:26   ` Jean Delvare
     [not found]     ` <48D41902.9020804@spesonline.com>
     [not found]       ` <48D41902.9020804-wNesuFfO2Ajz1n+OaKNE4w@public.gmane.org>
2008-09-20  8:16         ` Jean Delvare
     [not found]           ` <20080920101623.791ed72f-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-09-20  9:10             ` Luca Santini
     [not found]               ` <48D4BDF9.8050003-wNesuFfO2Ajz1n+OaKNE4w@public.gmane.org>
2008-09-20  9:36                 ` Jean Delvare [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-09-19  6:33 need soem help realter to I2C client kalhan trisal
2008-09-19 12:42 ` Jean Delvare
     [not found]   ` <20080919144231.780fb37a-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-09-19 13:04     ` tvp5150 new style i2c driver Luca Santini
     [not found]       ` <48D3A36D.1090001-wNesuFfO2Ajz1n+OaKNE4w@public.gmane.org>
2008-09-19 13:23         ` Jean Delvare
2008-09-19 15:04     ` Luca Santini
     [not found]       ` <48D3BF65.1020201-wNesuFfO2Ajz1n+OaKNE4w@public.gmane.org>
2008-09-19 15:25         ` Jean Delvare
2008-09-19 15:27     ` Luca Santini

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=20080920113629.08986320@hyperion.delvare \
    --to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
    --cc=i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org \
    --cc=luca.santini-wNesuFfO2Ajz1n+OaKNE4w@public.gmane.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