From owner-freebsd-multimedia@FreeBSD.ORG Wed Jun 6 16:20:53 2007 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A8F0516A46D for ; Wed, 6 Jun 2007 16:20:53 +0000 (UTC) (envelope-from CQG00620@nifty.ne.jp) Received: from mail.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.freebsd.org (Postfix) with ESMTP id 6893B13C46A for ; Wed, 6 Jun 2007 16:20:52 +0000 (UTC) (envelope-from CQG00620@nifty.ne.jp) Received: from asahi-net.jp (i222206.ppp.asahi-net.or.jp [61.125.222.206]) by mail.asahi-net.or.jp (Postfix) with ESMTP id 995E53DFA5; Thu, 7 Jun 2007 01:20:49 +0900 (JST) Date: Thu, 07 Jun 2007 01:20:49 +0900 From: Watanabe Kazuhiro To: freebsd-multimedia In-Reply-To: <20070605163410.GA1496@ige.unicamp.br> References: <20070510115120.GB1716@ige.unicamp.br> <20070602124938.8F5123E054@mail.asahi-net.or.jp> <20070604140241.GA1474@ige.unicamp.br> <20070605145944.B750E3C23C@mail.asahi-net.or.jp> <20070605163410.GA1496@ige.unicamp.br> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/20.7 (i386--freebsd) MULE/4.1 (AOI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Message-Id: <20070606162049.995E53DFA5@mail.asahi-net.or.jp> Cc: Subject: Re: Problem recording, using X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 16:20:53 -0000 At Tue, 5 Jun 2007 13:34:10 -0300, Ricardo Campos Passanezi wrote: > On Tue, Jun 05, 2007 at 11:59:44PM +0900, Watanabe Kazuhiro wrote: > > At Mon, 4 Jun 2007 11:02:41 -0300, > > Ricardo Campos Passanezi wrote: > > > On Sat, Jun 02, 2007 at 09:49:38PM +0900, Watanabe Kazuhiro wrote: > > > > Hello. > > > > > > > > If you still cannot solve the problem, try to set "igain" to 100 > > > > (e.g. mixer igain 100). This enables additional mic gain for AC97 > > > > codecs (typically +20dB boost). > > > > > > That didn't work, unfortunatly. > > > > > > I forgot to telli in my previous post that I was using RELENG_6_2. Now I > > > have RELENG_6 running. > > > > OK. > > > > Your motherboard (ASUS P5SD2-X) has two microphone inputs. Which did > > you connect the microphone to, the rear panel jack or the internal > > pinhead? > > To the rear panel. > > > > > Can you try to connect the microphone to the other microphone input? > > > > No I can't. > > > If you cannot do that, we have to try to enable both microphone inputs > > by the device driver. I'll make a patch. > > --- > > Watanabe Kazuhiro (CQG00620@nifty.ne.jp) It's the first patch. Try it. Index: sys/dev/sound/pcm/ac97.c =================================================================== RCS file: /home/ncvs/src/sys/dev/sound/pcm/ac97.c,v retrieving revision 1.53.2.5 diff -u -r1.53.2.5 ac97.c --- sys/dev/sound/pcm/ac97.c 13 May 2007 20:53:39 -0000 1.53.2.5 +++ sys/dev/sound/pcm/ac97.c 6 Jun 2007 15:45:42 -0000 @@ -141,7 +141,7 @@ { 0x41445372, 0x00, 0, "AD1981A", 0 }, { 0x41445374, 0x00, 0, "AD1981B", ad1981b_patch }, { 0x41445375, 0x00, 0, "AD1985", ad198x_patch }, - { 0x41445378, 0x00, 0, "AD1986", ad198x_patch }, + { 0x41445378, 0x00, 0, "AD1986", ad1986_patch }, { 0x414b4d00, 0x00, 1, "AK4540", 0 }, { 0x414b4d01, 0x00, 1, "AK4542", 0 }, { 0x414b4d02, 0x00, 1, "AK4543", 0 }, Index: sys/dev/sound/pcm/ac97_patch.c =================================================================== RCS file: /home/ncvs/src/sys/dev/sound/pcm/ac97_patch.c,v retrieving revision 1.3.2.2 diff -u -r1.3.2.2 ac97_patch.c --- sys/dev/sound/pcm/ac97_patch.c 26 Apr 2007 08:30:52 -0000 1.3.2.2 +++ sys/dev/sound/pcm/ac97_patch.c 6 Jun 2007 15:47:43 -0000 @@ -43,9 +43,23 @@ void ad198x_patch(struct ac97_info* codec) { + /* + * The mixer outputs drives SURR_OUT and HP_OUT. + */ ac97_wrcd(codec, 0x76, ac97_rdcd(codec, 0x76) | 0x0420); } +void ad1986_patch(struct ac97_info* codec) +{ + /* + * Enable both MIC1 and MIC2. + * XXX must be restricted only for particular models. + */ + ac97_wrcd(codec, 0x7a, ac97_rdcd(codec, 0x7a) | 0x0004); + + ad198x_patch(codec); +} + void ad1981b_patch(struct ac97_info* codec) { /* Index: sys/dev/sound/pcm/ac97_patch.h =================================================================== RCS file: /home/ncvs/src/sys/dev/sound/pcm/ac97_patch.h,v retrieving revision 1.3.2.2 diff -u -r1.3.2.2 ac97_patch.h --- sys/dev/sound/pcm/ac97_patch.h 26 Apr 2007 08:30:52 -0000 1.3.2.2 +++ sys/dev/sound/pcm/ac97_patch.h 6 Jun 2007 15:46:12 -0000 @@ -30,5 +30,6 @@ void ad1886_patch(struct ac97_info*); void ad198x_patch(struct ac97_info*); void ad1981b_patch(struct ac97_info*); +void ad1986_patch(struct ac97_info*); void cmi9739_patch(struct ac97_info*); void alc655_patch(struct ac97_info*); --- Watanabe Kazuhiro (CQG00620@nifty.ne.jp)