Problem recording, using <SiS 7012>
Watanabe Kazuhiro
CQG00620 at nifty.ne.jp
Wed Jun 6 16:20:53 UTC 2007
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 at 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 at nifty.ne.jp)
More information about the freebsd-multimedia
mailing list