Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759564AbYFLKp2 (ORCPT ); Thu, 12 Jun 2008 06:45:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755859AbYFLKpT (ORCPT ); Thu, 12 Jun 2008 06:45:19 -0400 Received: from cantor2.suse.de ([195.135.220.15]:55539 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755424AbYFLKpS (ORCPT ); Thu, 12 Jun 2008 06:45:18 -0400 Date: Thu, 12 Jun 2008 12:45:16 +0200 Message-ID: From: Takashi Iwai To: "Daniel J Blueman" Cc: "Linux Kernel" Subject: Re: ALC883 recording troubles... In-Reply-To: <6278d2220806111437m22b16795i9650bad8f93120e6@mail.gmail.com> References: <6278d2220806091259t47c9b070v269da0f5855ef014@mail.gmail.com> <6278d2220806111200g4f802885wfc5f0fd6c0405efb@mail.gmail.com> <6278d2220806111437m22b16795i9650bad8f93120e6@mail.gmail.com> User-Agent: Wanderlust/2.12.0 (Your Wildest Dreams) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 MULE XEmacs/21.5 (beta28) (fuki) (x86_64-suse-linux) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3410 Lines: 87 At Wed, 11 Jun 2008 22:37:49 +0100, Daniel J Blueman wrote: > > On Wed, Jun 11, 2008 at 8:00 PM, Daniel J Blueman > wrote: > > On Tue, Jun 10, 2008 at 6:59 AM, Takashi Iwai wrote: > >> At Mon, 9 Jun 2008 20:59:00 +0100, > >> Daniel J Blueman wrote: > >>> > >>> Hi Takashi-san, > >>> > >>> I'm experiencing DC offset with the microphone on 2.6.24 (Ubuntu 8.04 > >>> LTS x86-64). I can see on Audacity that the DC offset that varies with > >>> the recording capture level. > >> > >> Could you elaborate? The mic bias level could be changed via the pin > >> control value. Usually, it's set as VREF 80%. > > > > When the recording->capture level is set to 0, the mic has no DC > > offset as expected. Maxing the recording->capture level, the mic input > > is saturated, in between, we see a linear connection. > > > >>> Plus, the mixer playback->mic-boost > >>> muting enables/disables mic-boost in recording. > >> > >> This is a known bug in alsa-lib mixer abstraction. No kernel issue. > > > >>> It feels like the ALC883 pins aren't configured quite right. The mobo > >>> is an Asus P5E-VM with current BIOS [1] > >>> > >>> What's the routine to debug this? Would it help to install windows, > >>> dump the register space and compare? > >> > >> You can find *.INI file that contains the default pin configuration > >> in Windows. This might be useful in the case BIOS is broken but > >> Windows does a black magic. > > > > That'll be these defaults stashed in the INF file [2]. Let me know if > > it's not what you expected and I'll publish the complete INF file. > > > >> Anyway, please run alsa-info.sh with --no-upload option and show the > >> generated file here. It contains the codec information and mixer > >> setup. > >> http://hg.alsa-project.org/alsa/raw-file/tip/alsa-info.sh > > > > See [3]. > > >> Also, you can adjust the pin setting on the fly via hda-verb utility > >> below: > >> http://ftp.suse.com/pub/people/tiwai/misc/hda-verb-0.2.tar.bz2 > >> > >> Don't forget to build snd-hda-intel module with > >> CONFIG_SND_HDA_HWDEP=y to use this command. > > > > I'll give this a shot if I get time. > > Looking at the datasheet and ALSA report, changing the front mic node > id also affects capturing from the (rear) mic input. Depends on the hardware implementation. But, usually, no, different pin widgets are assigned for front and mic jacks. > ftp://66.104.77.130/pc/audio/ALC883_DataSheet_1.3.pdf > > We get the "hda_codec: Unknown model for ALC883, trying auto-probe > from BIOS..." kernel message, so we may need to tweak > pci/hda/patch_realtek.c. Note that this is no error but information. The driver has preset models for known devices and use the static configuration table for such devices. For other devices, the driver just relies on BIOS setup. > Also, I can reproduce the problem the with HD > and legacy front-panel audio settings in the BIOS. Do you know a way > to dump eg the pin configuration in windows or other useful state, so > I can compare with all the possible node ID configuration values? Sorry, no, I've not booted Windows over years :) Takashi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/