Re: How can you tell if the speaker jack on your sound card has anything plugged into it???

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

 



On Fri, Apr 25, 2008 at 11:08:49PM +0200, Robert Jarzmik wrote:

> Isn't the event api switch "SW_HEADPHONE_INSERT" standard ?
> I thought it was designed for such use.

Yes.  It'll also need extending to cover things that can detect jack
insertions other than headphones (espcailly usefully for devices that
can identify what is plugged into the jack).

> If I'm not mistaken, the Neo teams handles it that way, as I do for the mio :
>  -> input_report_switch(mioa701_evdev, SW_HEADPHONE_INSERT, val);

Indeed, and hopefully it'll get more widely adopted, at least for
embedded stuff.  Unfortunately adoption is currently rather limited -
the only in-tree users are the Zaurus machines.

I'm currently working on some helpers for ALSA for this.
_______________________________________________
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