Re: [PATCH 1/3] ASoC: Add GPIO support for jack reporting interface

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

 



> > > That sounds like adding a callback for power updates on the jack
> > > itself to me (which isn't a bad idea), rather than changing the 
> > > report function of the jack detection method.  The need for
> > > machine-specific extra actions probably isn't specific to jacks
> > > that are detected via GPIOs.

> > In that situation, power updates should come only when the jack
> > reporting bits are either all active (jack enabled) or none (jack 
> > disabled), is that correct?

> No, the jack detect bits can change independently - you won't always
> physically be able to get everything that can be detected to report at
> once (eg, something that can distinguish between headphones and line
> output) or things may not always be present together (eg, a jack could
> detect headphones but no microphone even if it's possible  that both
> may be present simultaneously).

Then, when to trigger the callback? Every time jack status is going to
be updated?
_______________________________________________
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