All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Tobin Davis <tdavis@dsl-only.net>
Cc: Robert Jarzmik <rjarzmik@free.fr>,
	alsa-devel@alsa-project.org,
	Sean Thayne <sthayne@summitmediagroupllc.com>
Subject: Re: How can you tell if the speaker jack on your	sound card has anything plugged into it???
Date: Fri, 25 Apr 2008 22:55:31 +0100	[thread overview]
Message-ID: <20080425215531.GC25041@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <1209159162.32245.63.camel@razman>

On Fri, Apr 25, 2008 at 02:32:42PM -0700, Tobin Davis wrote:

> The snd_hda_intel driver does this internally to mute the speakers when
> headphones are plugged in.  Ditto for front mic.  But you are right, we
> need a standard way of tracking this.  I am exploring the HAL interface
> now to see what I can learn from it.  And most sound chips have an

The interface I'd previously proposed here was to provide an input
device per-jack which would do this - hal should then be able to monitor
the input device.  As suggested in the original message in the thread
providing sysfs information would probably be helpful for scripts.

> insert detection mechanism.  Usually they are wired to specific jacks,
> but sometimes they just register a change in plug state, and read the
> jack's impedance levels to know which jack is used.  It is documented in
> the Sigmatel/IDT, Realtek, and Analog Devices codec PRMs.

Yes, that's how all the codecs I've looked at do this.

  reply	other threads:[~2008-04-25 21:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-25 19:29 How can you tell if the speaker jack on your sound card has anything plugged into it??? Sean Thayne
2008-04-25 19:49 ` Mark Brown
2008-04-25 20:53   ` Sean Thayne
2008-04-25 20:56     ` Timur Tabi
2008-04-25 21:02       ` Sean Thayne
2008-04-25 21:04         ` Timur Tabi
2008-04-25 22:02       ` Mark Brown
2008-04-25 21:08   ` Robert Jarzmik
2008-04-25 21:28     ` Lennart Poettering
2008-04-25 21:32     ` Tobin Davis
2008-04-25 21:55       ` Mark Brown [this message]
2008-04-25 21:40     ` Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2008-04-25 19:29 Sean Thayne
2008-04-25 19:28 Sean Thayne

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=20080425215531.GC25041@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=rjarzmik@free.fr \
    --cc=sthayne@summitmediagroupllc.com \
    --cc=tdavis@dsl-only.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.