[alsa-devel] Can a phone hook switch follow alsa jack model?

Mark Brown broonie at opensource.wolfsonmicro.com
Thu Jun 25 13:05:08 CEST 2009

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.

More information about the Alsa-devel mailing list