alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Patrick Lai <plai@codeaurora.org>
Cc: alsa-devel <alsa-devel@alsa-project.org>,
	Liam Girdwood <lrg@slimlogic.co.uk>
Subject: Re: Query - ASoC headphone detection stereo vs. mono
Date: Fri, 1 Apr 2011 06:56:48 +0900	[thread overview]
Message-ID: <20110331215647.GC21726@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <4D94C7C2.8050109@codeaurora.org>

On Thu, Mar 31, 2011 at 11:28:18AM -0700, Patrick Lai wrote:
> I would like to get a better understanding on how to propagate
> channel mode of inserted headphone through soc-jack framework? I
> looked at jack.h and I don't see any definition of channel mode. I
> would assume that user-space needs this information in order to set
> up the path in the audio CODEC properly such as mixing stereo
> content into mono stream inside CODEC. How is use case handled on
> other platform?

Generally this is handled by taking advantage of the fact that from the
fact that when you connect a mono headphone it shorts left and right
channels together so you should get audio out with a combination of the
two channels.  Quality won't be great and you could save power with
mono playback but it should work and probably you're not doing lengthy
playback if you only have mono output.

I think most people are working on the basis that mono headphones are so
vanishingly rare these days that it's just not worth worrying about them
- music playback is so common that even low end devices support it and
it's getting hard to find mono headsets out there.

We could slot it in relatively easily, we'd just need to add separate
reports for left and right channels inside the kernel and then either
ignore it for userspace or come up with some sane way of propagating the
information out there too.  Like Liam says we can discuss this at the
conference if nobody comes up with a patch by then.

      parent reply	other threads:[~2011-03-31 21:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-31 18:28 Query - ASoC headphone detection stereo vs. mono Patrick Lai
2011-03-31 21:35 ` Liam Girdwood
2011-03-31 21:56 ` 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=20110331215647.GC21726@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=lrg@slimlogic.co.uk \
    --cc=plai@codeaurora.org \
    /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).