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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux