Skip to contentSkip to conversation

camera on n900, v4.8

DISCUSSION Pavel Machek 2 participants 3 messages Oct 5, 2016 – Oct 10, 2016

lore
Share & tools
lore
#0 lore raw

Hi!

Camera has some non-trivial dependencies on N900; it seems to rely on gpio-switch.c, for example. I'll try to strip the diff further, but in the meantime, here's the version I'm working with.

Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#1 lore raw
Quoted 9 lines · On Wednesday 05 October 2016 21:03:41 Pavel Machek wrote:

Hi!

Camera has some non-trivial dependencies on N900; it seems to rely on gpio-switch.c, for example. I'll try to strip the diff further, but in the meantime, here's the version I'm working with.

Pavel

With "Camera" do you mean some Maemo userspace application? Because I think that nobody else could depends on gpio-switch kernel driver.

Anyway, it should be easy to rewrite such gpio-switch application to use either input kernel events (from /dev/input/something) or directly check gpio state via /sys/class/gpio/.

IIRC Maemo's Camera needed gpio-switch for testing if back camera cover is open or closed and for checking when camera push button pressed and released.

Signature · 2 lines
Pali Roh?r
pali.rohar at gmail.com
#2 lore raw
Quoted 10 lines · Pali Roh?r
Quoted 6 lines · On Wednesday 05 October 2016 21:03:41 Pavel Machek wrote:

Hi!

Camera has some non-trivial dependencies on N900; it seems to rely on gpio-switch.c, for example. I'll try to strip the diff further, but in the meantime, here's the version I'm working with.

With "Camera" do you mean some Maemo userspace application? Because I think that nobody else could depends on gpio-switch kernel driver.

With camera, I mean kernel drivers for /dev/video*. I don't know why they depend on gpio-switch.c, but they do.

I'm using fcam-dev for userspace control of camera. I'd prefer not to touch anything w/o sources.

Pavel

Signature · 9 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20161010/1f4c86e0/attachment.sig>