[alsa-devel] [PATCH v2] ASoC: rt286: add jack detection enable/disable APIs and export

Mark Brown broonie at kernel.org
Thu Feb 5 19:16:38 CET 2015


On Thu, Feb 05, 2015 at 02:07:35AM +0000, Jie, Yang wrote:

Again, please fix your mailer to word wrap within paragraphs - your
mails are very difficult to read.

> [Keyon] I agree that it may be more reasonable if we can pass
> jack(similar to rt286_mic_detect(), can use jack=NULL for disable)
> from this machine driver, then add checking this jack in handler
> rt286_irq(), don't call rt286_jack_detect() and snd_soc_jack_report()
> when the jack is NULL.  What do you think about this solution?

That sounds fine.  You should be able to just call the jack API with
NULL jacks, it's set up to handle this since it's such a common case.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150205/739184ff/attachment.sig>


More information about the Alsa-devel mailing list