From owner-freebsd-questions@FreeBSD.ORG Tue Mar 2 23:50:17 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 707201065673 for ; Tue, 2 Mar 2010 23:50:17 +0000 (UTC) (envelope-from carmel_ny@hotmail.com) Received: from blu0-omc4-s6.blu0.hotmail.com (blu0-omc4-s6.blu0.hotmail.com [65.55.111.145]) by mx1.freebsd.org (Postfix) with ESMTP id 225608FC08 for ; Tue, 2 Mar 2010 23:50:16 +0000 (UTC) Received: from BLU0-SMTP82 ([65.55.111.135]) by blu0-omc4-s6.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 2 Mar 2010 15:50:16 -0800 X-Originating-IP: [67.189.160.65] X-Originating-Email: [carmel_ny@hotmail.com] Message-ID: Received: from scorpio.seibercom.net ([67.189.160.65]) by BLU0-SMTP82.blu0.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Tue, 2 Mar 2010 15:50:15 -0800 Received: from scorpio.seibercom.net (scorpio.seibercom.net [192.168.1.101]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: carmel_ny@scorpio.seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTPSA id A399C2283A for ; Tue, 2 Mar 2010 18:50:14 -0500 (EST) Date: Tue, 2 Mar 2010 18:50:14 -0500 From: Carmel To: freebsd-questions@freebsd.org In-Reply-To: <20100302140031.3a2b28e9.cyb.@gmx.net> References: <20100302090503.c3326fe1.cyb.@gmx.net> <20100302140031.3a2b28e9.cyb.@gmx.net> Organization: seibercom.net X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.7; i386-portbld-freebsd7.2) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 Mar 2010 23:50:16.0149 (UTC) FILETIME=[1BA02850:01CABA63] Subject: Re: Lost audio after new Video card installation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2010 23:50:17 -0000 On Tue, 2 Mar 2010 14:00:31 +0100 Andreas Rudisch <"cyb."@gmx.net> articulated: > On Tue, 2 Mar 2010 05:51:00 -0500 > Carmel wrote: > > > On Tue, 2 Mar 2010 09:05:03 +0100 > > Andreas Rudisch <"cyb."@gmx.net> articulated: > > > > > On Mon, 1 Mar 2010 19:42:19 -0500 > > > Carmel wrote: > > > > > > > I installed a nVidia GeForce GT 220 card. > > > > Now, the video is fine; however, there is no audio. > > > > > > > hdac0: mem > > > > 0xfcffc000-0xfcffffff irq 16 at device 0.1 on pci3 > > > > > > I ran into the same problem after installing a GT 240. The video > > > cards support audio via HDMI. During boot the audio chip of the > > > video card is found first (also snd_hda) and used as primary > > > audio device. > > > > > > After kldunload / kldload snd_hda everything would work properly. > > > > > > As a workaround I do not load the snd_hda kernel module at boot, > > > but with a cronjob @reboot. This way the normal sound card is > > > found first. > > > I have sound compiled into my kernel: > > > > # Sound > > device sound > > device snd_hda # nVidia MCP51 sound > > support > > In that case you will not be able to unload/load the kernel module. > > Anyway, I looked again at the problem and the correct way is to simply > set hw.snd.default_unit to the number of the correct pcm device. > > Since the graphic card uses pcm0 to pcm3, it should be pcm4. Take a > look at the output of: > > %dmesg | grep hda > > You should see something like: > > pcm2: at cad 2 nid 1 on hdac0 > pcm3: at cad 3 nid 1 on hdac0 > hdac1: HDA Codec #0: Realtek ALC883 > pcm4: at cad 0 nid 1 on hdac1 > > So set hw.snd.default_unit=4 using sysctl or /etc/sysctl.conf. > > man snd_hda > man sound > man sysctl.conf Great, I just went and rebuilt the kernel sans sound and now I find the answer. Anyway, this is what the output for "dmesg | grep -i hda" was before I rebuilt the kernel: hdac0: mem 0xfe024000-0xfe027fff irq 21 at device 16.1 on pci0 hdac0: HDA Driver Revision: 20090624_0136 hdac0: [ITHREAD] hdac0: HDA Codec #1: Realtek ALC883 pcm0: at cad 1 nid 1 on hdac0 pcm1: at cad 1 nid 1 on hdac0 pcm2: at cad 1 nid 1 on hdac0 hdac0: mem 0xfe024000-0xfe027fff irq 21 at device 16.1 on pci0 hdac0: HDA Driver Revision: 20090624_0136 hdac0: [ITHREAD] hdac0: HDA Codec #1: Realtek ALC883 pcm0: at cad 1 nid 1 on hdac0 pcm1: at cad 1 nid 1 on hdac0 pcm2: at cad 1 nid 1 on hdac0 hdac0: mem 0xfe024000-0xfe027fff irq 21 at device 16.1 on pci0 hdac0: HDA Driver Revision: 20090624_0136 hdac0: [ITHREAD] hdac0: HDA Codec #1: Realtek ALC883 pcm0: at cad 1 nid 1 on hdac0 pcm1: at cad 1 nid 1 on hdac0 pcm2: at cad 1 nid 1 on hdac0 now, "dmesg | grep -i hda" lists nothing So if I rebuild the kernel with sound, I should set hw.snd.default_unit=4, is that correct? Couldn't I use '3' also? -- Carmel carmel_ny@hotmail.com |::::======= |::::======= |=========== |=========== | This is supposed to be a happy occasion. Let's not BICKER and ARGUE over who killed who!