Re: [alsa-devel] 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux