mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andreas Mohr <andi@lisas.de>
To: Takashi Iwai <tiwai@suse.de>
Cc: Andreas Mohr <andi@lisas.de>,
	Maxim Levitsky <maximlevitsky@gmail.com>,
	linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org,
	Kernel Testers List <kernel-testers@vger.kernel.org>
Subject: Re: [alsa-devel] Bugs on aspire one A150
Date: Mon, 16 Mar 2009 18:30:00 +0100	[thread overview]
Message-ID: <20090316173000.GA25647@rhlx01.hs-esslingen.de> (raw)
In-Reply-To: <s5hljr5pex0.wl%tiwai@suse.de>

Hi,

On Mon, Mar 16, 2009 at 06:15:39PM +0100, Takashi Iwai wrote:
> At Mon, 16 Mar 2009 18:00:15 +0100,
> Andreas Mohr wrote:
> > 
> > Hi,
> > 
> > On Mon, Mar 16, 2009 at 05:19:38PM +0100, Takashi Iwai wrote:
> > > At Mon, 16 Mar 2009 17:06:35 +0100,
> > > 私 wrote:
> > > > 
> > > > > > What are "sliders"?
> > > > > 
> > > > > Umm, volume level controls.
> > > > 
> > > > Yes but there are many of such :)
> > > > 
> > > > More exactly, from the driver perspective, there are no volume
> > > > controls but only there are control elements with integer values.
> > > > Do you mean "Capture Volume" control or which one?
> > 
> > Hmm, ok, this needs to be more precise:
> > In gamix (codec "HDA Intel : Realtek ALC268"), the Capture Volume control.
> 
> Yeah, that's more understandable :)
> 
> BTW, does "Capture Volume" influence on the recording level even for
> the built-in mic, right?  I'm asking this because the digital mic on
> STAC/IDT codecs isn't controlled via "Capture Volume" control that is
> bound to an ADC widget.  (That's why "Digital Capture Volume" control
> exists.  It's a value used by alsa-lib softvol plugin for "default"
> PCM.)

Yes, Capture Volume does influence i-Mic level.
The Digital Capture control, however, doesn't influence level.
As doesn't the Mic Boost Capture control (probably about e-Mic only?).

> > > > And, is the behavior consistent regardless of the value high, i.e.
> > > > the key is only whether the values for both channels are identical?
> > > 
> > > BTW, what if you record with the following definition?
> > > Put the below to ~/.asoundrc
> > > 
> > > pcm.imix {
> > > 	type plug
> > > 	slave.pcm "hw"
> > > 	ttable.0.0 0.5
> > > 	ttable.0.1 -0.5
> > > }
> > > 
> > > and record like
> > > 
> > > 	% aplay -Dimix -c1 foo.wav
> > 
> > Does NOT exhibit the "equal sliders == no sound" bug (apart from this sliders
> > are acting normally, i.e. slider low == no sound), despite being a
> > "plug" type definition (this is what you wanted to discern, right? ;).
> 
> Interesting.  This implies that one channel is inverted indeed.

Oh, you mean "inverted" as in "_hardware_ channel which provides opposite
sample values as compared to the other channel"?

> As default the alsa-lib plugin downmixes a stereo stream to a mono
> stream simply  by left/2 + right/2.  The above changes the routing
> policy as left/2 - right/2.

That exactly matches my current stream of thought (while reading
"one channel is inverted" above).

> So we need to pass some information to change this kind of thing...

That's something specific to ALC268 codec setup, right?
("ALC268 digital mic == left plus right channel, but inverted setup"?)

> But a question still remains; why conversion with sox worked.
> Maybe it didn't mix?  Or, the code alsa-lib could be buggy...
> 
> A simple test would be to just sum all 16bit samples in a stereo
> stream file externally.  That is, first record a RAW file via
> 
> 	% arecord -Dhw -traw -fdat foo.dat
> 
> Then create a mono stream just do 16bit left/2 + right/2 calculation
> by any way (a good homework for kids :).  Is it also problematic?

OK, I know what you're up to, I'll do this external proof ASAP,
will take a couple more minutes.

Andreas

  reply	other threads:[~2009-03-16 17:30 UTC|newest]

Thread overview: 96+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-08  3:26 Maxim Levitsky
2008-11-08 11:57 ` Alan Jenkins
2008-11-09  0:52   ` Maxim Levitsky
2008-11-09  8:54     ` [alsa-devel] " Takashi Iwai
2008-11-09 13:31       ` Andreas Mohr
2008-11-09 15:13       ` Andreas Mohr
2008-11-09 18:58         ` Takashi Iwai
2008-11-09 20:09           ` Andreas Mohr
2008-11-12 11:08             ` Takashi Iwai
2008-11-12 17:07               ` Maxim Levitsky
2008-11-12 18:05                 ` Andreas Mohr
2008-11-14 18:05                   ` Maxim Levitsky
2008-11-22 19:00                     ` Maxim Levitsky
2008-11-22 19:43                       ` Andreas Mohr
2008-11-24 14:35                       ` Takashi Iwai
2009-03-15  9:21                         ` Andreas Mohr
2009-03-16 12:03                           ` Andreas Mohr
2009-03-16 12:09                             ` Takashi Iwai
2009-03-16 13:30                               ` Andreas Mohr
2009-03-16 14:18                                 ` Takashi Iwai
2009-03-16 14:31                                   ` Andreas Mohr
2009-03-16 14:42                                     ` Takashi Iwai
2009-03-16 14:50                                       ` Andreas Mohr
2009-03-16 15:34                                         ` Takashi Iwai
2009-03-16 16:02                                           ` Andreas Mohr
2009-03-16 16:06                                             ` Takashi Iwai
2009-03-16 16:19                                               ` Takashi Iwai
2009-03-16 17:00                                                 ` Andreas Mohr
2009-03-16 17:15                                                   ` Takashi Iwai
2009-03-16 17:30                                                     ` Andreas Mohr [this message]
2009-03-16 17:34                                                       ` Takashi Iwai
2009-03-16 18:06                                                         ` Andreas Mohr
2009-03-16 20:28                                                           ` Takashi Iwai
2009-03-16 21:22                                                             ` Andreas Mohr
2009-03-17  0:52                                                               ` Maxim Levitsky
2009-03-17  7:57                                                                 ` Takashi Iwai
2009-03-17 11:30                                                                   ` Maxim Levitsky
2009-03-17 12:52                                                                     ` Takashi Iwai
2009-03-17  7:57                                                               ` Takashi Iwai
2009-03-17 10:05                                                                 ` Andreas Mohr
2009-03-17 10:38                                                                   ` Andreas Mohr
2009-03-17 10:47                                                                     ` Andreas Mohr
2009-03-17 11:25                                                                       ` Takashi Iwai
2009-03-17 16:18                                                                         ` Andreas Mohr
2009-03-17 20:32                                                                           ` Takashi Iwai
2009-03-18  9:05                                                                             ` Andreas Mohr
2009-03-18  9:19                                                                               ` Takashi Iwai
2009-03-20 18:56                                                                                 ` Andreas Mohr
2009-03-20 20:33                                                                                   ` Takashi Iwai
2009-03-22 12:55                                                                                     ` Andreas Mohr
2009-03-23  6:51                                                                                       ` Takashi Iwai
2008-11-12 17:20               ` Maxim Levitsky
2008-11-12 18:53               ` HDA-emu 0.0.1 (Re: [alsa-devel] Bugs on aspire one A150) Takashi Iwai
2008-11-09 10:43     ` Bugs on aspire one A150 Alan Jenkins
2008-11-12 17:48       ` Maxim Levitsky
2008-11-14 19:06   ` Maxim Levitsky
2008-11-14 19:59     ` Alan Jenkins
2008-11-15 12:52       ` Maxim Levitsky
2008-11-15 12:55         ` Matthew Garrett
2008-11-10 16:51 ` Bob Copeland
2008-11-10 21:33   ` Maxim Levitsky
2008-11-10 22:12     ` [ath5k-devel] " Nick Kossifidis
2008-11-12 17:51       ` Maxim Levitsky
2008-11-13 14:58         ` Bob Copeland
2008-11-14  3:47         ` Bob Copeland
2008-11-14 18:57           ` Maxim Levitsky
2008-11-17 17:28             ` Bob Copeland
2008-11-17 18:55               ` Maxim Levitsky
2008-12-01 15:33       ` Maxim Levitsky
2008-12-13 13:28       ` Maxim Levitsky
2008-12-13 14:08         ` Nick Kossifidis
2008-12-13 14:36           ` Maxim Levitsky
2008-12-13 14:38             ` Maxim Levitsky
2008-12-13 14:24         ` Bob Copeland
2008-12-13 14:31           ` Maxim Levitsky
2008-12-30  4:26           ` Bob Copeland
2008-12-30 12:43             ` Maxim Levitsky
2008-12-31  9:18               ` Andreas Mohr
2008-12-31 13:59                 ` Andreas Mohr
2008-12-31 14:06                   ` Bob Copeland
2008-12-31 14:03                 ` Bob Copeland
2008-12-31 16:51                   ` Maxim Levitsky
2009-01-01 13:41                     ` Andreas Mohr
2009-01-01 14:15                       ` Maxim Levitsky
2009-01-01 20:27                         ` Andreas Mohr
2009-01-01 15:09                       ` Bob Copeland
2008-12-13 13:15 ` Maxim Levitsky
2008-12-13 13:35   ` Rafael J. Wysocki
2008-12-13 14:21     ` Maxim Levitsky
2008-12-13 17:42       ` Rafael J. Wysocki
2008-12-13 18:04         ` Maxim Levitsky
2008-12-14 22:29   ` J.A. Magallón
2008-12-14 22:57   ` J.A. Magallón
2008-12-14 23:18     ` Maxim Levitsky
2008-12-14 23:24       ` J.A. Magallón
2008-12-14 23:35   ` J.A. Magallón

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=20090316173000.GA25647@rhlx01.hs-esslingen.de \
    --to=andi@lisas.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=kernel-testers@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maximlevitsky@gmail.com \
    --cc=tiwai@suse.de \
    /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®