OpenSolaris 2008.05 - No sound

OSS specific Solaris discussion (x86/SPARC)

Moderators: hannu, dev, cesium, kodachi

OpenSolaris 2008.05 - No sound

Postby foolrelic » Sat Jul 26, 2008 8:27 pm

Running OpenSolaris 2008.05. Installed oss-solaris-v4.0-1016-i386.pkg.

Following are outputs from osstest, ossinfo, ossdetect. During osstest, I do hear sound (headphones only confirmed - no other speakers attached to this machine - onboard Intel audio ASUS P5K-E motherboard), but i can't get sound in applications (youtube in Firefox for instance) - only during the test. Any help is appreciated.

rmurray@opensolaris:/usr/lib# osstest
Sound subsystem and version: OSS 4.0 (b1016/200806171344) (0x00040003)
Platform: SunOS/i86pc 5.11 snv_86

*** Scanning sound adapter #-1 ***
/dev/oss/hdaudio1/pcm0 (audio engine 0): HD Audio play front
Note! Device is in use (by PID 0/VMIX) but will try anyway
- Performing audio playback test...
<left> OK <right> OK <stereo> OK <measured>
/dev/oss/hdaudio1/pcm1 (audio engine 1): HD Audio play center/LFE
- Performing audio playback test...
<left> OK <right> OK <stereo> OK <measured>
/dev/oss/hdaudio1/pcm2 (audio engine 2): HD Audio play rear
- Performing audio playback test...
<left> OK <right> OK <stereo> OK <measured>
/dev/oss/hdaudio1/pcm3 (audio engine 3): HD Audio play side
- Performing audio playback test...
<left> OK <right> OK <stereo> OK <measured>
/dev/oss/hdaudio1/pcm4 (audio engine 4): HD Audio play headphone
- Performing audio playback test...
<left> OK <right> OK <stereo> OK <measured>
/dev/oss/hdaudio1/spdout0 (audio engine 5): HD Audio play spdifout-mix
- Performing audio playback test...
<left> OK <right> OK <stereo> OK <measured>
/dev/oss/hdaudio1/pcmin0 (audio engine 6): HD Audio rec rec1-src
- Skipping input only device
/dev/oss/hdaudio1/pcmin1 (audio engine 7): HD Audio rec rec2-src
- Skipping input only device
/dev/oss/hdaudio1/pcmin2 (audio engine 8): HD Audio rec rec3-src
- Skipping input only device

*** All tests completed OK ***

ossinfo:

rmurray@opensolaris:/usr/lib# ossinfo
Version info: OSS 4.0 (b1016/200806171344) (0x00040003)
Platform: SunOS/i86pc 5.11 snv_86 (opensolaris)

Number of audio devices: 9
Number of audio engines: 13
Number of mixer devices: 1


Device objects
0: sadasupport0 SADA compatibility layer
1: hdaudio1 Intel HD Audio interrupts=3039760 (6175030)
HD Audio controller Intel HD Audio
Vendor ID 0x8086293e
Subvendor ID 0x10438277
Codec 0: AD1988B (0x11d4198b/0x1043829b)
2: osscore0 OSS common devices
3: ossusb0 USB audio/MIDI device


Mixer devices
0: High Definition Audio AD1988B (Mixer 0 of device object 1)

Audio devices
HD Audio play front /dev/oss/hdaudio1/pcm0 (device index 0)
HD Audio play center/LFE /dev/oss/hdaudio1/pcm1 (device index 1)
HD Audio play rear /dev/oss/hdaudio1/pcm2 (device index 2)
HD Audio play side /dev/oss/hdaudio1/pcm3 (device index 3)
HD Audio play headphone /dev/oss/hdaudio1/pcm4 (device index 4)
HD Audio play spdifout-mix /dev/oss/hdaudio1/spdout0 (device index 5)
HD Audio rec rec1-src /dev/oss/hdaudio1/pcmin0 (device index 6)
HD Audio rec rec2-src /dev/oss/hdaudio1/pcmin1 (device index 7)
HD Audio rec rec3-src /dev/oss/hdaudio1/pcmin2 (device index 8)


ossdetect:

rmurray@opensolaris:/usr/lib# ossdetect
rem_drv osscore
Device busy
Cannot unload module: osscore
Will be unloaded upon reboot.
rem_drv hdaudio
Device busy
Cannot unload module: hdaudio
Will be unloaded upon reboot.
rem_drv ossusb
Device busy
Cannot unload module: ossusb
Will be unloaded upon reboot.
rem_drv sadasupport
Device busy
Cannot unload module: sadasupport
Will be unloaded upon reboot.
Driver (osscore) not installed.
unloaded osscommon
can't unload the module: Device busy
add_drv -m '* 0666 root sys' osscore
add_drv -m '* 0666 root sys' -i '"pci8086,293e"' hdaudio
add_drv -m '* 0666 root sys' -i '"usbif,class1"' ossusb
add_drv -m '* 0666 root sys' sadasupport
foolrelic
New Member
 
Posts: 5
Joined: Sat Jul 26, 2008 8:12 pm

Postby cesium » Sat Jul 26, 2008 8:45 pm

I think what happens is that only /dev/oss/hdaudio1/pcm4 plays sounds. Apps try to open /dev/dsp, which is probably symlinked to /dev/oss/hdaudio1/pcm0, and can't play anything. Do "ln -sf /dev/oss/hdaudio1/pcm4 /dev/dsp", and it will probably work. You can test with "ossplay" program.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby foolrelic » Sat Jul 26, 2008 9:17 pm

Thanks! Getting closer...

Applying the symlink gives sound, but it is incredibly faint - just barely audible. went into ossxmix and maxed vol on headphones, but still same. ossmix output below:

rmurray@opensolaris:/dev/oss/hdaudio1# ossmix
Selected mixer 0/High Definition Audio AD1988B
Known controls are:
jack.fp-green.mode <headphon> (currently headphon-mix)
jack.fp-green.mute ON|OFF (currently OFF)
jack.fp-green.headphone <both>[:<rightvol>] (currently 58.4:58.4 dB)
jack.fp-green.fpgreen-outsel <headphone> (currently headphone)
jack.fp-green.fpgreen-outsel- ON|OFF (currently OFF)
jack.fp-green.analog-mix-mute ON|OFF (currently OFF)
jack.green.mode <front> (currently front-mix)
jack.green.mute ON|OFF (currently OFF)
jack.green.front <both>[:<rightvol>] (currently 58.4:58.4 dB)
jack.green.front-mute ON|OFF (currently OFF)
jack.green.analog-mix-mute ON|OFF (currently OFF)
jack.fp-pink.mode <fp> (currently fp-mic-mix)
jack.fp-pink.mute ON|OFF (currently OFF)
jack.fp-pink.fppink-outsel <headphone> (currently headphone)
jack.fp-pink.fppink-outsel-m ON|OFF (currently OFF)
jack.fp-pink.analog-mix-mute ON|OFF (currently OFF)
jack.blue.mode <linein> (currently input)
jack.blue.mute ON|OFF (currently OFF)
jack.blue.blue-outsel <front> (currently front)
jack.blue.blue-outsel-mut ON|OFF (currently OFF)
jack.blue.analog-mix-mute ON|OFF (currently OFF)
jack.black.mode <rear> (currently rear-mix)
jack.black.mute ON|OFF (currently OFF)
jack.black.rear <both>[:<rightvol>] (currently 53.9:53.9 dB)
jack.black.rear-mute ON|OFF (currently OFF)
jack.black.analog-mix-mute ON|OFF (currently OFF)
jack.pink.mode <mic> (currently mic-mix)
jack.pink.mute ON|OFF (currently OFF)
jack.pink.center/lfe <both>[:<rightvol>] (currently 53.9:53.9 dB)
jack.pink.pink-outsel <center> (currently center/LFE)
jack.pink.pink-outsel-mut ON|OFF (currently OFF)
jack.pink.analog-mix-mute ON|OFF (currently OFF)
jack.spdifout.spdifout-mix <both>[:<rightvol>] (currently 53.9:53.9 dB)
jack.spdifout ON|OFF (currently OFF)
jack.spdifout.spdin-src-mute ON|OFF (currently OFF)
jack.orange.mode <center> (currently center/LFE-mix)
jack.orange.mute ON|OFF (currently OFF)
jack.orange.center/lfe-mute ON|OFF (currently OFF)
jack.orange.analog-mix-mute ON|OFF (currently OFF)
jack.gray.mode <side> (currently side-mix)
jack.gray.mute ON|OFF (currently OFF)
jack.gray.side <both>[:<rightvol>] (currently 53.9:53.9 dB)
jack.gray.side-mute ON|OFF (currently OFF)
jack.gray.analog-mix-mute ON|OFF (currently OFF)
record.rec1-src <0> (currently 0.0dB)
record.rec1-src.rec1-src1 <both>[:<rightvol>] (currently 73.4:73.4 dB)
record.rec1-src.rec1-src2 <headphon> (currently headphon-mix)
record.rec2-src.rec2-src1 <both>[:<rightvol>] (currently 73.4:73.4 dB)
record.rec2-src.rec2-src2 <headphon> (currently headphon-mix)
record.rec3-src.rec3-src1 <both>[:<rightvol>] (currently 73.4:73.4 dB)
record.rec3-src.rec3-src2 <headphon> (currently headphon-mix)
misc.spdin-src <rec1> (currently rec1-src)
misc.pcbeep <monovol> (currently 41.9 dB)
misc.fp-mic-mix <both>[:<rightvol>] (currently 43.4:43.4 dB)
misc.blue-insel <both>[:<rightvol>] (currently 43.4:43.4 dB)
misc.headphon-mix <both>[:<rightvol>] (currently 43.4:43.4 dB)
misc.front-mix <both>[:<rightvol>] (currently 43.4:43.4 dB)
misc.pink-insel <both>[:<rightvol>] (currently 43.4:43.4 dB)
misc.rear-mix <both>[:<rightvol>] (currently 43.4:43.4 dB)
misc.int-cd <both>[:<rightvol>] (currently 43.4:43.4 dB)
misc.analog-mix1 <fp> (currently fp-mic-mix)
misc.analog-mix2 <both>[:<rightvol>] (currently 43.4:43.4 dB)
misc1 <0> (currently 0.0dB)
misc2 <0> (currently 0.0dB)
misc3 <0> (currently 0.0dB)
misc4 <0> (currently 0.0dB)
misc5 <0> (currently 0.0dB)
vmix0-channels <Stereo> (currently Stereo)
vmix0-src <Fast> (currently Fast)
vmix0-vol <monovol> (currently 24.7 dB)
vmix0-out1 <leftVU>:<rightVU>] (currently 0:0)
vmix0-in <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm9 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out2 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm10 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out3 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm11 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out4 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm12 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out5 <leftVU>:<rightVU>] (currently 0:0)
foolrelic
New Member
 
Posts: 5
Joined: Sat Jul 26, 2008 8:12 pm

Postby cesium » Sat Jul 26, 2008 9:23 pm

Did osstest had the faint sound problem? You didn't mention this in the first post... If it does not have this issue, maybe it is another device node which should be symlinked to /dev/dsp?
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby foolrelic » Sat Jul 26, 2008 9:38 pm

osstest produced normal sound through the headphones previously and still does. Not a clue what other device node should be symlinked - /dev/oss/hdaudio1/pcm4 is what delivers sound during osstest. Below are the dsp links in /dev - other mods needed maybe?

lrwxrwxrwx 1 root root 22 2008-07-26 04:58 dsp -> /dev/oss/hdaudio1/pcm4
lrwxrwxrwx 1 root other 22 2008-07-25 09:31 dsp0 -> /dev/oss/hdaudio1/pcm0
lrwxrwxrwx 1 root other 22 2008-07-25 09:31 dsp1 -> /dev/oss/hdaudio1/pcm1
lrwxrwxrwx 1 root other 20 2008-07-25 09:31 dsp10 -> /dev/oss/cmpci0/pcm1
lrwxrwxrwx 1 root other 22 2008-07-25 09:31 dsp2 -> /dev/oss/hdaudio1/pcm2
lrwxrwxrwx 1 root other 22 2008-07-25 09:31 dsp3 -> /dev/oss/hdaudio1/pcm3
lrwxrwxrwx 1 root other 22 2008-07-25 09:31 dsp4 -> /dev/oss/hdaudio1/pcm4
lrwxrwxrwx 1 root other 25 2008-07-25 09:31 dsp5 -> /dev/oss/hdaudio1/spdout0
lrwxrwxrwx 1 root other 24 2008-07-25 09:31 dsp6 -> /dev/oss/hdaudio1/pcmin0
lrwxrwxrwx 1 root other 24 2008-07-25 09:31 dsp7 -> /dev/oss/hdaudio1/pcmin1
lrwxrwxrwx 1 root other 24 2008-07-25 09:31 dsp8 -> /dev/oss/hdaudio1/pcmin2
lrwxrwxrwx 1 root other 20 2008-07-25 09:31 dsp9 -> /dev/oss/cmpci0/pcm0
lrwxrwxrwx 1 root other 25 2008-07-25 09:31 dsp_ac3 -> /dev/oss/hdaudio1/spdout0
lrwxrwxrwx 1 root other 8 2008-07-25 09:31 dsp_in -> /dev/dsp
lrwxrwxrwx 1 root other 22 2008-07-25 09:31 dsp_multich -> /dev/oss/hdaudio1/pcm0
lrwxrwxrwx 1 root other 22 2008-07-25 09:31 dsp_out -> /dev/oss/hdaudio1/pcm0
lrwxrwxrwx 1 root other 20 2008-07-25 09:31 dsp_spdifin -> /dev/oss/cmpci0/pcm0
lrwxrwxrwx 1 root other 20 2008-07-25 09:31 dsp_spdifout -> /dev/oss/cmpci0/pcm0
foolrelic
New Member
 
Posts: 5
Joined: Sat Jul 26, 2008 8:12 pm

Postby cesium » Sat Jul 26, 2008 9:46 pm

OK. Let's try this:
A. Play a file with ossplay (ossplay supports mostly the same files as audioplay). Check the volume. It's probably faint?
B. Play a file with ossplay using the "-R" switch (this has the effect that ossplay may have to reject the file. Just search around until you find one which ossplay accepts [edit: Or you can convert a file to a format ossplay will accept]). If I'm guessing correctly, it won't be faint.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby foolrelic » Sat Jul 26, 2008 10:29 pm

Ripped a file from CD using Sound Juicer (comes with OpenSolaris install). Tried several diff formats with ossplay - ogg and flac not supported. wav produces loud screeching white noise - definitely not faint. On a lark, downloaded a random .au file from the web - interestingly that plays in ossplay perfectly - good volume, no issues. It dies on the -R switch though. Can't get anything to work on the -R switch. But that may not matter since regular ossplay is working for the .au file. Tried playing the .au file in RhythmBox - same faint sound that I'm getting in apps (youtube in Firefox for instance). ossplay seems to be ok; but sound continues to be faint in apps for some reason. Output for these is below.

rmurray@opensolaris:/dev/oss/hdaudio1# ossplay /export/home/rmurray/Desktop/mars.ogg
/export/home/rmurray/Desktop/mars.ogg: Unrecognized audio file type.
rmurray@opensolaris:/dev/oss/hdaudio1# ossplay /export/home/rmurray/Desktop/mars.wav
Playing WAVE file /export/home/rmurray/Desktop/mars.wav, 16 bits/mono/22050 Hz
^C
rmurray@opensolaris:/dev/oss/hdaudio1# ossplay -R /export/home/rmurray/Desktop/mars.wav
Playing WAVE file /export/home/rmurray/Desktop/mars.wav, 16 bits/mono/22050 Hz
/dev/dsp doesn't support 1 channels.
rmurray@opensolaris:/dev/oss/hdaudio1# ossplay /export/home/rmurray/Desktop/mars.flac
/export/home/rmurray/Desktop/mars.flac: Unrecognized audio file type.
rmurray@opensolaris:/dev/oss/hdaudio1# ossplay /export/home/rmurray/Desktop/crow.au
Playing .au file /export/home/rmurray/Desktop/crow.au, mu-law/mono/8000 Hz
rmurray@opensolaris:/dev/oss/hdaudio1# ossplay -R /export/home/rmurray/Desktop/crow.au
Playing .au file /export/home/rmurray/Desktop/crow.au, mu-law/mono/8000 Hz
/dev/dsp doesn't support this audio format (1/10).
Converting to format 10
/dev/dsp doesn't support 1 channels.
foolrelic
New Member
 
Posts: 5
Joined: Sat Jul 26, 2008 8:12 pm

Postby cesium » Sat Jul 26, 2008 10:46 pm

Interesting... I suspect that apps which output directly to OSS are fine, while apps which try to output to /dev/audio (converted by sadasupport to OSS API) have the faint volume problem... I suspect audioplay will have the volume issue too on that .au file, does it?
You can compile quite a few programs via SFE which can allow us to verify this further, like xmms.

If this is the case, I don't know how it fix it - I'm a Linux user - maybe there's another mixer control program which needs to be activated? audioctl? You could also recompile stuff to use OSS directly (SFE helps here I guess).

[edit: P.S. Can you put the wav file somewhere I can get it? I want to examine it. ossplay should play most wav files well... ]
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby foolrelic » Sat Jul 26, 2008 11:22 pm

Thanks for your help. I'll keep looking. I may have other problems - audioplay isn't working:

rmurray@opensolaris:~/Desktop# audioplay crow.au
audioplay: cannot stat /dev/audio: No such file or directory

and now getting errors after reboot regarding gstreamer

No volume control GStreamer plugins and/or devices found.

which is puzzling since I installed today and was working before the reboot...

I think the .wav file is just corrupted. Doesn't play on anything I've tried. Could be the rip software - never used it before now.

If anyone else has suggestions or pointers, shout!
foolrelic
New Member
 
Posts: 5
Joined: Sat Jul 26, 2008 8:12 pm

Postby cesium » Sat Jul 26, 2008 11:49 pm

Maybe sadasupport isn't binding to the new device after it has been overriden?... I don't know if/how that can be changed.

A. You can try up/down grading OSS. You can try compiling from source, the latest from hg or the prior version 1015. kaiwai had a modified 1015 pkg. I don't know if the download still works.

B. There's a "new experimental AudioHD driver" here from Sun, which may work for you.

C. Hopefully the devs can help more than me. You can bug them directly on this mailing list.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am


Return to Solaris

Who is online

Users browsing this forum: No registered users and 1 guest