All of lore.kernel.org
 help / color / mirror / Atom feed
* About some sensor drivers in mc5602 gspca driver
@ 2009-08-09  7:57 Dongsoo, Nathaniel Kim
       [not found] ` <4A7E86DF.1070901@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread
From: Dongsoo, Nathaniel Kim @ 2009-08-09  7:57 UTC (permalink / raw)
  To: v4l2_linux
  Cc: erik.andren, moinejf, Verkuil, Hans, 김, 동수,
	김, 형준, 박, 경민

Hello,

It has been years I've working on linux multimedia drivers, but what a
shame I found that there were already sensor drivers that I've already
implemented. Precisely speaking, soc camera devices from Samsung named
s5k4aa* and s5k83a* were already in Linux kernel and even seems to
have been there for years.
But a thing that I'm curious is those drivers are totally mc602 and
gspca oriented. So some users who are intending to use those samsung
camera devices but not using gspca and mc5602 H/W have to figure out
another way.
As you know, the s5k* camera devices are actually ISP devices which
are made in SoC device and can be used independently with any kind of
ITU or MIPI supporting host devices.
However, I see that gspca and mc5602 have their own driver structure
so it seems to be tough to split out the sensor drivers from them.
So, how should we coordinate our drivers if a new s5k* driver is
getting adopted in the Linux kernel? different version of s5k* drivers
in gspca and subdev or gspca also is able to use subdev drivers?
I am very willing to contribute several drivers for s5k* soc camera
isp devices and in the middle of researching to prepare for
contribution those s5k* drivers popped up.
Please let me know whether it is arrangeable or not.
Cheers,

Nate

-- 
=
DongSoo, Nathaniel Kim
Engineer
Mobile S/W Platform Lab.
Digital Media & Communications R&D Centre
Samsung Electronics CO., LTD.
e-mail : dongsoo.kim@gmail.com
          dongsoo45.kim@samsung.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: About some sensor drivers in mc5602 gspca driver
       [not found] ` <4A7E86DF.1070901@gmail.com>
@ 2009-08-09  8:28   ` Erik Andrén
  2009-08-09 11:02     ` Dongsoo, Nathaniel Kim
  2009-08-09  8:44   ` Hans Verkuil
  1 sibling, 1 reply; 6+ messages in thread
From: Erik Andrén @ 2009-08-09  8:28 UTC (permalink / raw)
  To: Linux Media Mailing List

Erik Andrén wrote:
> 
> Dongsoo, Nathaniel Kim wrote:
>> Hello,
>>
>> It has been years I've working on linux multimedia drivers, but what a
>> shame I found that there were already sensor drivers that I've already
>> implemented. Precisely speaking, soc camera devices from Samsung named
>> s5k4aa* and s5k83a* were already in Linux kernel and even seems to
>> have been there for years.
>> But a thing that I'm curious is those drivers are totally mc602 and
>> gspca oriented. So some users who are intending to use those samsung
>> camera devices but not using gspca and mc5602 H/W have to figure out
>> another way.
>> As you know, the s5k* camera devices are actually ISP devices which
>> are made in SoC device and can be used independently with any kind of
>> ITU or MIPI supporting host devices.
>> However, I see that gspca and mc5602 have their own driver structure
>> so it seems to be tough to split out the sensor drivers from them.
>> So, how should we coordinate our drivers if a new s5k* driver is
>> getting adopted in the Linux kernel? different version of s5k* drivers
>> in gspca and subdev or gspca also is able to use subdev drivers?
>> I am very willing to contribute several drivers for s5k* soc camera
>> isp devices and in the middle of researching to prepare for
>> contribution those s5k* drivers popped up.
>> Please let me know whether it is arrangeable or not.
>> Cheers,
>>
> 
> Hi Nathaniel,
> The sensor sharing question pops up now and then and I'm sure that
> if you search the mailing list archive you can find several threads
> discussing this.
> IIRC the main problem is that in an usb webcam consisting of a
> sensor and an usb bridge. The sensor is often configured in a very
> specific way tied to the particular usb bridge. It is also common
> that much of the initialization is reverse engineered and that we
> may have little or no understanding what we're actually doing.
> (Often just mimicing a windows webcam driver).
> I think the conclusion reached now is that it's not worth the effort
> considering that the sensors usually don't need that much setup to
> get working. Of course this may need to be reevaluated from time to
> time. If someone could device a clever solution I would be all for
> trying to create some kind of driver sharing.
> 
> In the gspca-m5602-s5k* case everything is reverse-engineered, as I
> don't possess any datasheets of the ALi m5602 nor the s5k83a,
> s5k4aa. I would be much happy if you Samsung folks would be able to
> provide with me with datasheets for the s5k* sensors.
> 
> Best regards,
> Erik
> 
Resending due to UTF-8 fail.


>> Nate
>>
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: About some sensor drivers in mc5602 gspca driver
       [not found] ` <4A7E86DF.1070901@gmail.com>
  2009-08-09  8:28   ` Erik Andrén
@ 2009-08-09  8:44   ` Hans Verkuil
  2009-08-09 11:13     ` Dongsoo, Nathaniel Kim
  1 sibling, 1 reply; 6+ messages in thread
From: Hans Verkuil @ 2009-08-09  8:44 UTC (permalink / raw)
  To: Erik Andrén
  Cc: Dongsoo, Nathaniel Kim, v4l2_linux, moinejf, 동수,
	형준, 경민, Hans de Goede

On Sunday 09 August 2009 10:20:47 Erik Andrén wrote:
> 
> Dongsoo, Nathaniel Kim wrote:
> > Hello,
> > 
> > It has been years I've working on linux multimedia drivers, but what a
> > shame I found that there were already sensor drivers that I've already
> > implemented. Precisely speaking, soc camera devices from Samsung named
> > s5k4aa* and s5k83a* were already in Linux kernel and even seems to
> > have been there for years.
> > But a thing that I'm curious is those drivers are totally mc602 and
> > gspca oriented. So some users who are intending to use those samsung
> > camera devices but not using gspca and mc5602 H/W have to figure out
> > another way.
> > As you know, the s5k* camera devices are actually ISP devices which
> > are made in SoC device and can be used independently with any kind of
> > ITU or MIPI supporting host devices.
> > However, I see that gspca and mc5602 have their own driver structure
> > so it seems to be tough to split out the sensor drivers from them.
> > So, how should we coordinate our drivers if a new s5k* driver is
> > getting adopted in the Linux kernel? different version of s5k* drivers
> > in gspca and subdev or gspca also is able to use subdev drivers?
> > I am very willing to contribute several drivers for s5k* soc camera
> > isp devices and in the middle of researching to prepare for
> > contribution those s5k* drivers popped up.
> > Please let me know whether it is arrangeable or not.
> > Cheers,
> > 
> 
> Hi Nathaniel,
> The sensor sharing question pops up now and then and I'm sure that
> if you search the mailing list archive you can find several threads
> discussing this.
> IIRC the main problem is that in an usb webcam consisting of a
> sensor and an usb bridge. The sensor is often configured in a very
> specific way tied to the particular usb bridge. It is also common
> that much of the initialization is reverse engineered and that we
> may have little or no understanding what we're actually doing.
> (Often just mimicing a windows webcam driver).
> I think the conclusion reached now is that it's not worth the effort
> considering that the sensors usually don't need that much setup to
> get working. Of course this may need to be reevaluated from time to
> time. If someone could device a clever solution I would be all for
> trying to create some kind of driver sharing.

Basically any gspca driver that can set registers in the i2c device
(as opposed to only replaying USB commands) can be modified so the i2c
part can be split off into a regular sub-device driver. I've discussed
this in the past with Hans de Goede and that is definitely the way to go.

> In the gspca-m5602-s5k* case everything is reverse-engineered, as I
> don't possess any datasheets of the ALi m5602 nor the s5k83a,
> s5k4aa. I would be much happy if you Samsung folks would be able to
> provide with me with datasheets for the s5k* sensors.

Looking at the code I'd say that it should be possible to implement an
i2c_adapter in m5602_core.c, and when that's in place the various sensor
drivers can be gradually split off into generic subdev drivers. Which is
of course ever so much easier if the datasheets are available :-)

For this particular bridge driver I strongly suggest that this approach
is taken since there are already duplicate sensor drivers here (mt9m111).

Regards,

	Hans

> 
> Best regards,
> Erik
> 
> > Nate
> > 
> 
> 



-- 
Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: About some sensor drivers in mc5602 gspca driver
  2009-08-09  8:28   ` Erik Andrén
@ 2009-08-09 11:02     ` Dongsoo, Nathaniel Kim
  0 siblings, 0 replies; 6+ messages in thread
From: Dongsoo, Nathaniel Kim @ 2009-08-09 11:02 UTC (permalink / raw)
  To: Erik Andrén; +Cc: Linux Media Mailing List

On Sun, Aug 9, 2009 at 5:28 PM, Erik Andrén<erik.andren@gmail.com> wrote:
> Erik Andrén wrote:
>>
>> Dongsoo, Nathaniel Kim wrote:
>>> Hello,
>>>
>>> It has been years I've working on linux multimedia drivers, but what a
>>> shame I found that there were already sensor drivers that I've already
>>> implemented. Precisely speaking, soc camera devices from Samsung named
>>> s5k4aa* and s5k83a* were already in Linux kernel and even seems to
>>> have been there for years.
>>> But a thing that I'm curious is those drivers are totally mc602 and
>>> gspca oriented. So some users who are intending to use those samsung
>>> camera devices but not using gspca and mc5602 H/W have to figure out
>>> another way.
>>> As you know, the s5k* camera devices are actually ISP devices which
>>> are made in SoC device and can be used independently with any kind of
>>> ITU or MIPI supporting host devices.
>>> However, I see that gspca and mc5602 have their own driver structure
>>> so it seems to be tough to split out the sensor drivers from them.
>>> So, how should we coordinate our drivers if a new s5k* driver is
>>> getting adopted in the Linux kernel? different version of s5k* drivers
>>> in gspca and subdev or gspca also is able to use subdev drivers?
>>> I am very willing to contribute several drivers for s5k* soc camera
>>> isp devices and in the middle of researching to prepare for
>>> contribution those s5k* drivers popped up.
>>> Please let me know whether it is arrangeable or not.
>>> Cheers,
>>>
>>
>> Hi Nathaniel,
>> The sensor sharing question pops up now and then and I'm sure that
>> if you search the mailing list archive you can find several threads
>> discussing this.
>> IIRC the main problem is that in an usb webcam consisting of a
>> sensor and an usb bridge. The sensor is often configured in a very
>> specific way tied to the particular usb bridge. It is also common
>> that much of the initialization is reverse engineered and that we
>> may have little or no understanding what we're actually doing.
>> (Often just mimicing a windows webcam driver).
>> I think the conclusion reached now is that it's not worth the effort
>> considering that the sensors usually don't need that much setup to
>> get working. Of course this may need to be reevaluated from time to
>> time. If someone could device a clever solution I would be all for
>> trying to create some kind of driver sharing.
>>
>> In the gspca-m5602-s5k* case everything is reverse-engineered, as I
>> don't possess any datasheets of the ALi m5602 nor the s5k83a,
>> s5k4aa. I would be much happy if you Samsung folks would be able to
>> provide with me with datasheets for the s5k* sensors.
>>
>> Best regards,
>> Erik
>>
> Resending due to UTF-8 fail.
>

Hi Erik,

As a matter of fact I registered at samsungsemi website as a developer
and could get access to restricted domain of devices of samsung system
lsi. It might look odd, but I work in samsung electronics but not in
the system lsi division therefor I am almost treated like other
developers as well. But one thing might be differ is that I can ask
the person in charge of the device I'm working on about what I'm
curious.
Sometimes I also do reverse engineering thing while making my driver ;-(
But I think that I possess a better position than any other S/W
engineers in developing camera drivers for samsung camera devices.
I'll see what can I do for opensource community as far as I can do.
Cheers

Nate

>
>>> Nate
>>>
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
=
DongSoo, Nathaniel Kim
Engineer
Mobile S/W Platform Lab.
Digital Media & Communications R&D Centre
Samsung Electronics CO., LTD.
e-mail : dongsoo.kim@gmail.com
          dongsoo45.kim@samsung.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: About some sensor drivers in mc5602 gspca driver
  2009-08-09  8:44   ` Hans Verkuil
@ 2009-08-09 11:13     ` Dongsoo, Nathaniel Kim
  2009-08-09 12:29       ` Hans Verkuil
  0 siblings, 1 reply; 6+ messages in thread
From: Dongsoo, Nathaniel Kim @ 2009-08-09 11:13 UTC (permalink / raw)
  To: Hans Verkuil
  Cc: Erik Andrén, v4l2_linux, moinejf, 동수,
	형준, 경민, Hans de Goede

2009/8/9 Hans Verkuil <hverkuil@xs4all.nl>:
> On Sunday 09 August 2009 10:20:47 Erik Andrén wrote:
>>
>> Dongsoo, Nathaniel Kim wrote:
>> > Hello,
>> >
>> > It has been years I've working on linux multimedia drivers, but what a
>> > shame I found that there were already sensor drivers that I've already
>> > implemented. Precisely speaking, soc camera devices from Samsung named
>> > s5k4aa* and s5k83a* were already in Linux kernel and even seems to
>> > have been there for years.
>> > But a thing that I'm curious is those drivers are totally mc602 and
>> > gspca oriented. So some users who are intending to use those samsung
>> > camera devices but not using gspca and mc5602 H/W have to figure out
>> > another way.
>> > As you know, the s5k* camera devices are actually ISP devices which
>> > are made in SoC device and can be used independently with any kind of
>> > ITU or MIPI supporting host devices.
>> > However, I see that gspca and mc5602 have their own driver structure
>> > so it seems to be tough to split out the sensor drivers from them.
>> > So, how should we coordinate our drivers if a new s5k* driver is
>> > getting adopted in the Linux kernel? different version of s5k* drivers
>> > in gspca and subdev or gspca also is able to use subdev drivers?
>> > I am very willing to contribute several drivers for s5k* soc camera
>> > isp devices and in the middle of researching to prepare for
>> > contribution those s5k* drivers popped up.
>> > Please let me know whether it is arrangeable or not.
>> > Cheers,
>> >
>>
>> Hi Nathaniel,
>> The sensor sharing question pops up now and then and I'm sure that
>> if you search the mailing list archive you can find several threads
>> discussing this.
>> IIRC the main problem is that in an usb webcam consisting of a
>> sensor and an usb bridge. The sensor is often configured in a very
>> specific way tied to the particular usb bridge. It is also common
>> that much of the initialization is reverse engineered and that we
>> may have little or no understanding what we're actually doing.
>> (Often just mimicing a windows webcam driver).
>> I think the conclusion reached now is that it's not worth the effort
>> considering that the sensors usually don't need that much setup to
>> get working. Of course this may need to be reevaluated from time to
>> time. If someone could device a clever solution I would be all for
>> trying to create some kind of driver sharing.
>
> Basically any gspca driver that can set registers in the i2c device
> (as opposed to only replaying USB commands) can be modified so the i2c
> part can be split off into a regular sub-device driver. I've discussed
> this in the past with Hans de Goede and that is definitely the way to go.
>
>> In the gspca-m5602-s5k* case everything is reverse-engineered, as I
>> don't possess any datasheets of the ALi m5602 nor the s5k83a,
>> s5k4aa. I would be much happy if you Samsung folks would be able to
>> provide with me with datasheets for the s5k* sensors.
>
> Looking at the code I'd say that it should be possible to implement an
> i2c_adapter in m5602_core.c, and when that's in place the various sensor
> drivers can be gradually split off into generic subdev drivers. Which is
> of course ever so much easier if the datasheets are available :-)
>
> For this particular bridge driver I strongly suggest that this approach
> is taken since there are already duplicate sensor drivers here (mt9m111).
>
> Regards,
>
>        Hans
>

Hi Hans,

I didn't know that there already have been a discussion. I'll google
about that thread and go through.
And thanks to your mail, I could find that there already existing
duplicated drivers. I'll take that as a reference.
BTW, I was strongly appealing my boss to let me attend the
linuxplumber conf and I sense a slight possibility to go there. It's a
progress :-). I'm looking forward to having approval.
Cheers,

Nate

>>
>> Best regards,
>> Erik
>>
>> > Nate
>> >
>>
>>
>
>
>
> --
> Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom
>



-- 
=
DongSoo, Nathaniel Kim
Engineer
Mobile S/W Platform Lab.
Digital Media & Communications R&D Centre
Samsung Electronics CO., LTD.
e-mail : dongsoo.kim@gmail.com
          dongsoo45.kim@samsung.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: About some sensor drivers in mc5602 gspca driver
  2009-08-09 11:13     ` Dongsoo, Nathaniel Kim
@ 2009-08-09 12:29       ` Hans Verkuil
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Verkuil @ 2009-08-09 12:29 UTC (permalink / raw)
  To: Dongsoo, Nathaniel Kim
  Cc: Erik Andrén, v4l2_linux, moinejf, 동수,
	형준, 경민, Hans de Goede

On Sunday 09 August 2009 13:13:40 Dongsoo, Nathaniel Kim wrote:
> 2009/8/9 Hans Verkuil <hverkuil@xs4all.nl>:
> > On Sunday 09 August 2009 10:20:47 Erik Andrén wrote:
> >>
> >> Dongsoo, Nathaniel Kim wrote:
> >> > Hello,
> >> >
> >> > It has been years I've working on linux multimedia drivers, but what a
> >> > shame I found that there were already sensor drivers that I've already
> >> > implemented. Precisely speaking, soc camera devices from Samsung named
> >> > s5k4aa* and s5k83a* were already in Linux kernel and even seems to
> >> > have been there for years.
> >> > But a thing that I'm curious is those drivers are totally mc602 and
> >> > gspca oriented. So some users who are intending to use those samsung
> >> > camera devices but not using gspca and mc5602 H/W have to figure out
> >> > another way.
> >> > As you know, the s5k* camera devices are actually ISP devices which
> >> > are made in SoC device and can be used independently with any kind of
> >> > ITU or MIPI supporting host devices.
> >> > However, I see that gspca and mc5602 have their own driver structure
> >> > so it seems to be tough to split out the sensor drivers from them.
> >> > So, how should we coordinate our drivers if a new s5k* driver is
> >> > getting adopted in the Linux kernel? different version of s5k* drivers
> >> > in gspca and subdev or gspca also is able to use subdev drivers?
> >> > I am very willing to contribute several drivers for s5k* soc camera
> >> > isp devices and in the middle of researching to prepare for
> >> > contribution those s5k* drivers popped up.
> >> > Please let me know whether it is arrangeable or not.
> >> > Cheers,
> >> >
> >>
> >> Hi Nathaniel,
> >> The sensor sharing question pops up now and then and I'm sure that
> >> if you search the mailing list archive you can find several threads
> >> discussing this.
> >> IIRC the main problem is that in an usb webcam consisting of a
> >> sensor and an usb bridge. The sensor is often configured in a very
> >> specific way tied to the particular usb bridge. It is also common
> >> that much of the initialization is reverse engineered and that we
> >> may have little or no understanding what we're actually doing.
> >> (Often just mimicing a windows webcam driver).
> >> I think the conclusion reached now is that it's not worth the effort
> >> considering that the sensors usually don't need that much setup to
> >> get working. Of course this may need to be reevaluated from time to
> >> time. If someone could device a clever solution I would be all for
> >> trying to create some kind of driver sharing.
> >
> > Basically any gspca driver that can set registers in the i2c device
> > (as opposed to only replaying USB commands) can be modified so the i2c
> > part can be split off into a regular sub-device driver. I've discussed
> > this in the past with Hans de Goede and that is definitely the way to go.
> >
> >> In the gspca-m5602-s5k* case everything is reverse-engineered, as I
> >> don't possess any datasheets of the ALi m5602 nor the s5k83a,
> >> s5k4aa. I would be much happy if you Samsung folks would be able to
> >> provide with me with datasheets for the s5k* sensors.
> >
> > Looking at the code I'd say that it should be possible to implement an
> > i2c_adapter in m5602_core.c, and when that's in place the various sensor
> > drivers can be gradually split off into generic subdev drivers. Which is
> > of course ever so much easier if the datasheets are available :-)
> >
> > For this particular bridge driver I strongly suggest that this approach
> > is taken since there are already duplicate sensor drivers here (mt9m111).
> >
> > Regards,
> >
> >        Hans
> >
> 
> Hi Hans,
> 
> I didn't know that there already have been a discussion. I'll google
> about that thread and go through.

It was a face-to-face discussion while enjoying a good glass of beer :-)

> And thanks to your mail, I could find that there already existing
> duplicated drivers. I'll take that as a reference.
> BTW, I was strongly appealing my boss to let me attend the
> linuxplumber conf and I sense a slight possibility to go there. It's a
> progress :-). I'm looking forward to having approval.

It would be great news. My goal is to leave that conference with a roadmap
for the next year and in particular an updated RFC for the media controller
and media processor implementation. And the more input we have regarding the
sort of hardware that is out there, the better.

I wonder whether I shouldn't organize this as a V4L mini-summit. I'm pretty
sure this isn't something that can be finalized in one day.

Regards,

	Hans

> Cheers,
> 
> Nate
> 
> >>
> >> Best regards,
> >> Erik
> >>
> >> > Nate
> >> >
> >>
> >>
> >
> >
> >
> > --
> > Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom
> >
> 
> 
> 



-- 
Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-08-09 12:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-09  7:57 About some sensor drivers in mc5602 gspca driver Dongsoo, Nathaniel Kim
     [not found] ` <4A7E86DF.1070901@gmail.com>
2009-08-09  8:28   ` Erik Andrén
2009-08-09 11:02     ` Dongsoo, Nathaniel Kim
2009-08-09  8:44   ` Hans Verkuil
2009-08-09 11:13     ` Dongsoo, Nathaniel Kim
2009-08-09 12:29       ` Hans Verkuil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.