alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Usage of jack_status_check in ASoC GPIO
@ 2012-02-17  6:51 Omair Mohammed Abdullah
  2012-02-17  7:07 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Omair Mohammed Abdullah @ 2012-02-17  6:51 UTC (permalink / raw)
  To: alsa-devel; +Cc: broonie, jy0922.shim

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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Usage of jack_status_check in ASoC GPIO
  2012-02-17  6:51 Usage of jack_status_check in ASoC GPIO Omair Mohammed Abdullah
@ 2012-02-17  7:07 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-02-17  7:07 UTC (permalink / raw)
  To: Omair Mohammed Abdullah; +Cc: alsa-devel, jy0922.shim


[-- Attachment #1.1: Type: text/plain, Size: 648 bytes --]

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.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-17  7:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-17  6:51 Usage of jack_status_check in ASoC GPIO Omair Mohammed Abdullah
2012-02-17  7:07 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).