Re: How do I use the Open Sound System?



Jerry McBride <jmcbride@xxxxxxxxxx> writes:

Mark Hobley wrote:

I am using Gentoo Linux with a 2.6.24 kernel, and I want to try out the
Open Sound System. I have compiled the kernel with the SOUND_PRIME option
as a module.

My sound card is an ESS Solo 1 PCI card.

What modules do I need to load in order to use OSS? I don't seem to be
able to find a user manual.

I am aware of ALSA propeganda, but I really do want to try OSS.

I am using udev, and I currently have no /dev/dsp device, but I do have
a /dev/dspW device.

I issued the following commands:

modprobe soundcore
modprobe sound
modprobe sound_firmware # I guess I should do this, but who knows?

I also issues the following command:

modprobe sb_lib # I have no idea whether this is the right thing to do

I now type:

cat /dev/random > /dev/dspW

This gives an error:

sh: /dev/dspW: No such device

This is very strange.

ls -l /dev/dsp*
crw-rw---- 1 root audio 14, 5 Mar 29 11:08 /dev/dspW

whoami
mark

groups
wheel audio mark
^
|- I should be OK to use the audio device.

Thanks in advance to anyone who can help.

Mark.



Here's what I do for alsa/oss support for my NVIDIA CK804 sound chips. Alter
as required for your ESS SOLO1 (es1938 driver):

He does not want alsa/oss support. that is an oss emulation by alsa. He
wants pure oss support. This means that he has to remove all alsa support
(rmmod all of the snd- modules ) and then load a device driver for oss
support of his sound card.



In /etc/modules.d/alsa I have:

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to change this section for your specific sound card(s)
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
## ALSA portion
alias snd-card-0 snd-intel8x0 # FOR YOU IT's snd-es1938
## OSS/Free portion
alias sound-slot-0 snd-card-0

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1

Those are all the oss emulation by alsa.





#
# Open Sound System

These are oss ones. And most are not compiled in.


#
CONFIG_SOUND_PRIME=m
# CONFIG_SOUND_TRIDENT is not set
# CONFIG_SOUND_MSNDCLAS is not set
# CONFIG_SOUND_MSNDPIN is not set
CONFIG_SOUND_OSS=m
CONFIG_SOUND_TRACEINIT=y
CONFIG_SOUND_DMAP=y
# CONFIG_SOUND_SSCAPE is not set
# CONFIG_SOUND_VMIDI is not set
# CONFIG_SOUND_TRIX is not set
# CONFIG_SOUND_MSS is not set
CONFIG_SOUND_MPU401=m
# CONFIG_SOUND_PAS is not set
# CONFIG_SOUND_PSS is not set
# CONFIG_SOUND_SB is not set
# CONFIG_SOUND_YM3812 is not set
# CONFIG_SOUND_UART6850 is not set
# CONFIG_SOUND_AEDSP16 is not set
CONFIG_AC97_BUS=m
CONFIG_HID_SUPPORT=y
CONFIG_HID=y
CONFIG_HID_DEBUG=y
# CONFIG_HIDRAW is not set

.



Relevant Pages

  • 2.6.3-rc?: ALSA - xmcd works, xmms & aplay dont.
    ... sound card besides the input from the CDROM. ... And I can control the sound volume without any problems using the ALSA ... # ACPI Support ...
    (Linux-Kernel)
  • Re: Splain please re: mixer, alsa, pulseaudio and tvtime??
    ... tvtime has been upgraded to use alsa for sound rather than OSS. ... Which channel do I use? ...
    (Fedora)
  • Re: sound in slackware 10
    ... or that the OSS emulation for ALSA has not been loaded. ... > the sound system for the KDE sound server from OSS to ALSA or auto. ... Knoppix is using OSS drivers, which seem to work okay with my PC. ...
    (comp.os.linux.setup)
  • intercepting fopen() and friends
    ... ALSA has two methods of emulating OSS. ... 2] by the alsa-oss lib which "intercepts" openand friends and does the ... right thing when it is accessed for a sound device. ...
    (comp.os.linux.development.apps)
  • Re: no cdaudio with alsa but ok with oss
    ... >>I have all sound, but no cd audio. ... I did have that with oss. ... I enabled alsa and the card in the kernel but without modules. ... Not in alsamixer nor in aumix. ...
    (Debian-User)