Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Nov 2010 14:03:48 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        Alexander Motin <mav@freebsd.org>
Cc:        freebsd-multimedia@freebsd.org, FreeBSD-Current <freebsd-current@freebsd.org>
Subject:   Re: laptop Acer Aspire One D250 / snd_hda(4) && internal mic not recording
Message-ID:  <20101109130348.GA10059@current.Sisis.de>
In-Reply-To: <4CD33E0B.1070304@FreeBSD.org>
References:  <mailpost.1288909470.2243046.60683.mailing.freebsd.current@FreeBSD.cs.nctu.edu.tw> <4CD337DA.7030902@FreeBSD.org> <20101104230735.GA6686@current.Sisis.de> <4CD33E0B.1070304@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
El día Friday, November 05, 2010 a las 01:13:15AM +0200, Alexander Motin escribió:

> Matthias Apitz wrote:
> > El día Friday, November 05, 2010 a las 12:46:50AM +0200, Alexander Motin escribió:
> >> Matthias Apitz wrote:
> >>> mixer(1) let me set for recoding only 'mic' or 'rec'. I'm attaching as
> >>> well the output of verbose messages grep'ed for pcm and hdac.
> >> Your CODEC configured to provide built-in microphone on separate device
> >> pcm1. You may record from there (Skype allows to choose device) or
> >> reconfigure CODEC using hints.
> > 
> > In Skype in let me choose between
> > /dev/dsp
> > /dev/dsp0
> > /dev/dsp1
> > 
> > When I set mic to /dev/dsp0 it records from the jack (headphone mic),
> > when I set it to /dev/dsp1 there is no recording. And the mixer for the
> > pcm1 says:
> > 
> > # mixer -f /dev/mixer1
> > Mixer rec      is currently set to 100:100
> > Mixer monitor  is currently set to 100:100
> > Recording source: monitor
> 
> That's strange. I would expect it working.
> 
> > Would you be so kind and give me the lines for reconfigure CODEC using
> > hints? I'm really lost in this.
> 
> OK, try this:
> hint.hdac.0.cad0.nid18.config="as=2 seq=1"

Hi Alexander,

While trying to get understandig of the verbose boot messages of
snd_hda(4), I found the following which seems to match the problem (only recording
from Jack):

hdac0:  nid 18 0x99a30930 as  3 seq  0           Mic Fixed jack  3 loc 25 color Unknown misc 9
...
hdac0:  nid 24 0x03a19820 as  2 seq  0           Mic  Jack jack  1 loc 3 color    Pink misc 8

i.e. the nid's are 18 (internal mic) and 24 (Jack);

But in the DUMPING's Playback/Record Paths the nid=18 and nid=24 look
different:

24:

pcm0: Record:
pcm0:
pcm0:     nid=8 [audio input]
pcm0:       |
pcm0:       + <- nid=35 [audio mixer] [src: mic, mix]
pcm0:              |
pcm0:              + <- nid=24 [pin: Mic (Pink Jack)] [src: mic]
pcm0:              + <- nid=11 [audio mixer] [src: mix]
pcm0:
pcm0: Input Mix:
pcm0:
pcm0:     nid=11 [audio mixer]
pcm0:       |
pcm0:       + <- nid=24 [pin: Mic (Pink Jack)] [src: mic]


18:

pcm1: Record:
pcm1:
pcm1:     nid=9 [audio input]
pcm1:       |
pcm1:       + <- nid=34 [audio mixer] [src: monitor]
pcm1:              |
pcm1:              + <- nid=18 [pin: Mic (Fixed)] [src: monitor]

(there is no 'Input Mix:' section part for nid=18)

Can this cause the problem?

What else could I debug to nail this down?

Thanks

	matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <guru@unixarea.de> - w http://www.unixarea.de/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101109130348.GA10059>