Thread (7 messages) 7 messages, 2 authors, 2009-06-29

Re: Can a phone hook switch follow alsa jack model?

From: Mark Brown <hidden>
Date: 2009-06-25 11:05:08
Also in: alsa-devel, linux-omap

On Wed, Jun 24, 2009 at 03:28:11PM +0200, Janusz Krzysztofik wrote:
Mark Brown wrote:
type. Don't you think that a new type like SND_JACK_PHONE_HOOK or 
SND_JACK_PHONE_HANDSET should be defined for the purpose? Even if 
HEADSET may not be very different from HANDSET, corresponding 
SW_HEADPHONE_INSERT and SW_MICROPHONE_INSERT event names seem have very 
little to do with picking up a phone.
Possibly, TBH I had thought I'd seen something for off-hook when I
looked at this originally but I can't seem to spot it now.
So, if I want to follow the ASoC jack model, my in-kernel hook switch 
handler should only power on/off the handset, not touching the 
speakerphone at all. The latter should be controlled from userspace. 
Please correct me if I am missing something.
That's my initial guess - I've not looked at your particular hardware
so it may not end up being the best way of dealing with your system but
from what you said it was the approach that sprang to mind.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help