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

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.)

> > > 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.
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.

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

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?


thanks,

Takashi

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

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <491506DB.1070000@gmail.com>
     [not found] ` <491506DB.1070000-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-11-08 11:57   ` Bugs on aspire one A150 Alan Jenkins
2008-11-09  0:52     ` Maxim Levitsky
     [not found]       ` <49163435.20301-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-11-09  8:54         ` [alsa-devel] " Takashi Iwai
2008-11-09 13:31           ` Andreas Mohr
2008-11-09 15:13           ` Andreas Mohr
     [not found]             ` <20081109151323.GA18705-p/qQFhXj4MHA4IYVXhSI5GHfThorsUsI@public.gmane.org>
2008-11-09 18:58               ` [alsa-devel] " Takashi Iwai
2008-11-09 20:09                 ` Andreas Mohr
     [not found]                   ` <20081109200929.GA29333-p/qQFhXj4MHA4IYVXhSI5GHfThorsUsI@public.gmane.org>
2008-11-12 11:08                     ` [alsa-devel] " Takashi Iwai
2008-11-12 17:07                       ` Maxim Levitsky
     [not found]                         ` <491B0D38.1050207-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-11-12 18:05                           ` [alsa-devel] " Andreas Mohr
     [not found]                             ` <20081112180519.GA21919-p/qQFhXj4MHA4IYVXhSI5GHfThorsUsI@public.gmane.org>
2008-11-14 18:05                               ` Maxim Levitsky
     [not found]                                 ` <491DBDEA.9010104-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-11-22 19:00                                   ` Maxim Levitsky
2008-11-22 19:43                                     ` Andreas Mohr
     [not found]                                     ` <492856C2.8000707-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-11-24 14:35                                       ` [alsa-devel] " Takashi Iwai
2009-03-15  9:21                                         ` Andreas Mohr
2009-03-16 12:03                                           ` Andreas Mohr
     [not found]                                             ` <20090316120312.GA19299-p/qQFhXj4MHA4IYVXhSI5GHfThorsUsI@public.gmane.org>
2009-03-16 12:09                                               ` [alsa-devel] " Takashi Iwai
2009-03-16 13:30                                                 ` Andreas Mohr
     [not found]                                                   ` <20090316133001.GA8437-p/qQFhXj4MHA4IYVXhSI5GHfThorsUsI@public.gmane.org>
2009-03-16 14:18                                                     ` [alsa-devel] " Takashi Iwai
2009-03-16 14:31                                                       ` Andreas Mohr
2009-03-16 14:42                                                         ` Takashi Iwai
2009-03-16 14:50                                                           ` Andreas Mohr
     [not found]                                                             ` <20090316145036.GA26358-p/qQFhXj4MHA4IYVXhSI5GHfThorsUsI@public.gmane.org>
2009-03-16 15:34                                                               ` [alsa-devel] " Takashi Iwai
2009-03-16 16:02                                                                 ` Andreas Mohr
2009-03-16 16:06                                                                   ` Takashi Iwai
     [not found]                                                                     ` <s5hwsappi44.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
2009-03-16 16:19                                                                       ` [alsa-devel] " Takashi Iwai
2009-03-16 17:00                                                                         ` Andreas Mohr
2009-03-16 17:15                                                                           ` Takashi Iwai [this message]
     [not found]                                                                             ` <s5hljr5pex0.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
2009-03-16 17:30                                                                               ` [alsa-devel] " Andreas Mohr
     [not found]                                                                                 ` <20090316173000.GA25647-p/qQFhXj4MHA4IYVXhSI5GHfThorsUsI@public.gmane.org>
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
     [not found]                                                                                           ` <20090316212227.GA29471-p/qQFhXj4MHA4IYVXhSI5GHfThorsUsI@public.gmane.org>
2009-03-17  0:52                                                                                             ` [alsa-devel] " Maxim Levitsky
2009-03-17  7:57                                                                                               ` Takashi Iwai
     [not found]                                                                                                 ` <s5heiwwzim7.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
2009-03-17 11:30                                                                                                   ` [alsa-devel] " Maxim Levitsky
2009-03-17 12:52                                                                                                     ` Takashi Iwai
2009-03-17  7:57                                                                                           ` Takashi Iwai
     [not found]                                                                                             ` <s5hfxhczinh.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
2009-03-17 10:05                                                                                               ` [alsa-devel] " Andreas Mohr
2009-03-17 10:38                                                                                                 ` Andreas Mohr
     [not found]                                                                                                   ` <20090317103845.GA26007-p/qQFhXj4MHA4IYVXhSI5GHfThorsUsI@public.gmane.org>
2009-03-17 10:47                                                                                                     ` [alsa-devel] " Andreas Mohr
2009-03-17 11:25                                                                                                       ` Takashi Iwai
     [not found]                                                                                                         ` <s5h3adcpf1i.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
2009-03-17 16:18                                                                                                           ` [alsa-devel] " 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
     [not found]                                                                                                                       ` <s5hmybgnddc.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
2009-03-22 12:55                                                                                                                         ` [alsa-devel] " Andreas Mohr
     [not found]                                                                                                                           ` <20090322125517.GA26498-p/qQFhXj4MHA4IYVXhSI5GHfThorsUsI@public.gmane.org>
2009-03-23  6:51                                                                                                                             ` Takashi Iwai
2008-11-12 17:20                       ` Maxim Levitsky
     [not found]                       ` <s5hiqqtkxqr.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
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
     [not found]     ` <49157E97.60503-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
2008-11-14 19:06       ` Maxim Levitsky
     [not found]         ` <491DCC21.6060705-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-11-14 19:59           ` Alan Jenkins
     [not found]             ` <61b223ba0811141159k179558d0i60cebf373baa9fb8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-11-15 12:52               ` Maxim Levitsky
2008-11-15 12:55                 ` Matthew Garrett

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=s5hljr5pex0.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=andi@lisas.de \
    --cc=kernel-testers@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maximlevitsky@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;
as well as URLs for NNTP newsgroup(s).