From owner-freebsd-current@FreeBSD.ORG Fri Jan 9 07:36:08 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F6AC106564A; Fri, 9 Jan 2009 07:36:08 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.230]) by mx1.freebsd.org (Postfix) with ESMTP id 53A9B8FC0A; Fri, 9 Jan 2009 07:36:08 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so10688410rvf.43 for ; Thu, 08 Jan 2009 23:36:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=jH3NOq1AgdMTvtXYTtwE4qX8LF7ROPKZqsawlgtLIPw=; b=Co0Ly5dmBbCpOyqrL5C6bmcjtKSy5z+jR5UzeSPkvrM6CNW2wbJ2ID2nIU6SSXpZN9 VcPZH8nampTZYPYvB2vx63XKOgsn2yx3787Wm5nmGLMGDxYajuJyVZKV2JIfmjtpk08B cdgao2UHRHx9LPa+JjA4x8idOgZoD3WieFsUE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=xPZCGBy3UBi1/uEb9/MY1SMzYA3RoNUU7RLHJL8C+HcDgQB/M987d5QSUidnhR46UE 0w4LvOuO9x5vs+UO01xaPirR6b+Tpua6zc+amq+LsJSjUcp9NIxDCoj4wZxVAZ+iMaCw CKQLEned5Rfut9O7gLTlDbfnZvu6jO68tS81U= Received: by 10.141.161.6 with SMTP id n6mr12593038rvo.57.1231486567750; Thu, 08 Jan 2009 23:36:07 -0800 (PST) Received: by 10.140.135.2 with HTTP; Thu, 8 Jan 2009 23:36:07 -0800 (PST) Message-ID: <7d6fde3d0901082336o6291c3a8r5cbb91a89db13ef7@mail.gmail.com> Date: Thu, 8 Jan 2009 23:36:07 -0800 From: "Garrett Cooper" To: "Alexander Motin" In-Reply-To: <49664FD8.1060700@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7d6fde3d0901061032n72e9d0c4refe3c695f441c827@mail.gmail.com> <4963C4C0.6000509@FreeBSD.org> <7d6fde3d0901062029j694d63c1h66c52dfbb80c13d8@mail.gmail.com> <49647602.9060402@FreeBSD.org> <49649333.6060902@gmail.com> <7d6fde3d0901080937t29ec42f5i6684b9223d0b368a@mail.gmail.com> <49664FD8.1060700@FreeBSD.org> Cc: FreeBSD Current Subject: Re: snd_hda(4): getting line-in to work X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 09 Jan 2009 07:36:09 -0000 On Thu, Jan 8, 2009 at 11:11 AM, Alexander Motin wrote: > Garrett Cooper wrote: >> >> Ok, I got stuck again. Can you possibly push me in the right >> direction (complete verbose dmesg attached)? The line-in and SPDIF >> (not so much of a concern) are the only issues that I'm aware of. I'll >> have to open up my case and wire up the front ports in order to test >> them for you. > > Ok. Let's stop for a moment and start from the beginning, because now it is > already like a puzzle for me too. Let me explain once more what I see you > have and then you explain me where is your problem. > > You have 3 PCM devices configured: > - pcm0: 7.1 playback via 4 rear jacks (Green, Black, Orange and Grey) + > record from mic (front Pink), line (rear Blue), monitor (second mic, rear > Pink), cd (internal Black) or mix (sum of all these). > - pcm1: stereo playback via front Green jack. > - pcm2: SPDIF output > > As for me, this configuration is correct and good enough. You can record > from your line-in via pcm0 after selecting that source via `mixer =rec line` > command. You can playback via SPDIF by using pcm2 device. > > So what's wrong? What are you doing and what is not working and how? Ok, just checking my sanity, I started swapping around the plugs in the back, checking my connections, etc. I tried my mic, worked (the gain was a bit small, sound was _really_ distorted), then switched back to my line-in and sure enough, it now works :D. What changed since yesterday: - I hadn't set mixer_enable="YES" in rc.conf. This brought up a LOT more channels and options than I had originally. - Rebooted the machine with fixed device.hints (unchanged from the default :P). - I changed the volume for mix from 0:0 to 30:30. My summary (experience) thus far: So far the driver functions as expected, but the frequency response seems a bit off for the output -- it's really focused around the vocal range (the lower 3 frequencies on the audacity, iTunes, xmms equalizer -- forget the frequencies). It's not so bad with PCM sound, but It's really off with Line-in / Mic. Any hints or hacking I can do to adjust the voltage levels sent to the ADC's in the hardware? >> Also, the knobs that show up in xfce4-mixer are completely useless >> for snd_hda(4) (every time I move the sliders it sets the volume back >> to 0). Is this a known issue? > > You are the first. oss was complaining about a `unable to open mixer recording device: bad file descriptor' whenever I try and set the mixer levels by opening it up directly from the GUI. Interestingly enough when I opened up the mixer from an xterm, it worked 0-o.. However, I just toasted ~/.config/xfce4/mixer/* and now it works, so apparently it was bad cached preferences. Thanks! -Garrett