mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Liam Girdwood <lg@opensource.wolfsonmicro.com>
To: Nobin Mathew <nobin.mathew@gmail.com>
Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: Re: [alsa-devel] Mic and Line In Capture AC97 slots issue
Date: Thu, 10 May 2007 11:48:59 +0100	[thread overview]
Message-ID: <1178794139.10518.12.camel@a10072.wolfsonmicro.main> (raw)
In-Reply-To: <8d6898730705091415s74685223r4c4409e87ff587c@mail.gmail.com>

On Thu, 2007-05-10 at 02:45 +0530, Nobin Mathew wrote:
> http://mailman.alsa-project.org/pipermail/alsa-devel/2007-May/000835.html
> http://mailman.alsa-project.org/pipermail/alsa-devel/2007-May/000837.html
> 
> the overrun  issue was because my application was not fast enough.
> 
> I resolved that problem by disabling capture of AC-Link slot4 in my
> ac97 controller.
> So capture happens only in slot3.
> 
> According to ac97 spec Mic comes in Slot6 of AC-Link.
> 
> I am using wolfson wm9713 codec.
> 
> In this LineR and LineL are routed to LeftADC and RightADC.
> 
> And Mic1 (Mic A) is also coonected to LeftADC and RightADC.
> 
> 
> So i am assuming that Mic 1 will come in Slot3 and Slot4.
> 
> But my application is taking only mono data, so XRUN will happen.
> 
> 
> What is the correct configuration for this?
> What should be the configuration if i want to capture both Line IN and Mic?
> means AC-Link settings
> 

At least 2 AC97 slots must be active in order to capture 2 separate
channels (i.e. Mic1 and Line II). Hence, you will need to enable slots 3
& 4 for _stereo_ audio capture.

Mono capture (1 AC97 slot) of Mic1, Line R & L can be accomplished on
the WM9713 by mixing all the required signals into the Mono mixer and
capturing the mixer output with either the left ADC (slot 3) or the
right ADC (slot 4). The easiest way to set this up is to look at the
audio diagram on page 13 of the datasheet and run alsamixer to change
the mixers. alsactl can then be used to store your mixer settings.

Liam


      reply	other threads:[~2007-05-10 10:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-09 21:15 Nobin Mathew
2007-05-10 10:48 ` Liam Girdwood [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=1178794139.10518.12.camel@a10072.wolfsonmicro.main \
    --to=lg@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nobin.mathew@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

all inboxes | Powered by JetHome®