From patchwork Tue Nov 3 17:49:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leann Ogasawara X-Patchwork-Id: 37524 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 7C64BB7B9D for ; Wed, 4 Nov 2009 04:52:12 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.60) (envelope-from ) id 1N5NY8-0003KB-5L; Tue, 03 Nov 2009 17:52:08 +0000 Received: from adelie.canonical.com ([91.189.90.139]) by chlorine.canonical.com with esmtp (Exim 4.60) (envelope-from ) id 1N5NVW-0001lY-6h for kernel-team@lists.ubuntu.com; Tue, 03 Nov 2009 17:49:27 +0000 Received: from hutte.canonical.com ([91.189.90.181]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1N5NVW-0001Ji-3U for ; Tue, 03 Nov 2009 17:49:26 +0000 Received: from c-76-105-148-120.hsd1.or.comcast.net ([76.105.148.120] helo=[192.168.1.3]) by hutte.canonical.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1N5NVV-0007PO-MV for kernel-team@lists.ubuntu.com; Tue, 03 Nov 2009 17:49:26 +0000 Subject: Re: [Jaunty] [Patch 3/3] SRU: Toshiba NB200 (Realtek ALC272) enable microphone From: Leann Ogasawara To: kernel-team In-Reply-To: <1257270382.25494.49.camel@emiko> References: <1257270382.25494.49.camel@emiko> Date: Tue, 03 Nov 2009 09:49:23 -0800 Message-Id: <1257270563.25494.52.camel@emiko> Mime-Version: 1.0 X-Mailer: Evolution 2.28.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.8 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com >From 6cb652880a1fd4593108f9501c79da826feab31e Mon Sep 17 00:00:00 2001 From: Leann Ogasawara Date: Thu, 27 Aug 2009 15:00:14 -0700 Subject: [PATCH] UBUNTU: SAUCE: Toshiba NB200 (Realtek ALC272) enable microphone OriginalAuthor: Andres Salomon OriginalLocation: Hardy LUM netbook-lpia branch BugLink: http://bugs.launchpad.net/bugs/438318 Enable microphone (and boost input volume) for the Toshiba NB200, Realtek ALC272 (Vendor ID: 0x10ec:0272, Subsystem ID: 0x1179:0xff6e, Revision ID: 0x100001). Code was forward ported from Hardy LUM (netbook-lpia branch). Signed-off-by: Leann Ogasawara Acked-by: Stefan Bader --- sound/pci/hda/patch_realtek.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 1b9f430..4e9474d 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -15349,6 +15349,11 @@ static struct hda_verb alc272_dell_zm1_init_verbs[] = { {} }; +static struct snd_kcontrol_new alc272_toshiba_mixer[] = { + HDA_CODEC_VOLUME("Front Mic Boost", 0x19, 0, HDA_INPUT), + { } /* end */ +}; + static struct hda_verb alc272_toshiba_init_verbs[] = { /* Front Pin: output 0 (0x0c) */ {0x17, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, /* 0x14 */ @@ -15358,6 +15363,7 @@ static struct hda_verb alc272_toshiba_init_verbs[] = { {0x14, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE}, /* 0x19 */ {0x17, AC_VERB_SET_EAPD_BTLENABLE, 2}, /* 0x14 */ {0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, /* originally 0x12 */ + {0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80}, {0x13, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, {0x16, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, @@ -16110,7 +16116,7 @@ static struct alc_config_preset alc662_presets[] = { .init_hook = alc663_m51va_inithook, }, [ALC272_TOSHIBA_NB200] = { - .mixers = { alc663_m51va_mixer }, + .mixers = { alc663_m51va_mixer, alc272_toshiba_mixer, alc662_capture_mixer }, .init_verbs = { alc662_init_verbs, alc272_toshiba_init_verbs }, .num_dacs = ARRAY_SIZE(alc662_dac_nids), .dac_nids = alc662_dac_nids,