i386/52428: pcm0 reported twice: onboard AC97%
jimd at siu.edu
jimd at siu.edu
Mon May 19 10:40:11 PDT 2003
The following reply was made to PR i386/52428; it has been noted by GNATS.
From: jimd at siu.edu
To: Martin.Kaeske at Stud.TU-Ilmenau.DE
Cc: freebsd-gnats-submit at FreeBSD.org
Subject: Re: i386/52428: pcm0 reported twice: onboard AC97%
Date: Mon, 19 May 2003 12:38:30 +0000 (CDT)
Ah HA! "kldload snd_ich" works like a charm! Sorry for being such a pain. I
have added 'snd_ich' in my /boot/loader.conf file. You may close out the PR -
thank you!
sysctl -A|grep pcm
hw.snd.pcm0.buffersize: 4096
hw.snd.pcm0.vchans: 0
hw.snd.pcm1.buffersize: 16384
hw.snd.pcm1.vchans: 0
hw.snd.pcm1.ac97rate: 48000
cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <Creative EMU10K1> at io 0xcc00 irq 5 (4p/2r/0v channels duplex)
pcm1: <SiS 7012> at io 0xd400, 0xd000 irq 5 bufsz 16384 (1p/1r/0v channels duplex)
P.S. I forgot about "device pcm" including ALL of the sound drivers in the
kernel. It is, perhaps, TOO easy to equate "device pcm" and "snd_pcm.ko" as
effectively being "one and the same", but that is obviously not the case.
Thanks again.
On 19 May, Martin Kaeske wrote:
> On Mon, May 19, 2003 at 11:44:16AM -0500, jimd at siu.edu wrote:
> [SNIP]
>> In my situation as reported, I see only one pcm device, and only one
>> "Volume Control" card. I had assumed that this was because of a lack of
>> some support for the onboard AC97.
>
> Yes, you don't loaded the module for your onboard sound. (I guess :)
>
>> In the Dell-GX240 kernel, I added:
>> #PCI sound card support
>> device pcm # for PnP cards
>> #options PNPBIOS # enable PnP BIOS searching
>
> And that is the big difference. In the Dell-kernel you have "device pcm",
> that means all sound drivers are compiled into the kernel and during boot
> one after the other checks the system for a soundcard (snd_emu10k1 finds
> the SB-Live and snd_ich finds the onboard soundcard). If you don't have
> "device pcm" you have to manually load the drivers. As you said after
> "kldload emu10k1" the kernel responded with those infos about pcm0
> so you have to load the driver for the onboard card to get it recognized
> by the kernel. You can also load all available sound modules if you don't
> know which one is appropriate (the kernel does effectively the same).
>
>> see what that does. Is there a MANual page or HANDBOOK entry for
>> "snd_ich". I couldn't find one (I did read the MANual page for "snd").
>
> I'm afraid no. I found snd_ich by searching the kernel source.
>
> Btw. it is possible that snd_ich can't find your card either, that could
> mean that snd_ich isn't the right driver or that your onboard card is not
> supported by FreeBSD at all. For the reasons i mentioned above you can
> add "device pcm" to your kernel config to make sure wether your card is
> supported or not.
>
> Martin
>
More information about the freebsd-i386
mailing list