You are not logged in.

#1 2008-12-11 23:13:14

heleos
Member
From: Maine, USA
Registered: 2007-04-24
Posts: 678

[SOLVED] OSS4 troubles (M-audio 5.1)

Following everyone's opinion (http://bbs.archlinux.org/viewtopic.php?id=60614) I decided to try out OSS4. Downloaded the package, sound didn't work (I heard a faint static sound). Googled for a while and found the option to try the oss-mercurial package, and it didn't help (also got that same static sound). I also read the OSS wiki, but it doesn't really have a good troubleshooting section. Tried changing the settings in ossxmix, didn't help (static sound went away when changing to anything other than DMA)
I'm not sure what kind of configs I should paste:

heleos@archbox:~/ > ossinfo -v
Version info: OSS 4.1 (b 1050/200812112301) (0x00040100) 
Hg revision: changeset: 542:1370c0cbb571, tag: tip, date: Fri Dec 12 00:45:30 2008 +0200 summary: Updated supported device list for Solaris/x86, summary: Updated supported device list for Solaris/x86
Platform: Linux/x86_64 2.6.27-ARCH #1 SMP PREEMPT Mon Dec 8 23:24:22 CET 2008 (archbox)

Number of audio devices:    13
Number of audio engines:    13
Number of mixer devices:    2


Device objects
 0: osscore0 OSS core services
 1: oss_envy24ht0 M Audio Revolution 5.1 interrupts=2493 (22145)
 2: oss_hdaudio0 Intel HD Audio interrupts=877 (20959)
    HD Audio controller Intel HD Audio
    Vendor ID    0x8086293e
    Subvendor ID 0x1043829f
     Codec  0: ALC883 (0x10ec0883/0x1043829f)
 3: oss_usb0 USB audio core services


Mixer devices
 0: M Audio Revolution 5.1 (Mixer 0 of device object 1)
    Device file /dev/oss/oss_envy24ht0/mix0, Legacy device /dev/mixer0
    Priority: 1
    Caps: 
 1: High Definition Audio ALC883 (Mixer 0 of device object 2)
    Device file /dev/oss/oss_hdaudio0/mix0, Legacy device /dev/mixer1
    Priority: 10
    Caps: 

Audio devices
M Audio Revolution 5.1 front out  /dev/oss/oss_envy24ht0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: TRIGGER MMAP 
    Modes: OUTPUT 
      Out engine  1: Available for use 
M Audio Revolution 5.1 c/l out    /dev/oss/oss_envy24ht0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: TRIGGER MMAP 
    Modes: OUTPUT 
      Out engine  1: Available for use 
M Audio Revolution 5.1 surround out  /dev/oss/oss_envy24ht0/pcm2  (device index 2)
    Legacy device /dev/dsp2
    Caps: TRIGGER MMAP 
    Modes: OUTPUT 
      Out engine  1: Available for use 
M Audio Revolution 5.1 digital out  /dev/oss/oss_envy24ht0/spdout  (device index 3)
    Legacy device /dev/dsp3
    Caps: TRIGGER MMAP 
    Modes: OUTPUT 
      Out engine  1: Available for use 
M Audio Revolution 5.1 analog in  /dev/oss/oss_envy24ht0/pcmin0  (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP 
    Modes: INPUT  
      In engine   1: Available for use
... (a bunch of HDA INTEL STUFF)
heleos@archbox:~/ > osstest
Sound subsystem and version: OSS 4.1 (b 1050/200812112301) (0x00040100)
Platform: Linux/x86_64 2.6.27-ARCH #1 SMP PREEMPT Mon Dec 8 23:24:22 CET 2008

*** Scanning sound adapter #-1 ***
/dev/oss/oss_envy24ht0/pcm0 (audio engine 0): M Audio Revolution 5.1 front out
- Performing audio playback test... 
  <left> OK <right> OK <stereo> OK <measured srate 47995.00 Hz (-0.01%)>

edit: made title more generic and added some clarity

Last edited by heleos (2008-12-13 17:54:31)

Offline

#2 2008-12-12 22:24:06

heleos
Member
From: Maine, USA
Registered: 2007-04-24
Posts: 678

Re: [SOLVED] OSS4 troubles (M-audio 5.1)

bumping my own thread!

Offline

#3 2008-12-13 17:45:33

heleos
Member
From: Maine, USA
Registered: 2007-04-24
Posts: 678

Re: [SOLVED] OSS4 troubles (M-audio 5.1)

Excuse my continued bumping... but I found the problem. More googling led me to people that could not get OSS working who had 4GB of ram. I have 6GB currently in my system, so I pulled 4 gigs out and.... perfect sound. Unfortunately, I'd rather not run my system with 2 gigs of ram when I have 6 to use (not that I come close to running anywhere near 6).


EDIT: SOLVED! Finally. Seems to be a very small bug in osscore.c that prevents anything from >2GB of ram working... Posting here so others may benefit. (found at http://www.gossamer-threads.com/lists/g … er/176346)

Never mind, fixed it. For the record (in case someone has the same 
problem and searches the list), there's a wrong assumption in 
/usr/lib/oss/build/osscore.c: 

if (memlimit < 0x00000000ffffffffLL) 

this needs to be: 

if (memlimit <= 0x00000000ffffffffLL) 

Rebuild with install.sh (same directory) and it should work.

Last edited by heleos (2008-12-13 17:54:12)

Offline

#4 2008-12-13 18:07:58

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] OSS4 troubles (M-audio 5.1)

I'm very confused about this. OSSv4 runs on my system and I have 4GB of RAM.

Offline

#5 2008-12-13 18:11:01

heleos
Member
From: Maine, USA
Registered: 2007-04-24
Posts: 678

Re: [SOLVED] OSS4 troubles (M-audio 5.1)

Not sure what to tell you then smile Didn't work with my 6 gigs, worked with 2. Made the fix now it works fine.

edit: unless you're running i686? I'm running x86_64

Last edited by heleos (2008-12-13 18:11:37)

Offline

#6 2008-12-13 18:22:29

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] OSS4 troubles (M-audio 5.1)

heleos wrote:

Not sure what to tell you then smile Didn't work with my 6 gigs, worked with 2. Made the fix now it works fine.

edit: unless you're running i686? I'm running x86_64

I'm on 64 bit and I did nothing special. Although, I've run into at least one application that can't see OSSv4 at all, and another that seems like it can't (possible user error). It would be nice if they're related; I prefer OSSv4 but I'm currently using ALSA for compatibility. I'll try it out.

--EDIT--

I rebuilt with the line corrected and it changed nothing. It plays sound like before, ekiga through ptlib still can't see it, I still can't seem to get ossrecord to do anything... Nothing changed for me.

Offline

Board footer

Powered by FluxBB