LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
Search this Thread
Old 08-25-2004, 07:44 PM   #1
Crunch
Member
 
Registered: Feb 2003
Location: York, PA
Distribution: Slackware, FreeBSD, OpenBSD
Posts: 162

Rep: Reputation: 30
Post Sound on OpenBSD (Lengthy)


Hey, I was wondering if anyone at the moment could spare a second and sift through my problem and could spare a hand. I have a SoundBlaster Audigy 2 soundcard running off OpenBSD 3.5 (stable).

First question: Anyone think I should fetch the updates for the kernel? (Non-current.)

Problem:

I'm not sure wether or not I'd be using the sb*, or the emu card... although OpenBSD detects my on board soundcard that is no longer in use... it's odd.

From UKC:
Quote:
48 auich* at pci* dev -1 function -1 flags 0x0
49 emu* at pci* dev -1 function -1 flags 0x0
From Dmesg:
Quote:
mainbus0 (root)
bios0 at mainbus0: AT/286+(27) BIOS, date 08/20/02, BIOS32 rev. 0 @ 0xf2310
pcibios0 at bios0: rev. 2.1 @ 0xf0000/0x2b22 <-- PCI Is enabled
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xf2a80/160 (8 entries)
pcibios0: PCI Interrupt Router at 000:02:0 ("SIS 85C503 System" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0xfc00
pci0 at mainbus0 bus 0: configuration mode 1 (no bios) <-- PCI is enabled(?)
pchb0 at pci0 dev 0 function 0 "SIS 651 PCI" rev 0x01
ppb0 at pci0 dev 1 function 0 "SIS 86C201 AGP" rev 0x00
pci1 at ppb0 bus 1
The onboard soundcard:
Quote:
auich0 at pci0 dev 2 function 7 "SIS 7012 AC97 Audio" rev 0xa0: irq 10, SiS7012 AC97
ac97: codec id 0x594d4803 (Yamaha <03>)
ac97: codec features 18 bit DAC, No 3D Stereo
audio0 at auich0
Edit (I forgot to add this. It's apart of Dmesg too.):
Quote:
"Creative Labs SoundBlaster Audigy" rev 0x04 at pci0 dev 16 function 0 not confi gured
"Creative Labs SoundBlaster Audigy Digital Input" rev 0x04 at pci0 dev 16 functi on 1 not configured
"Creative Labs Firewire" rev 0x04 at pci0 dev 16 function 2 not configured

Here is a link to where I set the verbosity on the boot higher so I could see exactly what was going on. (Although it didn't help much on my end.)
Verbose dmesg

If you are looking at the text, at the bottom it says isapnp, and pcic failed.
Could this be apart of the problem?

Errors:
When I disable auich, audioctl, and mixerctl whack out on me by giving me the
following:

Quote:
audioctl: device not configured
mixerctl: device not configured
I don't understand what's going on here... I haven't tried just enabling
sb* since when I disabled auich nothing would work (regarding sound).

When I use XMMS (I do have the xmms-mp3 plugin) I see the song play with the
onboard soundcard, although it's really sluggish. Or when I change a few
of the options, it speeds up. (Although, there is obviously still no audio.)


I have searched around almost every forum I could find. I read all the manual pages...
I honestly do not know what the problem is. Anyone think it might be because there
is no Audigy 2 support on OpenBSD yet? (This doesn't make sense. Audigy 2 should
be supported if there is SB Live!)

Thanks for the help everyone.

Last edited by Crunch; 08-25-2004 at 07:53 PM.
 
Old 08-26-2004, 08:45 AM   #2
Crunch
Member
 
Registered: Feb 2003
Location: York, PA
Distribution: Slackware, FreeBSD, OpenBSD
Posts: 162

Original Poster
Rep: Reputation: 30
I forgot to add that this isn't really a GENERIC kernel. I disabled, "Auich," in some cases, and other where I had it enabled. There is also something in the BIOS that enables me to disable and enable the AC97 onboard sound support. Although I have heard that the AC97 codec has something to do with the SB cards, no? (I think I have seen this module loaded on Linux when I used it frequently.)


Edit:
I just noticed that it might be something having to do with PCI. I over looked this right here.

Quote:
"Creative Labs SoundBlaster Audigy" rev 0x04 at pci0 dev 16 function 0 not configured
I realized it says, "rev 0x04 at pci0." In this case I have never seen anything dealing with pci0 inside of the kernel configuration. Anyone know how I'd go about adding support for this?


Quote:
pci* at mainbus0 bus ?
...
ppb* at pci? dev ? function ? # PCI-PCI bridges
pci* at ppb? bus ?
pci* at pchb? bus ?
pcib* at pci? dev ? function ? # PCI-ISA bridge

Thanks for the help everyone.

Last edited by Crunch; 08-26-2004 at 08:55 AM.
 
Old 08-26-2004, 10:31 AM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Why don't you just use the GENERIC kernel? I've never heard of a problem with sound on GENERIC. There's probably some mention in the archives if it's a known issue. Check out marc.theaimsgroup.com and search in openbsd-misc.
 
Old 08-26-2004, 01:58 PM   #4
Crunch
Member
 
Registered: Feb 2003
Location: York, PA
Distribution: Slackware, FreeBSD, OpenBSD
Posts: 162

Original Poster
Rep: Reputation: 30
Sorry about the delayed response, I upgraded from the latest snapshot. (I'm currently running OpenBSD 3.6-current [as I believe].) Still no audio... I presume I'm running a default (yet current) kernel also. About your previous statement... I have used a GENERIC kernel, although still no sound (obviously). I'm quiet confused on how I'd get this working... this is completely different from Slackware or any other Linux distribution. I've been reading all the possible man pages I could. I did pick something up though. LKM... would it be possible to load the module by involking...

Quote:
$ sudo modload -n m_name.o
I'm not quiet sure exactly what LKM will allow. Oh yeah, I also did not find, "emu" Inside of the /dev directory. I didn't find any of the drivers inside there.

Last edited by Crunch; 08-26-2004 at 03:00 PM.
 
Old 08-26-2004, 02:58 PM   #5
Crunch
Member
 
Registered: Feb 2003
Location: York, PA
Distribution: Slackware, FreeBSD, OpenBSD
Posts: 162

Original Poster
Rep: Reputation: 30
You know what? I don't think that OpenBSD supports the soundcard I have. Bahh, all this work for nothing.

Creative Soundblaster Audigy 2 (ZS Platinum).
Model SB0350P.

I'm close to positive that OpenBSD isn't supporting this yet.
Thanks for the help chort. If anyone finds out when OpenBSD supports this model, just let me know. Until then I'm most likely going to switch back over to Slackware .
 
Old 08-26-2004, 06:36 PM   #6
Crunch
Member
 
Registered: Feb 2003
Location: York, PA
Distribution: Slackware, FreeBSD, OpenBSD
Posts: 162

Original Poster
Rep: Reputation: 30
Tenacity pays off. The card is now working, although I'm not so sure about surround sound. I'm not worried about that at the moment. Finally =) music... after a week of no music, I got this working. If anyone else has this problem just follow my instructions, it's easy.

Download the patch right here (if this link goes down Email me, I'll put it on my server):
Audigy 2 patch


Make sure that you have your kernel downloaded, you're going to have to patch a file in there. (I'm currently running OpenBSD 3.6. I'm going to assume version doesn't matter.)

Just follow the steps shown here (this is shown via shell):
(Take note, we're in the directory that you downloaded the patch to.)
Quote:
$ gunzip openbsd-emuxki.diff.gz
$ su -
Password: <spoofed>
# cd /usr/src/sys/dev/pci; patch -p 0 < /path/to/patch/dir/openbsd-emuxki.diff
Recompile the kernel, then reboot. Your sound has now arrived =)
Also take note that some of the devices weren't added yet.

My dmesg:
Quote:
emu0 at pci0 dev 16 function 0 "Creative Labs SoundBlaster Audigy" rev 0x04: irq 5
"Creative Labs SoundBlaster Audigy Digital Input" rev 0x04 at pci0 dev 16 function 1 not configured
"Creative Labs Firewire" rev 0x04 at pci0 dev 16 function 2 not configured
They were not added, or there are no more avalible IRQ addresses on my box? Maybe?
Either way, enjoy your sound for OpenBSD.

Last edited by Crunch; 08-26-2004 at 07:01 PM.
 
Old 08-26-2004, 08:24 PM   #7
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
Dude, that is excellent. I am delighted that you not only got it working but you found a solution when others couldn't... you didn't give up -- even when this went far beyond what most people could expect.

Awesome.
 
Old 08-26-2004, 10:30 PM   #8
Crunch
Member
 
Registered: Feb 2003
Location: York, PA
Distribution: Slackware, FreeBSD, OpenBSD
Posts: 162

Original Poster
Rep: Reputation: 30
I'm not going to leave you hanging like most people do. Thanks for showing support. I hope everyone can find this page and figure it out too. It was pretty frustrating having to reboot, upgrade, recompile, upgrade, etc. I was currently on my way to downloading Slackware 10.0 when I decided that I'd continue looking for some answer. It turns out that out of all of the pages I've looked on, I over looked a tiny reply on one of the first pages I should have found.

Once again, thanks =)
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD - Where can i get OpenBSD 3.7 ISO CD -- Please help me b:z Linux - Software 5 04-08-2005 07:09 AM
OpenBSD - Where can i get OpenBSD 3.7 ISO CD -- Please help me b:z Linux - Software 1 04-07-2005 08:46 AM
I know this is going to sound stupid but how do I get the OpenBSD ISO? Mr. Hill *BSD 10 02-23-2005 09:07 PM
I must sound like a noob... (OpenBSD) slackMeUp *BSD 13 11-08-2004 02:35 PM
openbsd 3.5 no X noir911 *BSD 2 07-05-2004 03:20 AM


All times are GMT -5. The time now is 06:17 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration