linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can a phone hook switch follow alsa jack model?
@ 2009-06-23 13:28 Janusz Krzysztofik
  2009-06-23 22:22 ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Janusz Krzysztofik @ 2009-06-23 13:28 UTC (permalink / raw)
  To: alsa-devel@vger.kernel.org; +Cc: linux-input, linux-omap@vger.kernel.org

Hi,

I am wondering if it is a good idea to create support for a phone hook 
switch, or a handset pick up switch, like that found on Amstrad E3 
(Delta) videophone, using alsa jack framework.

After my initial attempt to add support for the switch using gpio-keys 
driver, I am no longer sure if it is a good idea to follow the keyboard 
model, that the driver has been designed after, for driving a switch 
that has nothing to do with keyboards and may required a different approach.

OTOH, the switch is closely related to a handset, and handsets can be 
seen as sound devices, can't they? So maybe alsa jack would fit better 
than keyboard?

However, I am not sure if the switch in question matches the alsa jack 
model closely enough. I see the switch usage not as simple as turning 
handset microphone/speaker on or off. It can be used for other purposes 
as well, like accepting a phone call or actually dialing a number that 
has been just typed in. Furthermore, it can be used to turn off a 
speakerphone function, while, in turn, the related handset 
microphone/speaker pair can be turned off not only with this switch, but 
with a handsfree button as well, for example.

All that extra functionality looks like belonging to userspace rather 
then kernel, not like other alsa jack implementations that seem to do 
all the job of switching media paths inside the kernel. That is why I am 
not sure if the jack model is suitable for the purpose.

Thanks,
Janusz


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

end of thread, other threads:[~2009-06-29 16:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-23 13:28 Can a phone hook switch follow alsa jack model? Janusz Krzysztofik
2009-06-23 22:22 ` Mark Brown
2009-06-24 13:28   ` Janusz Krzysztofik
2009-06-25 11:05     ` Mark Brown
2009-06-25 12:48       ` [alsa-devel] " Janusz Krzysztofik
2009-06-29 14:32         ` Mark Brown
2009-06-29 16:35           ` Janusz Krzysztofik

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).