From: Takashi Iwai Subject: Re: [PATCH] hda: STAC927x analog mic Date: Thu, 21 Feb 2008 08:09:55 +0100 Message-ID: References: <47BCE6D7.7000205@embeddedalley.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 7983D2432D for ; Thu, 21 Feb 2008 08:09:55 +0100 (CET) In-Reply-To: <47BCE6D7.7000205@embeddedalley.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Matthew Ranostay Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 20 Feb 2008 21:49:59 -0500, Matthew Ranostay wrote: > > Some laptops have a internal analog microphone that is not setup by the BIOS. > > Signed-off-by: Matthew Ranostay Applied to HG tree. BTW, are there boards / machines that have both analog and digital mics? Currently, we have "Digital Capture Volume". It was introduced as an alternative volume control for digital mics. But, this seems confusing people a lot because this volume works correctly at 50%, corresponding to 0dB. For systems that have only analog mics, this control doesn't make much sense. Thus, I would love to make this control depending on the presence of digital mic if possible... thanks, Takashi > --- > diff -r 6b53fa114faa pci/hda/patch_sigmatel.c > --- a/pci/hda/patch_sigmatel.c Tue Feb 19 15:03:57 2008 +0100 > +++ b/pci/hda/patch_sigmatel.c Wed Feb 20 17:11:51 2008 -0500 > @@ -3629,6 +3629,8 @@ static int patch_stac927x(struct hda_cod > spec->mixer = stac927x_mixer; > break; > case STAC_DELL_BIOS: > + /* configure the analog microphone on some laptops */ > + stac92xx_set_config_reg(codec, 0x0c, 0x90a79130); > /* correct the front output jack as a hp out */ > stac92xx_set_config_reg(codec, 0x0f, 0x02270110); > /* correct the front input jack as a mic */ >