* Re: Adding 'half shutter' definition to 'input.h' [not found] ` <4d34a0a70812231631u359e85an29d2ed30bccd59a5@mail.gmail.com> @ 2009-01-08 2:48 ` Kim Kyuwon 2009-01-08 8:51 ` Jiri Kosina 0 siblings, 1 reply; 5+ messages in thread From: Kim Kyuwon @ 2009-01-08 2:48 UTC (permalink / raw) To: linux-input Cc: kyuwonmoru.kim, sj76.park, sk.heo, kyungmin.park, Jiri Kosina, Dmitry Torokhov Hi, All Because Jiri Kosina personally agrees with adding the [half]shutter key yesterday, I'm sending this patch. (Thanks Jiri) New cameras and mobile phones (at least SAMSUNG's) have the half shutter for 'auto-focus' functions. so I think this half and full shutter keys are needed. Please review this patch. Thank you! On Wed, Dec 24, 2008 at 9:31 AM, 김규원 <chammoru@gmail.com> wrote: > Thanks for your reply ;) > > On Tue, Dec 23, 2008 at 5:45 PM, Dmitry Torokhov > <dmitry.torokhov@gmail.com> wrote: >> Hi Kim, >> >> On Monday 22 December 2008 22:27:51 Kyu-Won Kim wrote: >>> Hi Dmitry, >>> >>> We are making the camera application for mobile phone and our products have >>> half shutter (the technical name of buttion is "Double-action >>> Side-operation Type Light Touch Switch") as other general cameras. >>> Datasheet is here: >>> http://www.datasheetpro.com/205793_view_EVQQ0C03K_datasheet.html >>> >>> The problem is that there is no KEY definition for half shutter in input.h. >>> I think KEY_CAMERA is the most related key but we need more definitions >>> like KEY_CAMERA2, KEY_HALFSUTTER or KEY_FULLSHUTTER >>> >>> Could you give me your opinions about this half shutter >>> >> >> Hmm, we certainly could add some more key definitions, but given that the >> usage is very tightly coupled to the device and application I wonder if you >> should simply use KEY_PROG* there... > > We can simply use KEY_PROG1, but state-of-the-art digital camera supports > 'auto-focus' functions and therefore I think Half-Shutter key is a MUST. (I'm > sure there are many digital cameras which use Linux as OS). > >> >> Let's CC Jiri Kosina and see if he has any input on this matter. > > Can I ask Kosina's opinion, too? > >> >> -- >> Dmitry >> > > > -- > Kim Kyuwon > commit a2f0629f9202433cd2b23b5c951dae66fd2b4f14 Author: Kim Kyuwon <kyuwonmoru.kim@samsung.com> Date: Thu Jan 8 11:08:43 2009 +0900 Input: add definitions for camera full and half shutters Signed-off-by: Kim Kyuwon <kyuwonmoru.kim@samsung.com> diff --git a/include/linux/input.h b/include/linux/input.h index 9a6355f..41ed2fb 100644 --- a/include/linux/input.h +++ b/include/linux/input.h @@ -541,6 +541,9 @@ struct input_absinfo { #define KEY_CONTEXT_MENU 0x1b6 /* GenDesc - system context menu */ #define KEY_MEDIA_REPEAT 0x1b7 /* Consumer - transport control */ +#define KEY_HALF_SHUTTER 0x1b8 +#define KEY_FULL_SHUTTER 0x1b9 + #define KEY_DEL_EOL 0x1c0 #define KEY_DEL_EOS 0x1c1 #define KEY_INS_LINE 0x1c2 -- Kim Kyuwon ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: Adding 'half shutter' definition to 'input.h' 2009-01-08 2:48 ` Adding 'half shutter' definition to 'input.h' Kim Kyuwon @ 2009-01-08 8:51 ` Jiri Kosina 2009-01-11 7:57 ` Dmitry Torokhov 0 siblings, 1 reply; 5+ messages in thread From: Jiri Kosina @ 2009-01-08 8:51 UTC (permalink / raw) To: Kim Kyuwon Cc: linux-input, kyuwonmoru.kim, sj76.park, sk.heo, kyungmin.park, Dmitry Torokhov On Thu, 8 Jan 2009, Kim Kyuwon wrote: > Because Jiri Kosina personally agrees with adding the [half]shutter key > yesterday, I'm sending this patch. (Thanks Jiri) > New cameras and mobile phones (at least SAMSUNG's) have the half shutter for > 'auto-focus' functions. so I think this half and full shutter keys are needed. > Please review this patch. Hi, please note the "if there is any in-kernel code that actually uses it" part of my e-mail. Adding just the key definition without any kernel code actually using is not likely to happen. Thanks, -- Jiri Kosina SUSE Labs ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Adding 'half shutter' definition to 'input.h' 2009-01-08 8:51 ` Jiri Kosina @ 2009-01-11 7:57 ` Dmitry Torokhov 2009-01-12 1:00 ` Kim Kyuwon 0 siblings, 1 reply; 5+ messages in thread From: Dmitry Torokhov @ 2009-01-11 7:57 UTC (permalink / raw) To: Jiri Kosina Cc: Kim Kyuwon, linux-input, kyuwonmoru.kim, sj76.park, sk.heo, kyungmin.park Hi Kim, Jiri, On Thu, Jan 08, 2009 at 09:51:11AM +0100, Jiri Kosina wrote: > On Thu, 8 Jan 2009, Kim Kyuwon wrote: > > > Because Jiri Kosina personally agrees with adding the [half]shutter key > > yesterday, I'm sending this patch. (Thanks Jiri) > > New cameras and mobile phones (at least SAMSUNG's) have the half shutter for > > 'auto-focus' functions. so I think this half and full shutter keys are needed. > > Please review this patch. > > Hi, > > please note the "if there is any in-kernel code that actually uses it" > part of my e-mail. Adding just the key definition without any kernel code > actually using is not likely to happen. > Additionally I don't think we need 2 new codes. We have KEY_CAMERA that is supposed to be sent when we want to take the picture, so only one new is needed. Probably should call it KEY_FOCUS or KEY_CAMERA_FOCUS. -- Dmitry ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Adding 'half shutter' definition to 'input.h' 2009-01-11 7:57 ` Dmitry Torokhov @ 2009-01-12 1:00 ` Kim Kyuwon 2009-01-12 7:23 ` Dmitry Torokhov 0 siblings, 1 reply; 5+ messages in thread From: Kim Kyuwon @ 2009-01-12 1:00 UTC (permalink / raw) To: Dmitry Torokhov Cc: Jiri Kosina, linux-input, sj76.park, sk.heo, kyungmin.park Hi, Dmitry, On Sun, Jan 11, 2009 at 4:57 PM, Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote: > Hi Kim, Jiri, > > On Thu, Jan 08, 2009 at 09:51:11AM +0100, Jiri Kosina wrote: >> On Thu, 8 Jan 2009, Kim Kyuwon wrote: >> >> > Because Jiri Kosina personally agrees with adding the [half]shutter key >> > yesterday, I'm sending this patch. (Thanks Jiri) >> > New cameras and mobile phones (at least SAMSUNG's) have the half shutter for >> > 'auto-focus' functions. so I think this half and full shutter keys are needed. >> > Please review this patch. >> >> Hi, >> >> please note the "if there is any in-kernel code that actually uses it" >> part of my e-mail. Adding just the key definition without any kernel code >> actually using is not likely to happen. >> > > Additionally I don't think we need 2 new codes. We have KEY_CAMERA that > is supposed to be sent when we want to take the picture, so only one new > is needed. Probably should call it KEY_FOCUS or KEY_CAMERA_FOCUS. > > -- > Dmitry > OK, It seems like your suggestion is better mine :) (Personally I prefer KEY_FOCUS to KEY_CAMERA_FOCUS ) And I would be really satisfied, if any key which can represent the half shutter is added to 'input.h' Thank you for thinking this issue again. If there are further steps that I can take, please let me know. -- Kim Kyuwon ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Adding 'half shutter' definition to 'input.h' 2009-01-12 1:00 ` Kim Kyuwon @ 2009-01-12 7:23 ` Dmitry Torokhov 0 siblings, 0 replies; 5+ messages in thread From: Dmitry Torokhov @ 2009-01-12 7:23 UTC (permalink / raw) To: Kim Kyuwon; +Cc: Jiri Kosina, linux-input, sj76.park, sk.heo, kyungmin.park Hi Kim, On Mon, Jan 12, 2009 at 10:00:32AM +0900, Kim Kyuwon wrote: > Hi, Dmitry, > > On Sun, Jan 11, 2009 at 4:57 PM, Dmitry Torokhov > <dmitry.torokhov@gmail.com> wrote: > > Hi Kim, Jiri, > > > > On Thu, Jan 08, 2009 at 09:51:11AM +0100, Jiri Kosina wrote: > >> On Thu, 8 Jan 2009, Kim Kyuwon wrote: > >> > >> > Because Jiri Kosina personally agrees with adding the [half]shutter key > >> > yesterday, I'm sending this patch. (Thanks Jiri) > >> > New cameras and mobile phones (at least SAMSUNG's) have the half shutter for > >> > 'auto-focus' functions. so I think this half and full shutter keys are needed. > >> > Please review this patch. > >> > >> Hi, > >> > >> please note the "if there is any in-kernel code that actually uses it" > >> part of my e-mail. Adding just the key definition without any kernel code > >> actually using is not likely to happen. > >> > > > > Additionally I don't think we need 2 new codes. We have KEY_CAMERA that > > is supposed to be sent when we want to take the picture, so only one new > > is needed. Probably should call it KEY_FOCUS or KEY_CAMERA_FOCUS. > > > > -- > > Dmitry > > > > OK, It seems like your suggestion is better mine :) > (Personally I prefer KEY_FOCUS to KEY_CAMERA_FOCUS ) > And I would be really satisfied, if any key which can represent the half > shutter is added to 'input.h' > > Thank you for thinking this issue again. > If there are further steps that I can take, please let me know. > Just add the key definition to input.h and send it along with the rest of the driver when you feel that it is ready to be merged in mainline. Thanks. -- Dmitry ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-01-12 7:24 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <13840250.309261230013670370.JavaMail.weblogic@epml09> [not found] ` <200812230045.42765.dmitry.torokhov@gmail.com> [not found] ` <4d34a0a70812231631u359e85an29d2ed30bccd59a5@mail.gmail.com> 2009-01-08 2:48 ` Adding 'half shutter' definition to 'input.h' Kim Kyuwon 2009-01-08 8:51 ` Jiri Kosina 2009-01-11 7:57 ` Dmitry Torokhov 2009-01-12 1:00 ` Kim Kyuwon 2009-01-12 7:23 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).