Date: Tue, 2 Mar 2010 14:00:31 +0100 From: Andreas Rudisch <cyb.@gmx.net> To: freebsd-questions@freebsd.org Cc: Carmel <carmel_ny@hotmail.com> Subject: Re: Lost audio after new Video card installation Message-ID: <20100302140031.3a2b28e9.cyb.@gmx.net> In-Reply-To: <BLU0-SMTP1371E6B6E2ADDC29386947933B0@phx.gbl> References: <BLU0-SMTP44197B4BC992D26CCFAEDD933B0@phx.gbl> <20100302090503.c3326fe1.cyb.@gmx.net> <BLU0-SMTP1371E6B6E2ADDC29386947933B0@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <carmel_ny@hotmail.com> 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 <carmel_ny@hotmail.com> wrote: > >=20 > > > I installed a nVidia GeForce GT 220 card. > > > Now, the video is fine; however, there is no audio. > >=20 > > > hdac0: <NVidia (Unknown) High Definition Audio Controller> 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: <HDA NVidia (Unknown) PCM #0 Digital> at cad 2 nid 1 on hdac0 pcm3: <HDA NVidia (Unknown) PCM #0 Digital> at cad 3 nid 1 on hdac0 hdac1: HDA Codec #0: Realtek ALC883 pcm4: <HDA Realtek ALC883 PCM #0 Analog> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100302140031.3a2b28e9.cyb.>