LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
LinkBack Search this Thread
Old 06-06-2002, 08:29 AM   #1
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
Can't get SoundBlaster working in FreeBSD


Hi, I'm trying to get my SoundBlaster Audigy (which is essentially a cut down SB Live!- they use the same driver in Linux) to work in FreeBSD 4.5. From what I can make out from the FreeBSD Handbook, I just need to add

device pcm # For SBLive, etc.

to the kernel configuration file I'm using. This doesn't work though ("dmesg | grep pcm" produces no result). Any ideas? And yes, I have actually compiled, loaded (with LILO) and booted from my new kernel

Thanks,
Alex
 
Old 06-06-2002, 04:02 PM   #2
vfs
Member
 
Registered: Apr 2002
Location: Brazil
Distribution: Slackware
Posts: 184

Rep: Reputation: 30
Do you have support in the kernel? I had to hand edit the configuration file then recompile the kernel to my SB16 (they shouldn't be too different... are they?). Then all worked...

HTH

vfs
 
Old 06-06-2002, 04:10 PM   #3
ricin
LQ Newbie
 
Registered: Jun 2002
Location: NL
Distribution: FreeBSD
Posts: 2

Rep: Reputation: 0
Re: Sound problem - SB Live clone

Try:

#cd /dev
#./MAKEDEV snd0

The kernel should see it upon booting though. If it's really "almost" a SB Live it should look something like:

pcm0: <Creative EMU10K1> port 0xd800-0xd81f irq 9 at device 10.0 on pci2ke

I would think that if grep EMU10K1 doesnt give anything either the newpcm driver is not what you need for your soundcard after all. Got more details, eg can you read something on the main chip or have a vendor guide?

HTH,

Dan
 
Old 06-07-2002, 02:00 AM   #4
kakod
LQ Newbie
 
Registered: Apr 2002
Distribution: FreeBSD, OpenBSD, Solaris
Posts: 8

Rep: Reputation: 0
Re: Re: Sound problem - SB Live clone

Quote:
Originally posted by ricin
Try:

#cd /dev
#./MAKEDEV snd0

The kernel should see it upon booting though. If it's really "almost" a SB Live it should look something like:

pcm0: <Creative EMU10K1> port 0xd800-0xd81f irq 9 at device 10.0 on pci2ke

Dan
You can list all detected sound card with:

# cat /dev/sndstat
 
Old 06-07-2002, 04:00 AM   #5
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Original Poster
Rep: Reputation: 30
Ok, looks like I'm out of luck...My sound card seems to be showing up as unknown when the kernel boots:

pci2: <unknown card> (vendor=0x1102, dev=0x0004) at 11.0
pci2: <unknown card> (vendor=0x1102, dev=0x7003) at 11.1
pci2: <unknown card> (vendor=0x1102, dev=0x4001) at 11.2
pci2: <unknown card> (vendor=0x14f1, dev=0x1085) at 12.0

And cat /dev/sndstat doesn't find any instaled devices

Thanks for all the help,
Alex
 
Old 06-13-2002, 09:44 PM   #6
shakazulu
LQ Newbie
 
Registered: Apr 2002
Posts: 8

Rep: Reputation: 0
Don't give up alex

You know, back in the day, when I was trying to get
a fairly rare soundblaster to work, I got the same thing
you did, an unknown card with a vendor ID and a device
ID. That's because vendor and device id's change for random
reasons even though the interface often doesn't.

In the end, you find some place like
/usr/src/sys/dev/sound/pci

and you might add some stuff to some defines there.
Basically the deal is this:

deviceID<<16 | vendorID gives a 4 byte number which is used
by the kernel routines to autoprobe for your card. With
some experimentation, you can modify the files here to add
the particular number corresponding to the card.

OK, so the file in that directory which you seem to want to
play with is emu10k1.c.

As you can see the way that the emu10k1 get's detected
is by:
emu10k1.c:39:#define EMU10K1_PCI_ID 0x00021102
and later in a case statement something it gets used
emu10k1.c:1400: case EMU10K1_PCI_ID:

I think you want to just add a line
#define EMU10K1_PCI_ID_2 0x00041102
and then change the case to
emu10k1.c:1400: case EMU10K1_PCI_ID: case EMU10K1_PCI_ID_2:

Then rebuild the kernel and pray.


NOTE: this is a very nice way to detect crappy modems too.

-r
 
Old 06-15-2002, 10:39 AM   #7
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Original Poster
Rep: Reputation: 30
Thanks for the tip Haven't got it working yet (I've tried the various IDs and it always says it can't map the registers, which presumably indicates it's finding the wrong card, or the card isn't what the driver expects). Anyway, it's at least given some interesting results.

This might help people who need to do the same thing...The #defined ID is the dev=[number] ID followed by the vendor=[number] ID, i.e. for

pci2: <unknown card> (vendor=0x1102, dev=0x0004) at 11.0

you'll want to set the ID the driver's looking for to

0x00041102

I found this by modifying the driver source to print the IDs of the unknown cards it found.

Alex
 
Old 06-15-2002, 10:41 AM   #8
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Original Poster
Rep: Reputation: 30
whoops, that was in shakazulu's post too....
 
Old 06-15-2002, 11:14 AM   #9
ricin
LQ Newbie
 
Registered: Jun 2002
Location: NL
Distribution: FreeBSD
Posts: 2

Rep: Reputation: 0
Alex,

do you perhaps have PnP enabled in your BIOS? If so, then disable.
 
Old 06-15-2002, 01:18 PM   #10
shakazulu
LQ Newbie
 
Registered: Apr 2002
Posts: 8

Rep: Reputation: 0
getting ID numbers

To print out the device ID numbers do
pciconf -l?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
soundblaster live 24bit edition not working in ubuntu wormraper Ubuntu 2 08-10-2005 06:01 PM
Soundblaster Live 24bit not working in - Debian 3.1 huck_finn Linux - Newbie 3 08-03-2005 01:13 PM
SoundBlaster 16 ISA not working in Fedora Core II k41184 Linux - Hardware 7 02-09-2005 07:38 PM
Soundblaster 128 not working in Mandrake 9.1 Eve7698 Linux - Hardware 3 11-04-2003 12:36 PM
Soundblaster live 5.1 not working Marcel Linux - General 8 04-26-2003 07:59 PM


All times are GMT -5. The time now is 09:15 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration