Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2002 16:20:27 +0000
From:      Alex Drummond <alex@abingdon74.freeserve.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: Soundblaster Live detected by kernel, but not working
Message-ID:  <200207091620.27215.alex@abingdon74.freeserve.co.uk>
In-Reply-To: <20020708005136.D262@dutchnet.org>
References:  <200207081642.38914.alex@abingdon74.freeserve.co.uk> <20020708005136.D262@dutchnet.org>

next in thread | previous in thread | raw e-mail | index | archive | help

Michael Sharp wrote:
> did you add:   device  pcm
> to your KERNEL and rebuild the kernel?

Grant Cooper wrote:
> You can try a kernel module, It may not be exactly what you want but it
> might give you sound. Type this at the command prompt.
>
> kldload snd
> if it work's you can then recompile your kernel.

Sorry I forgot to explain my kernel configuration. I've built it with "device 
pcm" in the config file, and also tried removing this, rebuilding,  and doing 
"kldload snd_emu10k1" and "kldload snd" after boot, with the same result in 
each case. Sound works in Windows, btw, so I don't think it's a problem with 
the speakers, cables, etc.

For the record. I think I've found the problem. Looking at the source for the 
driver I'm using (/sys/dev/sound/pci/emu10k1.c), it has the PCI ID for both 
an emu10k1 (SB Live) and emu10k2 (SB Audigy) defined, but this appears to be 
for later development of the driver:

----------
#define EMU10K1_PCI_ID  0x00021102
#define EMU10K2_PCI_ID  0x00041102

<<< big snip >>>

static int
emu_pci_probe(device_t dev)
{
        char *s = NULL;

        switch (pci_get_devid(dev)) {
        case EMU10K1_PCI_ID:
                s = "Creative EMU10K1";
                break;
/* NOTICE COMMENTED OUT CODE HERE */
/*
        case EMU10K2_PCI_ID:
                s = "Creative EMU10K2";
                break;
*/
        default:
                return ENXIO;
        }

        device_set_desc(dev, s);
        return 0;
}
----------

So it looks like the code for handling the emu10k2 chips hasn't been written 
yet or something. My problem was that I'd altered this area of code to give 
me more information about another problem (don't ask...) and thought that the 
comment commenting out the EMU10K2_PCI_ID case was my own, and removed it.

/me smacks head

Thanks for the help everyone.

Alex


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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