alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Omair Mohammed Abdullah <omair.m.abdullah@linux.intel.com>
Cc: alsa-devel@alsa-project.org, jy0922.shim@samsung.com
Subject: Re: Usage of jack_status_check in ASoC GPIO
Date: Thu, 16 Feb 2012 23:07:50 -0800	[thread overview]
Message-ID: <20120217070749.GA11464@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <4F3DF909.8020602@linux.intel.com>


[-- 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 --]



      reply	other threads:[~2012-02-17  7:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-17  6:51 Usage of jack_status_check in ASoC GPIO Omair Mohammed Abdullah
2012-02-17  7:07 ` Mark Brown [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120217070749.GA11464@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=jy0922.shim@samsung.com \
    --cc=omair.m.abdullah@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).