Odd failure of OSS on x86

OSS specific Solaris discussion (x86/SPARC)

Moderators: cesium, dev, kodachi, hannu

Odd failure of OSS on x86

Postby djones666 » Tue Jan 20, 2009 5:59 am

I am having an odd trouble that must have an easy solution. I install OSS, it finds my card (SB Live24 identified as audigyls) and osstest runs fine. Then if I run osstest (or any other sound app) it reports that the device is busy. It will stay busy until soundoff/soundon is run, then it will work correctly precisely once more and then stay busy. I did a mercurial checkout and build just to see if it was an oddity of the download, but the result is identical. The busy after one use is absolutely repeatable.

Here is the output of uname -a;ossinfo -v3; osstest; osstest :

Code: Select all
root@jcc-one> uname -a
SunOS jcc-one 5.10 Generic_138889-03 i86pc i386 i86pc
root@jcc-one> ossinfo -v3
Version info: OSS 4.2 (b 081213/200901200330) (0x00040100) OSS_HG
Hg revision: changeset: 609:9d67fab8fc2f, tag: tip, date: Thu Jan 08 13:07:29 2009 +0200, summary: Improvements to Asus Eee PC mixer
Platform: SunOS/i86pc 5.10 Generic_138889-03 (jcc-one)

Number of audio devices:        4
Number of audio engines:        9
Number of MIDI devices:         0
Number of mixer devices:        1


Device objects
0: osscore0 OSS common devices
1: oss_audigyls0 AudigyLS
2: oss_usb0 USB audio/MIDI device
3: oss_sadasupport SADA compatibility layer

MIDI devices (/dev/midi*)

Mixer devices
0: AudigyLS Mixer (Mixer 0 of device object 1)
    Device file /dev/oss/oss_audigyls0/mix0, Legacy device /dev/mixer0
    Priority: 1
    Caps:
    Device handle: PCI10071102-0-mx01
    Device priority: 1


Audio devices
AudigyLS front                    /dev/oss/oss_audigyls0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER
    Modes: IN/OUT
      Engine      1: 0/AudigyLS front
                     Available for use
      Engine      2: 5/AudigyLS front (vmix)
                     Available for use
      Engine      3: 6/AudigyLS front (vmix)
                     Available for use
      Engine      4: 7/AudigyLS front (vmix)
                     Available for use
      Engine      5: 8/AudigyLS front (vmix)
                     Available for use
    Input formats (0x00000410):
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_AC3          - AC3 (Dolby Digital) encoded audio
    Output formats (0x00000410):
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_AC3          - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10071102-0-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 48000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated

AudigyLS center/lfe               /dev/oss/oss_audigyls0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: TRIGGER
    Modes: OUTPUT
      Out engine  1: 2/AudigyLS center/lfe
                     Available for use
    Input formats (0x00000410):
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_AC3          - AC3 (Dolby Digital) encoded audio
    Output formats (0x00000410):
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_AC3          - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10071102-0-au02
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 48000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated

AudigyLS surround                 /dev/oss/oss_audigyls0/pcm2  (device index 2)
    Legacy device /dev/dsp2
    Caps: TRIGGER
    Modes: OUTPUT
      Out engine  1: 3/AudigyLS surround
                     Available for use
    Input formats (0x00000410):
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_AC3          - AC3 (Dolby Digital) encoded audio
    Output formats (0x00000410):
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_AC3          - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10071102-0-au03
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 48000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated

AudigyLS 5.1 output               /dev/oss/oss_audigyls0/pcm3  (device index 3)
    Legacy device /dev/dsp3
    Caps: TRIGGER
    Modes: OUTPUT
      Out engine  1: 4/AudigyLS 5.1 output
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE       - 16 bit signed little endian
    Output formats (0x00000010):
      AFMT_S16_LE       - 16 bit signed little endian
    Device handle: PCI10071102-0-au04
    Related mixer dev: -1
    Sample rate source: 0
    Preferred channel configuration: MULTICH
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 48000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated

root@jcc-one> osstest
Sound subsystem and version: OSS 4.2 (b 081213/200901200330) (0x00040100)
Platform: SunOS/i86pc 5.10 Generic_138889-03

*** Scanning sound adapter #-1 ***
/dev/oss/oss_audigyls0/pcm0 (audio engine 0): AudigyLS front
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured>
/dev/oss/oss_audigyls0/pcm1 (audio engine 2): AudigyLS center/lfe
- Performing audio playback test... /dev/oss/oss_audigyls0/pcm1: Device busy
Can't open the device
/dev/oss/oss_audigyls0/pcm2 (audio engine 3): AudigyLS surround
- Performing audio playback test... /dev/oss/oss_audigyls0/pcm2: Device busy
Can't open the device
/dev/oss/oss_audigyls0/pcm3 (audio engine 4): AudigyLS 5.1 output
- Skipping multi channel device

*** Some errors were detected during the tests ***
root@jcc-one> osstest
Sound subsystem and version: OSS 4.2 (b 081213/200901200330) (0x00040100)
Platform: SunOS/i86pc 5.10 Generic_138889-03

*** Scanning sound adapter #-1 ***
/dev/oss/oss_audigyls0/pcm0 (audio engine 0): AudigyLS front
- Performing audio playback test... /dev/oss/oss_audigyls0/pcm0: Device busy
Can't open the device
/dev/oss/oss_audigyls0/pcm1 (audio engine 2): AudigyLS center/lfe
- Performing audio playback test... /dev/oss/oss_audigyls0/pcm1: Device busy
Can't open the device
/dev/oss/oss_audigyls0/pcm2 (audio engine 3): AudigyLS surround
- Performing audio playback test... /dev/oss/oss_audigyls0/pcm2: Device busy
Can't open the device
/dev/oss/oss_audigyls0/pcm3 (audio engine 4): AudigyLS 5.1 output
- Skipping multi channel device

*** Some errors were detected during the tests ***
root@jcc-one>
djones666
New Member
 
Posts: 2
Joined: Tue Jan 20, 2009 5:40 am
Location: USA

Boils down to osstest

Postby djones666 » Tue Jan 20, 2009 9:43 pm

After getting wise and *not* running osstest, all works fine. So the problem is that osstest somehow leaves the devices permanently busy after it runs. So my advice is don't run osstest.
djones666
New Member
 
Posts: 2
Joined: Tue Jan 20, 2009 5:40 am
Location: USA


Return to Solaris

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest