[alsa-devel] Usage of jack_status_check in ASoC GPIO
broonie at opensource.wolfsonmicro.com
Fri Feb 17 08:07:50 CET 2012
On Fri, Feb 17, 2012 at 12:21:53PM +0530, Omair Mohammed Abdullah wrote:
> If I need to call a codec driver function whenever Headset status
> changes (to set various registers, turn off micbias etc.). In such a
> case, can the jack_status_check callback in snd_soc_jack_gpio
> structure be used? If I use it, I would need to modify the callback
> to pass certain parameters (codec pointer, status). Is this the
> intended use of the callback?
I rather suspect you shouldn't be doing that and should be doing
something else instead (probably using the notifiers) but without seeing
what you're trying to accomplish it's hard to comment in detail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: Digital signature
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20120216/365fa78d/attachment.sig
More information about the Alsa-devel