Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jun 2004 18:29:01 -0400
From:      Bob Johnson <bob88@eng.ufl.edu>
To:        leblanc@keyslapper.org
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: sound card (WAS: FreeBSD 4.10 RELEASE questions)
Message-ID:  <40C8E0AD.5060208@eng.ufl.edu>

next in thread | raw e-mail | index | archive | help
> Message: 8
> Date: Wed, 9 Jun 2004 21:55:14 -0400
> From: Louis LeBlanc <freebsd@keyslapper.org>
> Subject: FreeBSD 4.10 RELEASE questions
> To: FreeBSD Questions <freebsd-questions@FreeBSD.org>
> Message-ID: <20040610015514.GA734@keyslapper.org>
>=20
> Hey everyone.  I have a confusing situation here with the new kernel.
>=20
> I just upgraded to 4.10, and in the process, decided to get a
> moderately updated kernel config.  Particularly, I wanted to try to
> get my sound working again.
>=20
> Here's the thing.  I have the following lines in my kernel config:
> device          pcm
>=20
[deleted details]
> Problem is that I'm not sure if I should have the following:
>=20
> device          pcm0 at isa? irq 10 drq 1 flags 0x0

Everything after "pcm0" is there for the benefit of ISA cards that are=20
not PNP-aware.  Your "device pcm" should be entirely adequate for a PCI=20
card that does correct PNP configuration.  It certainly works for me.

Also, if your system doesn't physically have SIO2 or SIO3, you can=20
remove those statements (which were in the details I deleted above).

>=20
> Note that my fxp0 is using irq 10.  Should I just change the irq?
> Should I leave it and/or the PNPBIOS line out?
>=20

My system shows several unknown devices which are presumably various=20
features of the motherboard that I'm not using, so don't be too=20
concerned about the unknown device.  PCI devices are assigned IRQs=20
dynamically, and you should not need to worry about which device ended=20
up on which IRQ as long as it doesn't conflict with an ISA device in=20
your system.

If dmesg.boot shows a "pcm0" device somewhere then your sound card=20
should be working.  E.g.:

# grep pcm0 /var/run/dmesg.boot
pcm0: <VIA VT8235> port 0xe000-0xe0ff irq 5 at device 17.5 on pci0
pcm0: <Avance Log\M-ic ALC650 AC97 Codec>
#

I believe that in 4.10 you still have to do

# cd /dev
# sh MAKEDEV snd0

to populate /dev with the appropriate devices after you get the driver=20
loading properly (snd0 is not actually one of them, so don't look for=20
it).  I guess you're familiar with that, since you had your sound=20
working in the past, but maybe you forgot.  After you've done that,=20
something like

# cat /dev/sndstat

should tell you what you ended up with, in its own cryptic way.

To get the PCI card correctly recognized, you may need to play with the=20
"PNP BIOS" setting in your BIOS configuration, although I don't think=20
that's your problem in this case.

If your sound card actually is an ISA device, you need to set the IRQ=20
and possibly DRQ settings in the config line to what the card is=20
expecting.  You may also have to go into your device and reserve that=20
IRQ for your ISA device to keep it from being assigned to a PnP device.

> I'm sure there's some pertinent details I'm leaving out, so don't
> hesitate to let me know what it is.
>=20
> Thanks for the feedback.

I hope that helps.

>=20
> Lou
> -- Louis LeBlanc leblanc@keyslapper.org Fully Funded Hobbyist, KeySlapp=
er Extrordinaire :) http://www.keyslapper.org =D4=BF=D4=AC Where are the =
calculations that go with a calculated risk?=20

- Bob



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40C8E0AD.5060208>