LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Sound on OpenBSD (Lengthy) (https://www.linuxquestions.org/questions/%2Absd-17/sound-on-openbsd-lengthy-222437/)

Crunch 08-25-2004 07:44 PM

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.

Crunch 08-26-2004 08:45 AM

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.

chort 08-26-2004 10:31 AM

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.

Crunch 08-26-2004 01:58 PM

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.

Crunch 08-26-2004 02:58 PM

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 :mad:.

Crunch 08-26-2004 06:36 PM

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.

frob23 08-26-2004 08:24 PM

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.

Crunch 08-26-2004 10:30 PM

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 =)


All times are GMT -5. The time now is 05:45 PM.