Lost audio after new Video card installation
Andreas Rudisch
cyb. at gmx.net
Tue Mar 2 13:00:38 UTC 2010
On Tue, 2 Mar 2010 05:51:00 -0500
Carmel <carmel_ny at hotmail.com> 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 <carmel_ny at hotmail.com> wrote:
> >
> > > I installed a nVidia GeForce GT 220 card.
> > > Now, the video is fine; however, there is no audio.
> >
> > > hdac0: <NVidia (Unknown) High Definition Audio Controller> 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: <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=4 using sysctl or /etc/sysctl.conf.
man snd_hda
man sound
man sysctl.conf
Andreas
--
GnuPG key : 0x2A573565 | http://www.gnupg.org/howtos/de/
Fingerprint: 925D 2089 0BF9 8DE5 9166 33BB F0FD CD37 2A57 3565
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100302/7b20fda0/attachment.pgp
More information about the freebsd-questions
mailing list