All of lore.kernel.org
 help / color / mirror / Atom feed
* HTC Dream camera support for staging
@ 2009-06-29 11:43 Pavel Machek
  2009-06-29 18:28 ` Guennadi Liakhovetski
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Pavel Machek @ 2009-06-29 11:43 UTC (permalink / raw)
  To: Greg KH, kernel list, linux-arm-kernel, Brian Swetland

[-- Attachment #1: Type: text/plain, Size: 603 bytes --]


This patch adds driver for HTC Dream camera. I guess driver is
slightly higher quality than usual for staging/ , but it is fairly big
and I don't feel like doing all the cleanups myself. Also some parts
can probably be removed, as they did not end up in shipping hardware..

The driver is actually so big that I'll attach it gzipped, otherwise
it would not pass maillist limits.

Signed-off-by: Pavel Machek <pavel@ucw.cz>
Cc: Brian Swetland <swetland@google.com>
	
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: g1.9.diff.gz --]
[-- Type: application/octet-stream, Size: 86105 bytes --]

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

* Re: HTC Dream camera support for staging
  2009-06-29 11:43 HTC Dream camera support for staging Pavel Machek
@ 2009-06-29 18:28 ` Guennadi Liakhovetski
  2009-06-29 18:52   ` Greg KH
  2009-07-02 20:08 ` Greg KH
       [not found] ` <20090629121023.GD28046@google.com>
  2 siblings, 1 reply; 13+ messages in thread
From: Guennadi Liakhovetski @ 2009-06-29 18:28 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Greg KH, kernel list, linux-arm-kernel, Brian Swetland

On Mon, 29 Jun 2009, Pavel Machek wrote:

> 
> This patch adds driver for HTC Dream camera. I guess driver is
> slightly higher quality than usual for staging/ , but it is fairly big
> and I don't feel like doing all the cleanups myself. Also some parts
> can probably be removed, as they did not end up in shipping hardware..
> 
> The driver is actually so big that I'll attach it gzipped, otherwise
> it would not pass maillist limits.

when this patch will be leaving the "staging" state, it will have to be 
converted to use v4l2-subdev API and submitted to linux-media.

> Signed-off-by: Pavel Machek <pavel@ucw.cz>
> Cc: Brian Swetland <swetland@google.com>

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

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

* Re: HTC Dream camera support for staging
  2009-06-29 18:28 ` Guennadi Liakhovetski
@ 2009-06-29 18:52   ` Greg KH
  0 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2009-06-29 18:52 UTC (permalink / raw)
  To: Guennadi Liakhovetski
  Cc: Pavel Machek, kernel list, linux-arm-kernel, Brian Swetland

On Mon, Jun 29, 2009 at 08:28:33PM +0200, Guennadi Liakhovetski wrote:
> On Mon, 29 Jun 2009, Pavel Machek wrote:
> 
> > 
> > This patch adds driver for HTC Dream camera. I guess driver is
> > slightly higher quality than usual for staging/ , but it is fairly big
> > and I don't feel like doing all the cleanups myself. Also some parts
> > can probably be removed, as they did not end up in shipping hardware..
> > 
> > The driver is actually so big that I'll attach it gzipped, otherwise
> > it would not pass maillist limits.
> 
> when this patch will be leaving the "staging" state, it will have to be 
> converted to use v4l2-subdev API and submitted to linux-media.

Sounds reasonable.  All staging patches are submitted to the respective
subsystems for inclusion in order to move out of them.  So that's
nothing new.

thanks,

greg k-h

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

* Re: HTC Dream camera support for staging
  2009-06-29 11:43 HTC Dream camera support for staging Pavel Machek
  2009-06-29 18:28 ` Guennadi Liakhovetski
@ 2009-07-02 20:08 ` Greg KH
  2009-07-08  8:44   ` Pavel Machek
       [not found] ` <20090629121023.GD28046@google.com>
  2 siblings, 1 reply; 13+ messages in thread
From: Greg KH @ 2009-07-02 20:08 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list, linux-arm-kernel, Brian Swetland

On Mon, Jun 29, 2009 at 01:43:40PM +0200, Pavel Machek wrote:
> 
> This patch adds driver for HTC Dream camera. I guess driver is
> slightly higher quality than usual for staging/ , but it is fairly big
> and I don't feel like doing all the cleanups myself. Also some parts
> can probably be removed, as they did not end up in shipping hardware..
> 
> The driver is actually so big that I'll attach it gzipped, otherwise
> it would not pass maillist limits.
> 
> Signed-off-by: Pavel Machek <pavel@ucw.cz>
> Cc: Brian Swetland <swetland@google.com>

Can you resubmit it with the original author descriptions?  It's not
fair to them to have it shown up as coming from you.

thanks,

greg k-h

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

* Re: HTC Dream camera support for staging
  2009-07-02 20:08 ` Greg KH
@ 2009-07-08  8:44   ` Pavel Machek
  2009-07-08  9:47     ` Brian Swetland
  0 siblings, 1 reply; 13+ messages in thread
From: Pavel Machek @ 2009-07-08  8:44 UTC (permalink / raw)
  To: Greg KH, malchev; +Cc: kernel list, linux-arm-kernel, Brian Swetland

On Thu 2009-07-02 13:08:24, Greg KH wrote:
> On Mon, Jun 29, 2009 at 01:43:40PM +0200, Pavel Machek wrote:
> > 
> > This patch adds driver for HTC Dream camera. I guess driver is
> > slightly higher quality than usual for staging/ , but it is fairly big
> > and I don't feel like doing all the cleanups myself. Also some parts
> > can probably be removed, as they did not end up in shipping hardware..
> > 
> > The driver is actually so big that I'll attach it gzipped, otherwise
> > it would not pass maillist limits.
> > 
> > Signed-off-by: Pavel Machek <pavel@ucw.cz>
> > Cc: Brian Swetland <swetland@google.com>
> 
> Can you resubmit it with the original author descriptions?  It's not
> fair to them to have it shown up as coming from you.

Yes, done... and thanks.

Brian... I'd like to submit qdsp5 and smd code, too. Who should be
listed as their authors?

Oh and... thanks for the serial debugging cable. After short fight
(using ttyMSM2, not ttyS0 took me a while to figure), it seems to work.
									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: HTC Dream camera support for staging
  2009-07-08  8:44   ` Pavel Machek
@ 2009-07-08  9:47     ` Brian Swetland
  2009-07-09  9:53       ` Pavel Machek
  0 siblings, 1 reply; 13+ messages in thread
From: Brian Swetland @ 2009-07-08  9:47 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Greg KH, malchev, kernel list, linux-arm-kernel

On Wed, Jul 8, 2009 at 1:44 AM, Pavel Machek<pavel@ucw.cz> wrote:
> On Thu 2009-07-02 13:08:24, Greg KH wrote:
>> On Mon, Jun 29, 2009 at 01:43:40PM +0200, Pavel Machek wrote:
>> >
>> > This patch adds driver for HTC Dream camera. I guess driver is
>> > slightly higher quality than usual for staging/ , but it is fairly big
>> > and I don't feel like doing all the cleanups myself. Also some parts
>> > can probably be removed, as they did not end up in shipping hardware..
>> >
>> > The driver is actually so big that I'll attach it gzipped, otherwise
>> > it would not pass maillist limits.
>> >
>> > Signed-off-by: Pavel Machek <pavel@ucw.cz>
>> > Cc: Brian Swetland <swetland@google.com>
>>
>> Can you resubmit it with the original author descriptions?  It's not
>> fair to them to have it shown up as coming from you.
>
> Yes, done... and thanks.
>
> Brian... I'd like to submit qdsp5 and smd code, too. Who should be
> listed as their authors?

smd is pretty much my fault at this point, though Arve hacks on the
PM-related bits.

The latest incarnation of the rpcrouter is me, with a lot of the
original work by Iliyan, based heavily on the work Qualcomm did (thus
their copyright on it as well as Google's).

qdsp5 is Iliyan.

Might be worth breaking these into at least three pieces (smd,
rpcrouter, qdsp5)?

Are you highly opposed to having smd and rpcrouter under
arch/arm/mach-msm?  They're (for better or worse) pretty integral to
the core operation of the platform (suspend/resume and a lot of other
core SoC functions require coordination with the modem core).

The qdsp5 stuff could exist elsewhere easily (though I'm not sure
where the logical place is), and stuff on top of it like the v4l2
camera stuff has obvious homes in the usual driver hierarchy.

Brian

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

* Re: HTC Dream camera support for staging
  2009-07-08  9:47     ` Brian Swetland
@ 2009-07-09  9:53       ` Pavel Machek
  2009-07-09 15:00         ` Greg KH
  0 siblings, 1 reply; 13+ messages in thread
From: Pavel Machek @ 2009-07-09  9:53 UTC (permalink / raw)
  To: Brian Swetland; +Cc: Greg KH, malchev, kernel list, linux-arm-kernel

Hi!

> >> Can you resubmit it with the original author descriptions?  It's not
> >> fair to them to have it shown up as coming from you.
> >
> > Yes, done... and thanks.
> >
> > Brian... I'd like to submit qdsp5 and smd code, too. Who should be
> > listed as their authors?
> 
> smd is pretty much my fault at this point, though Arve hacks on the
> PM-related bits.
> 
> The latest incarnation of the rpcrouter is me, with a lot of the
> original work by Iliyan, based heavily on the work Qualcomm did (thus
> their copyright on it as well as Google's).
> 
> qdsp5 is Iliyan.
> 
> Might be worth breaking these into at least three pieces (smd,
> rpcrouter, qdsp5)?

Sorry, I already submitted the patch. I just listed everyone I could
find in the sources in From: ; that included san@google but not
Arve. I hope that's not too bad.

> Are you highly opposed to having smd and rpcrouter under
> arch/arm/mach-msm?  They're (for better or worse) pretty integral to
> the core operation of the platform (suspend/resume and a lot of other
> core SoC functions require coordination with the modem core).

I am not opposed to having the code under mach-msm/ ... it would be
actually preffered. But it is quite a lot of code, and I guess it
makes sense to clean it up in staging/ then move it to the proper
place.

Alternatively if you can create nice git series for rmk/-next; that
would work, too. 

But I guess that staging/ stuff is quite easy to remove, and useful
for people that want to use the phones in the meantime :-).

> The qdsp5 stuff could exist elsewhere easily (though I'm not sure
> where the logical place is), and stuff on top of it like the v4l2
> camera stuff has obvious homes in the usual driver hierarchy.

Ack.
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: HTC Dream camera support for staging
  2009-07-09  9:53       ` Pavel Machek
@ 2009-07-09 15:00         ` Greg KH
  0 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2009-07-09 15:00 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Brian Swetland, malchev, kernel list, linux-arm-kernel

On Thu, Jul 09, 2009 at 11:53:23AM +0200, Pavel Machek wrote:
> Hi!
> 
> > >> Can you resubmit it with the original author descriptions?  It's not
> > >> fair to them to have it shown up as coming from you.
> > >
> > > Yes, done... and thanks.
> > >
> > > Brian... I'd like to submit qdsp5 and smd code, too. Who should be
> > > listed as their authors?
> > 
> > smd is pretty much my fault at this point, though Arve hacks on the
> > PM-related bits.
> > 
> > The latest incarnation of the rpcrouter is me, with a lot of the
> > original work by Iliyan, based heavily on the work Qualcomm did (thus
> > their copyright on it as well as Google's).
> > 
> > qdsp5 is Iliyan.
> > 
> > Might be worth breaking these into at least three pieces (smd,
> > rpcrouter, qdsp5)?
> 
> Sorry, I already submitted the patch. I just listed everyone I could
> find in the sources in From: ; that included san@google but not
> Arve. I hope that's not too bad.

Please split the patch up into the different pieces, with the different
authors.  You shouldn't be sending patches that do more than one thing
at a time anyway :)

thanks,

greg k-h

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

* Re: HTC Dream camera support for staging
       [not found]         ` <a55d774e0907090406u5e91b5c9r2303b098d0e44988@mail.gmail.com>
@ 2009-07-13 20:27           ` Pavel Machek
  2009-07-13 21:06             ` Pavel Machek
  2009-07-13 22:05             ` Arve Hjønnevåg
  0 siblings, 2 replies; 13+ messages in thread
From: Pavel Machek @ 2009-07-13 20:27 UTC (permalink / raw)
  To: Brian Swetland; +Cc: Arve Hj??nnev??g, Iliyan Malchev, kernel list

On Thu 2009-07-09 04:06:35, Brian Swetland wrote:
> (arve -- see below about matrix driver)

Arve, can you help?

> On Thu, Jul 9, 2009 at 3:13 AM, Pavel Machek<pavel@ucw.cz> wrote:
> >>
> >> The NAND and USB support is much more contained.
> >
> > Well.. NAND scares me a bit -- and I'm happy with SD card for now.
> 
> Well, you actually can't overwrite the bootloader with the way the
> NAND partitions are protected and made visible to the arm11, and the
> bootloader can reflash the boot/recovery/system/user partitions via
> usb using fastboot.

Ok, good to know.

> > USB support seems complex because it duplicates USB gadget framework :-(.
> 
> Actually we have both.  We did the function framework before the
> gadget framework had multifunction/composite support, but we're now
> moving away from that since the necessary functionality is in gadget
> now.  The latest 2.6.29 tree on our side has a gadget driver for the
> USB client controller and an "android" gadget that handles the adb
> protocol function and ums function.

ums == mass storage? What is adb? ... aha, adb is the debugger.

> > gpio_matrix: I thought in-tree zaurus keypad driver has recently
> > became generic enough to almost replace this?
> 
> Looping Arve in.  I think he had issues with lack of phantom key
> detection, etc with that.

Arve, can you help?

> > +config TOUCHSCREEN_ELAN_I2C_8232
> > /
> > +config TOUCHSCREEN_SYNAPTICS_I2C_RMI
> >
> > ...which one is it on Dream?
> 
> Both, possibly.  HTC used elan as a second source, so some devices
> will use elan, some use synaptics.

Is there easy way to tell the machines apart? Are there any hardware
differences (besides case color and touchscreen chip)?

> Dream is definitely not the last Android device with a keyboard.

Cool.
									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: HTC Dream camera support for staging
  2009-07-13 20:27           ` Pavel Machek
@ 2009-07-13 21:06             ` Pavel Machek
  2009-07-13 22:05             ` Arve Hjønnevåg
  1 sibling, 0 replies; 13+ messages in thread
From: Pavel Machek @ 2009-07-13 21:06 UTC (permalink / raw)
  To: Brian Swetland; +Cc: Arve Hj??nnev??g, Iliyan Malchev, kernel list


> > > +config TOUCHSCREEN_ELAN_I2C_8232
> > > /
> > > +config TOUCHSCREEN_SYNAPTICS_I2C_RMI
> > >
> > > ...which one is it on Dream?
> > 
> > Both, possibly.  HTC used elan as a second source, so some devices
> > will use elan, some use synaptics.
> 
> Is there easy way to tell the machines apart? 

cat /sys/class/input/*/name seems to work; I have synaptics here.
									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: HTC Dream camera support for staging
  2009-07-13 20:27           ` Pavel Machek
  2009-07-13 21:06             ` Pavel Machek
@ 2009-07-13 22:05             ` Arve Hjønnevåg
  2009-07-23 17:28               ` Pavel Machek
  1 sibling, 1 reply; 13+ messages in thread
From: Arve Hjønnevåg @ 2009-07-13 22:05 UTC (permalink / raw)
  To: Pavel Machek
  Cc: Brian Swetland, Arve Hj??nnev??g, Iliyan Malchev, kernel list

On Mon, Jul 13, 2009 at 1:27 PM, Pavel Machek<pavel@ucw.cz> wrote:
...
>> > gpio_matrix: I thought in-tree zaurus keypad driver has recently
>> > became generic enough to almost replace this?
>>

I would recommend using our driver since it allows multiple input
types in the same device. The generic matrix driver may work, but you
will not get the power and camera keys in the same device. The generic
driver also does not yet handle phantom keys, so if you for instance
press right-alt+right-shift+p you will also get 9. Our gpio input
driver also handles the trackball.

I have also seen devices that put the trackball click in the keypad
matrix which means we have to change our gpio input driver to create
multiple input devices. That change would also allow the two keypads
on the G1 to be separate input devices which would allow both menu
keys to report KEY_MENU.

-- 
Arve Hjønnevåg

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

* Re: HTC Dream camera support for staging
  2009-07-13 22:05             ` Arve Hjønnevåg
@ 2009-07-23 17:28               ` Pavel Machek
  0 siblings, 0 replies; 13+ messages in thread
From: Pavel Machek @ 2009-07-23 17:28 UTC (permalink / raw)
  To: Arve Hj?nnev?g
  Cc: Brian Swetland, Arve Hj??nnev??g, Iliyan Malchev, kernel list

On Mon 2009-07-13 15:05:04, Arve Hj?nnev?g wrote:
> On Mon, Jul 13, 2009 at 1:27 PM, Pavel Machek<pavel@ucw.cz> wrote:
> ...
> >> > gpio_matrix: I thought in-tree zaurus keypad driver has recently
> >> > became generic enough to almost replace this?
> >>
> 
> I would recommend using our driver since it allows multiple input
> types in the same device. The generic matrix driver may work, but you
> will not get the power and camera keys in the same device. The generic
> driver also does not yet handle phantom keys, so if you for instance
> press right-alt+right-shift+p you will also get 9. Our gpio input
> driver also handles the trackball.

Well, matrix_keypad.c will need to be improved, then... Merging
duplicate code is not really an option.

> I have also seen devices that put the trackball click in the keypad
> matrix which means we have to change our gpio input driver to create
> multiple input devices. That change would also allow the two keypads
> on the G1 to be separate input devices which would allow both menu
> keys to report KEY_MENU.

Ok, I guess we should discuss this on linux-input.
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* HTC Dream camera support for staging
@ 2009-07-08  8:40 Pavel Machek
  0 siblings, 0 replies; 13+ messages in thread
From: Pavel Machek @ 2009-07-08  8:40 UTC (permalink / raw)
  To: kernel list, greg, swetland, malchev

[-- Attachment #1: Type: text/plain, Size: 644 bytes --]

From: Iliyan Malchev <malchev@google.com>

This patch adds driver for HTC Dream camera. I guess driver is
slightly higher quality than usual for staging/ , but it is fairly big
and I don't feel like doing all the cleanups myself. Also some parts
can probably be removed, as they did not end up in shipping hardware..

The driver is actually so big that I'll attach it gzipped, otherwise
it would not pass maillist limits.

Signed-off-by: Pavel Machek <pavel@ucw.cz>
Cc: Brian Swetland <swetland@google.com>

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: g1.9.diff.gz --]
[-- Type: application/octet-stream, Size: 86105 bytes --]

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

end of thread, other threads:[~2009-07-23 17:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-29 11:43 HTC Dream camera support for staging Pavel Machek
2009-06-29 18:28 ` Guennadi Liakhovetski
2009-06-29 18:52   ` Greg KH
2009-07-02 20:08 ` Greg KH
2009-07-08  8:44   ` Pavel Machek
2009-07-08  9:47     ` Brian Swetland
2009-07-09  9:53       ` Pavel Machek
2009-07-09 15:00         ` Greg KH
     [not found] ` <20090629121023.GD28046@google.com>
     [not found]   ` <20090630102457.GA25802@elf.ucw.cz>
     [not found]     ` <a55d774e0906300338l7743d566k5b463eed3efd1ea1@mail.gmail.com>
     [not found]       ` <20090709101315.GF10937@elf.ucw.cz>
     [not found]         ` <a55d774e0907090406u5e91b5c9r2303b098d0e44988@mail.gmail.com>
2009-07-13 20:27           ` Pavel Machek
2009-07-13 21:06             ` Pavel Machek
2009-07-13 22:05             ` Arve Hjønnevåg
2009-07-23 17:28               ` Pavel Machek
2009-07-08  8:40 Pavel Machek

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.