public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] move sensor control out of kernel
@ 2008-02-29  4:18 eric miao
  2008-02-29  9:23 ` Markus Rechberger
  2008-02-29 12:49 ` Paulius Zaleckas
  0 siblings, 2 replies; 7+ messages in thread
From: eric miao @ 2008-02-29  4:18 UTC (permalink / raw)
  To: video4linux-list

I know some one has different opinion, but since the sensor control logic is
getting more and more complicated, and provided that differences between
sensors and vendors are already too many. Is it better to move sensor
control out of kernel.

Most sensors come with a serial control channel, I2C as can be seen
most commonly. Access to the control information can be done by
i2c-dev interface if possible, thus the driver can be freed as an I2C
stub only. So technically, this is practical.

The benefits I can think of now are:

1. simplified sensor driver design

2. sensor control related debugging can be moved to user space thus
    reducing the debugging effort

3. accessing registers in user space can be done by many other ways
    say, UART. E.g.
    ADCM2650 and ADCM2670 differs in the control channel connection,
    one by I2C and the other by UART, the user space control logic has
    only to decide which device node to open: /dev/i2c/xxx or /dev/ttyXX

Another biggest concern to the V4L2 API itself, sensor nowadays has
more control ability than it used to be, some smart sensor provides
even more like auto focus control, lens control, flash mode, and many
other features that current V4L2 API cannot cover.

Besides, along with the complicated image processing chain, it might
be better described by kinds of pipeline, like what gstreamer is doing
now. Moving some or most of the logic to user space will also significantly
reduce the effort of kernel development.

Now the problem is: we don't have a standard in user space :(

Just a topic, any comments. Thanks

-- 
Cheers
- eric

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

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

end of thread, other threads:[~2008-03-04 14:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-29  4:18 [RFC] move sensor control out of kernel eric miao
2008-02-29  9:23 ` Markus Rechberger
2008-02-29 12:49 ` Paulius Zaleckas
2008-02-29 15:25   ` eric miao
2008-02-29 16:35     ` Paulius Zaleckas
2008-03-04 14:23       ` Mauro Carvalho Chehab
2008-02-29 23:09     ` Guennadi Liakhovetski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox