From owner-freebsd-current@FreeBSD.ORG Sat May 4 22:14:53 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9E632AB5 for ; Sat, 4 May 2013 22:14:53 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-oa0-f54.google.com (mail-oa0-f54.google.com [209.85.219.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6E4A92B2 for ; Sat, 4 May 2013 22:14:53 +0000 (UTC) Received: by mail-oa0-f54.google.com with SMTP id j1so2570733oag.27 for ; Sat, 04 May 2013 15:14:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=dTerhbiCmlgPZCnpZ7lVH4Y2iKTjMi6knMbkRT2M85w=; b=sD1y2tffmrV7fRMoAZ81VQCa/Oo/JBdenqxOCRn4gAB6M+2vyEThgGBri5/3xjp5oK mmSWiXAFviTzqa3yJ6ZJqeB7hkjjkKdAc1TZZKt+s0tIhDncU9rm7eUdtHSGOaOggX+/ BpPgKdFj+IDvKDHEZ1+D0mzOBV2AfyFkTEawiwCUrnhea2D1HcCD8F4yYolnFH1Uq8Ei GG2zxqBlxda5jYOr03teK+o+ReHCi75BdnBpVol78pR0/PcARYJ6cFpxNPsWp1/3lFFS Do52Few+2uKas7dp2K/pe+q2QlGL33BVkAdk9oB3czTN5HkE/DkzNAIN/5CsHa4jjW7y MydA== MIME-Version: 1.0 X-Received: by 10.182.84.135 with SMTP id z7mr4178136oby.35.1367705686907; Sat, 04 May 2013 15:14:46 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.76.12.167 with HTTP; Sat, 4 May 2013 15:14:46 -0700 (PDT) In-Reply-To: <20130504072835.D1E5836F4B4A@dx.burplex.com> References: <20130504072835.D1E5836F4B4A@dx.burplex.com> Date: Sat, 4 May 2013 15:14:46 -0700 X-Google-Sender-Auth: uF4u3sc4BjRvFiBcdzgfjBY3qCQ Message-ID: Subject: Re: Audio Hints, T520? From: Kevin Oberman To: Waitman Gobble Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Sean Bruno , FreeBSD Current 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 22:14:53 -0000 On Sat, May 4, 2013 at 12:28 AM, Waitman Gobble wrote: > 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 > > >From my /boot/loader.conf: # Load the sound driver snd_hda_load="YES" # and setup headphones # Out : speaker + headphones hint.hdac.0.cad0.nid25.config="as=1 seq=15" # In : mic + external mic hint.hdac.0.cad0.nid35.config="as=2" hint.hdac.0.cad0.nid27.config="as=2 seq=15" Works on my T520. -- R. Kevin Oberman, Network Engineer E-mail: rkoberman@gmail.com