From: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
To: "alsa-devel@vger.kernel.org" <alsa-devel@vger.kernel.org>
Cc: linux-input@vger.kernel.org,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Can a phone hook switch follow alsa jack model?
Date: Tue, 23 Jun 2009 15:28:54 +0200 [thread overview]
Message-ID: <4A40D896.8010208@tis.icnet.pl> (raw)
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
next reply other threads:[~2009-06-23 13:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-23 13:28 Janusz Krzysztofik [this message]
2009-06-23 22:22 ` Can a phone hook switch follow alsa jack model? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A40D896.8010208@tis.icnet.pl \
--to=jkrzyszt@tis.icnet.pl \
--cc=alsa-devel@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).