From owner-freebsd-current@FreeBSD.ORG Sat May 4 12:21:31 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E0673408 for ; Sat, 4 May 2013 12:21:31 +0000 (UTC) (envelope-from daemon@dx.burplex.com) Received: from dx.burplex.com (dx.burplex.com [50.197.134.185]) by mx1.freebsd.org (Postfix) with ESMTP id D21E4178F for ; Sat, 4 May 2013 12:21:31 +0000 (UTC) Received: by dx.burplex.com (Postfix, from userid 1) id D1E5836F4B4A; Sat, 4 May 2013 00:28:35 -0700 (PDT) To: Sean Bruno Subject: Re: Audio Hints, T520? From: Waitman Gobble X-UUID-HOR: 915a4c85-b47a-11e2-910d-902b34a86bc3 Message-Id: <20130504072835.D1E5836F4B4A@dx.burplex.com> Date: Sat, 4 May 2013 00:28:35 -0700 (PDT) Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 May 2013 12:21:31 -0000 On Fri, 03 May 2013 22:22:01 -0700, Sean Bruno wrote: > >On Fri, 2013-05-03 at 22:03 -0700, Waitman Gobble wrote: >> what is the output of running the command 'mixer'? > >$ mixer >Mixer vol is currently set to 95:95 >Mixer pcm is currently set to 100:100 >Mixer speaker is currently set to 100:100 >Mixer mic is currently set to 100:100 >Mixer rec is currently set to 67:67 >Recording source: mic > > >All looks well to me. > >Sean > I agree. It looks like it should work. sorry not to have more info to help, After reading the man page for snd_hda and dev/snd/pcm/dsp.c src I don't think you *need* hints in /boot/loader.conf to make it work, but you can re-arrange 'pins' and set auto stuff, like plugging headphones in selects the device. i think. here's some stuff to check. I am *guessing* it's 'recording' from a different pin/device?? on this machine : [1070] > syscntl hw.snd.default_unit hw.snd.default_unit: 3 [1071] > dmesg | grep pcm3 pcm3: at nid 20 and 24,26 on hdaa1 [1072] > sysctl -a | grep nid20 dev.hdaa.1.nid20: pin: Line-out (Green Jack) dev.hdaa.1.nid20_config: 0x01014410 as=1 seq=0 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Green misc=4 dev.hdaa.1.nid20_original: 0x01014410 as=1 seq=0 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Green misc=4 [1073] > sysctl -a | grep nid24 dev.hdaa.1.nid24: pin: Mic (Pink Jack) dev.hdaa.1.nid24_config: 0x01a19c40 as=4 seq=0 device=Mic conn=Jack ctype=1/8 loc=Rear color=Pink misc=12 dev.hdaa.1.nid24_original: 0x01a19c40 as=4 seq=0 device=Mic conn=Jack ctype=1/8 loc=Rear color=Pink misc=12 I think there's probably a pink jack on the back of the machine where i can plug up a mic. a thought, did you already experiment to see if you can record something from oss /dev/dsp devices? I browsed through the source but I don't understand, at the moment, how to 'know' which /dev/dsp maps to pcm. [1044] > ls /dev/dsp* /dev/dsp0.1 /dev/dsp2.1 /dev/dsp4.1 /dev/dsp1.1 /dev/dsp3.1 /dev/dsp5.1 (based on previous matthias post) [1045] > dd if=/dev/dspN of=/tmp/bite [1046] > cat /tmp/bite > /dev/dspOUT_DEVICE -- Waitman Gobble San Jose California USA +1.5108307875