LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   No sound from old games (OSS), no /dev/dsp, no /dev/mixer (http://www.linuxquestions.org/questions/showthread.php?t=4175454433)

pingu 03-17-2013 01:31 PM

No sound from old games (OSS), no /dev/dsp, no /dev/mixer
 
Yep, another thread about lack of support for OSS!
I've read zillions of pages about this, still just can't get it to work.

Normal sound works fine, but when I start my old games that uses OSS (CivCTP, RT2 & AlienCrossfire) there is no sound. Error in terminal (if any):
"Warning: Unable to open audio: No available audio device"
There is no /dev/dsp, also no /dev/mixer.
Distro is LinuxMint 14, also tried LMDE & Debian 6.
Soundcard is built-in Nvidia.
I also have an Nvidia graphics card with HDMI-sound, same driver as for built-in sound, but it is not active. I did attach my TV to vga-cards HDMI port, no sound at all, ever. All sound output is through built-in.

At first I had PulseAudio and Alsa, with oss-compat. Trying to fix this issue I installed alsa-oss, but it didn't change anything.
I tried starting my games using pulseaudio tool "padsp" but it doesn't work. I think it's because apps using padsp can't be built statically or the other way around - anyway, I can't control that for any of these games.
Also tried "aoss":
Code:

$ aoss /usr/local/spel/RT2/rt2
Warning: Unable to open audio: No available audio device

I removed pulseaudio and installed OSS4 - still no difference! Still no sound from oss-games, still no /dev/dsp???

I have tried various tips I found here on LQ & other places with no success.
Here's what I remember:
Everything below executed as root.
Code:

# dmesg |grep -i oss - SHOWS NOTHING
# ossdetect  -d -v
/proc/opensound/devfiles: No such file or directory
Cannot connect to the OSS kernel module.
Perhaps you need to execute 'soundon' to load OSS

There is no "soundon" in my system.
Code:

# ossplay /usr/local/multimedia/musik/CohnyJash_1.wav
/dev/dsp: No such file or directory
edgar ~ # osstest
/dev/mixer: No such file or director
# /etc/init.d/oss4-base start
* Starting Open Sound System:                                                                      [fail]

I can't find anything in the logs concerning OSS, executed "/etc/init.d/oss4-base start" while running "tail -f /var/log/syslog" in second terminal, no output at all.
IMHO the problem is that OSS4 is not running, but I have no idea why not.
Code:

# lsmod |grep oss
(nothing)
# lsmod |grep snd
snd_hda_codec_hdmi    31775  4
snd_hda_codec_realtek  174313  1
snd_hda_intel          32765  1
snd_hda_codec        109562  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              13276  1 snd_hda_codec
snd_pcm                80845  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_timer              28931  1 snd_pcm
snd                    62064  9 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore              14635  1 snd
snd_page_alloc        14115  2 snd_hda_intel,snd_pcm

#  ls -l /dev/snd/
total 0
drwxr-xr-x  2 root root      80 mar 17 16:47 by-path
crw-rw---T+ 1 root audio 116,  8 mar 17 16:47 controlC0
crw-rw---T+ 1 root audio 116, 17 mar 17 16:47 controlC1
crw-rw---T+ 1 root audio 116,  7 mar 17 16:47 hwC0D0
crw-rw---T+ 1 root audio 116, 16 mar 17 16:47 hwC1D0
crw-rw---T+ 1 root audio 116, 15 mar 17 16:47 hwC1D1
crw-rw---T+ 1 root audio 116, 14 mar 17 16:47 hwC1D2
crw-rw---T+ 1 root audio 116, 13 mar 17 16:47 hwC1D3
crw-rw---T+ 1 root audio 116,  6 mar 17 16:47 pcmC0D0c
crw-rw---T+ 1 root audio 116,  5 mar 17 16:51 pcmC0D0p
crw-rw---T+ 1 root audio 116,  4 mar 17 16:47 pcmC0D1c
crw-rw---T+ 1 root audio 116,  3 mar 17 16:47 pcmC0D1p
crw-rw---T+ 1 root audio 116,  2 mar 17 16:47 pcmC0D2c
crw-rw---T+ 1 root audio 116, 12 mar 17 16:47 pcmC1D3p
crw-rw---T+ 1 root audio 116, 11 mar 17 16:47 pcmC1D7p
crw-rw---T+ 1 root audio 116, 10 mar 17 16:47 pcmC1D8p
crw-rw---T+ 1 root audio 116,  9 mar 17 16:47 pcmC1D9p
crw-rw---T  1 root audio 116,  1 mar 17 16:47 seq
crw-rw---T+ 1 root audio 116, 33 mar 17 16:47 timer

Code:

# lspci -vv |grep -10 Audio
        Latency: 0
        Interrupt: pin C routed to IRQ 18
        Region 0: Memory at fcfffc00 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME+
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] Vendor Specific Information: Len=06 <?>
        Kernel driver in use: ehci_hcd

00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller
        Subsystem: ASUSTeK Computer Inc. Device 82fe
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 44
        Region 0: Memory at fcff8000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
--
                Status: InProgress-
                VC0:    Caps:  PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
                        Arb:    Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
                        Ctrl:  Enable+ ID=0 ArbSelect=Fixed TC/VC=01
                        Status: NegoPending- InProgress-
        Capabilities: [128 v1] Power Budgeting <?>
        Capabilities: [600 v1] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel driver in use: nvidia
        Kernel modules: nvidia_current, nvidia_current_updates, nouveau, nvidiafb


Ztcoracat 04-17-2013 07:24 PM

Hi:

I'm not a sound expert but I'll give it a shot--

Maybe other experienced members (with gaming and sound) will jump in and help.;)

Ok, looking at:
Code:

# dmesg |grep -i oss - SHOWS NOTHING
# ossdetect  -d -v
/proc/opensound/devfiles: No such file or directory
Cannot connect to the OSS kernel module.

I sat back and wondered why not? Than thought maybe building from source might help.
And is it possible that your lacking a library and this is the reason why it can't connect to the OSS kernel mod?
http://www.opensound.com/wiki/index....v4_from_source
https://help.ubuntu.com/community/OpenSound

I'm sorry I can't help you build it; I'm still learning myself.


All times are GMT -5. The time now is 08:59 AM.