Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Eliot Blennerhassett <linux@audioscience.com>
Cc: Raymond Yau <superquad.vortex2@gmail.com>,
	ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: Help wanted: emachines em350 internal mic
Date: Tue, 07 Dec 2010 17:12:44 +0100	[thread overview]
Message-ID: <s5hy681ftoj.wl%tiwai@suse.de> (raw)
In-Reply-To: <4CFDA5FF.6060403@audioscience.com>

At Tue, 07 Dec 2010 16:11:59 +1300,
Eliot Blennerhassett wrote:
> 
> Thanks Raymond,
> 
> On 03/12/10 15:33, Raymond Yau wrote:
> >>> Greetings,
> > 
> > 
> >>> There is only a single mic on this netbook. However, the alsa device
> >>> shows up as stereo, and the right channel carries an inverted copy of
> >>> the left channel.
> > 
> > http://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=59c774ed5ee00e9623a204c3234191d6a6d8cf7a
> 
> Commitlog was "Add route_policy copy to HDA-Intel.conf for capture
> Since some digital mics have the phase-inversion problem in one channel,
> adding both channels for mono stream results in the noise. Use
> route_policy copy to avoid that situation."
> 
> As far as I can guess, the commit helps when an application asks to
> record mono from the stereo device, by copying L rather than summing L+R
> 
> My machine already has this, however it doesn't really fix the root of
> the problem.
> 
> Because the internal mic appears as a stereo device, rather than a mono,
> applications can open it as stereo.
> 
> Only later when the resulting signal L+R is sent to a mono output does
> the signal "disappear".
> 
> So I'm back to wondering how to force an app (primarily PulseAudio) to
> see the mic as mono?

Via pulse configuration?

> (I think the external jack is also only mono, at least when used as a
> mic input?)

I'm not sure about it.  Many devices are indeed stereo mics,
especially with HD-audio.


The problem is that you seem to have a PDM module for digital mics
by FortMedia, which shows this behavior.  I guess this was primarily
for noise canceling.  For Windows, FM provides a special driver, so
this was handled there.

In the case of ALSA, it's not quite easy.  Since the hardware really
gives the stereo signal, and this isn't informed to the software side
at all, the upper layer can't know it.  And, reverting in the kernel
side doesn't sound right, if it's only about PA.  (Non-PA stuff has
already a 'workaround'.)

So, we need a few steps:
 - Implement a kernel ABI to inform some h/w feature like this
 - Implement alsa-lib API to propagate it
 - Implement the handling in PA alsa module


Takashi

  parent reply	other threads:[~2010-12-07 16:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-03  2:33 Help wanted: emachines em350 internal mic Raymond Yau
2010-12-07  3:11 ` Eliot Blennerhassett
2010-12-07  3:43   ` Raymond Yau
2010-12-07 16:12   ` Takashi Iwai [this message]
2010-12-08  4:13     ` Raymond Yau
2010-12-09 20:27     ` Eliot Blennerhassett
2010-12-08  7:12   ` Raymond Yau
  -- strict thread matches above, loose matches on Subject: below --
2010-11-30  6:56 Eliot Blennerhassett

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=s5hy681ftoj.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=linux@audioscience.com \
    --cc=superquad.vortex2@gmail.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