From owner-freebsd-questions@FreeBSD.ORG Tue Mar 2 13:00:38 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 4614F106567D for ; Tue, 2 Mar 2010 13:00:38 +0000 (UTC) (envelope-from "cyb."@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id A00008FC0A for ; Tue, 2 Mar 2010 13:00:37 +0000 (UTC) Received: (qmail invoked by alias); 02 Mar 2010 13:00:35 -0000 Received: from pD952D0BF.dip0.t-ipconnect.de (EHLO core2duo.local) [217.82.208.191] by mail.gmx.net (mp006) with SMTP; 02 Mar 2010 14:00:35 +0100 X-Authenticated: #4870692 X-Provags-ID: V01U2FsdGVkX18rsE5arg4r/O3tgM7T/hlwscZzTp/RCelPU5QSPg Jdl+KwaoRG8sZZ Date: Tue, 2 Mar 2010 14:00:31 +0100 From: Andreas Rudisch To: freebsd-questions@freebsd.org Message-Id: <20100302140031.3a2b28e9.cyb.@gmx.net> In-Reply-To: References: <20100302090503.c3326fe1.cyb.@gmx.net> X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.5; i386-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Tue__2_Mar_2010_14_00_31_+0100_nqqv=ocR7/MRctZr" X-Y-GMX-Trusted: 0 X-FuHaFi: 0.52000000000000002 Cc: Carmel Subject: Re: Lost audio after new Video card installation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2010 13:00:38 -0000 --Signature=_Tue__2_Mar_2010_14_00_31_+0100_nqqv=ocR7/MRctZr Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: >=20 > > On Mon, 1 Mar 2010 19:42:19 -0500 > > Carmel wrote: > >=20 > > > I installed a nVidia GeForce GT 220 card. > > > Now, the video is fine; however, there is no audio. > >=20 > > > hdac0: mem > > > 0xfcffc000-0xfcffffff irq 16 at device 0.1 on pci3 > >=20 > > 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. > >=20 > > After kldunload / kldload snd_hda everything would work properly. > >=20 > > 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: >=20 > # 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=3D4 using sysctl or /etc/sysctl.conf. man snd_hda man sound man sysctl.conf=09 Andreas -- GnuPG key : 0x2A573565 | http://www.gnupg.org/howtos/de/ Fingerprint: 925D 2089 0BF9 8DE5 9166 33BB F0FD CD37 2A57 3565 --Signature=_Tue__2_Mar_2010_14_00_31_+0100_nqqv=ocR7/MRctZr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkuNC/MACgkQ8P3NNypXNWWDawCgi1BpHLXCun+oR3iv7Ky1+065 bKoAn1pXte3nb33i0RCHQp2IhaiMTkzk =nsQe -----END PGP SIGNATURE----- --Signature=_Tue__2_Mar_2010_14_00_31_+0100_nqqv=ocR7/MRctZr--