From owner-freebsd-current@FreeBSD.ORG Thu Nov 4 20:04:22 2010 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 3149C1065672 for ; Thu, 4 Nov 2010 20:04:22 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx23.fluidhosting.com [204.14.89.6]) by mx1.freebsd.org (Postfix) with ESMTP id C6B388FC13 for ; Thu, 4 Nov 2010 20:04:21 +0000 (UTC) Received: (qmail 31035 invoked by uid 399); 4 Nov 2010 20:04:20 -0000 Received: from localhost (HELO doug-optiplex.ka9q.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 4 Nov 2010 20:04:20 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4CD311C3.5000705@FreeBSD.org> Date: Thu, 04 Nov 2010 13:04:19 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101028 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <4CD30D47.5020101@FreeBSD.org> In-Reply-To: <4CD30D47.5020101@FreeBSD.org> X-Enigmail-Version: 1.1.2 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Problems with hda 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: Thu, 04 Nov 2010 20:04:22 -0000 On 11/04/10 12:45, Alexander Motin wrote: > Doug Barton wrote: >> Thanks to a generous FreeBSD user I have a shiny new Dell Optiplex 960, >> with the following device: >> >> hdac0: mem >> 0xf7adc000-0xf7adffff irq 16 at device 27.0 on pci0 >> hdac0: HDA Driver Revision: 20100226_0142 >> hdac0: HDA Codec #0: Analog Devices AD1984A >> pcm0: at cad 0 nid 1 on hdac0 >> pcm1: at cad 0 nid 1 on hdac0 >> >> There's 2 problems. When I plug the headphones in there are sounds, >> sometimes a low-level sound like a tea kettle whistling, and sometimes a >> louder screeching sound. > > Try to play with mixer. Especially with "speaker", if you have it. Some > unconnected CODEC inputs may receive random radio interference from > other system components. Bang on! Setting speaker to 0:0 instantly removed the random sounds. I assumed it was RFI from something, but I was using the windowmaker mixer app previously and thought I had already adjusted everything to 0. Silly of me not to check the command line version, thanks for the reminder. >> The other problem is that the front headphone >> jack doesn't work. The rear one works, but this is less than convenient. >> :) > > Have you tried to playback via pcm1? It could go exactly there. 2 for 2! The magic is hw.snd.default_unit=1 >> Windows and ubuntu linux do not have either problem with the same >> hardware. > > Linux and Windows often have hardcoded drivers for specific hardware. > Our driver tries to be universal and honor standards, unluckily often > violated by BIOS makers. So, same song, $N'th verse? :) > For more information about CODEC and it's configuration you need to get > verbose dmesg. Details are in snd_hda(4). Thank you for your excellent help, I learned something today. :) Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/