Bug 116315

Summary: udev does not autoload drivers on dsp0
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Jan Engelhardt <jengelh>
Component: SoundAssignee: Takashi Iwai <tiwai>
Status: VERIFIED WORKSFORME QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: RC 1   
Target Milestone: ---   
Hardware: x86   
OS: Linux   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jan Engelhardt 2005-09-10 10:00:19 UTC
9.3: Soundcard module & volume loaded on 'rcalsasound'
10: Volume loaded on module load (via udev) rather than rcalsasound.

That works ok, but if I open the OSS compat layer (read: /dev/dsp0) the
soundcard module does not get loaded at all, so OSS-only apps like Unreal
Tournament stay quiet unless someone/something loaded the module beforehand.
(This did not happen in 9.3 because the module was "always" loaded.)
Comment 1 Takashi Iwai 2005-09-10 14:09:08 UTC
udev loads the sound module at the boot time, even before alsasound init script.
It's not changed from 9.3.  In fact, the sound driver was loaded also before
alsasound init script on 9.3, too.

snd-pcm-oss is loaded in alsasound init script.
Comment 2 Jan Engelhardt 2005-09-11 07:46:59 UTC
LOAD_OSS_EMUL_MODULES is "no", so it is not.
Leaving it at that, `lsmod` shows no single alsa module. If I now run `cat
/dev/urandom >/dev/dsp0`, the OSS emulation layer is correctly automatically
loaded, lsmod:

Module                  Size  Used by
snd_pcm_oss            45600  0 
snd_pcm                76488  1 snd_pcm_oss
snd_timer              19396  1 snd_pcm
snd_page_alloc          7944  1 snd_pcm
snd_mixer_oss          15680  1 snd_pcm_oss
snd                    41380  4 snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               6688  1 snd

But the real driver (snd-cs46xx) is not, and I do not think that setting
LOAD_OSS_EMUL_MODULES=yes changes the behavior for loading cs46xx when dsp0 is
accessed.
Comment 3 Takashi Iwai 2005-09-12 09:58:44 UTC
How did you set up the sound stuff?  If it's set up via yast on 10.0rc1 and
still you see the same behavior, it must be a bug.  Otherwise not worthy to
track any more.

Note the follwoing

- The default value of LOAD_OSS_EMUL_MODULES is "yes".

- You must have /etc/sysconfig/hardware/* files including the relevant ALSA
module if installed normall (unless updating from 9.2 or older version).
In such a case, you'll likely need to reconfigure the sound once via yast2 or
alsaconf.  See README.SuSE in alsa package.
Comment 4 Jan Engelhardt 2005-09-12 14:59:47 UTC
Well, I do updates rather than fresh installs, so the "no" must come from
somewhere along the chain, 8.2 being the first fresh in the row.

Yes, there is a /etc/sysconfig/hardware/hwcfg-bus-pci-0000:00:0d.0 that contains:

# YaST configured sound card snd-card-0
# qnJ_.F6qb30eJY93:CS 4614/22/24 [CrystalClear SoundFusion Audio Accelerator]
MODULE='snd-cs46xx'
STARTMODE='auto'
Comment 5 Takashi Iwai 2005-09-12 15:10:28 UTC
Then your system is somehow broken by unconventional updates.
Comment 6 Jan Engelhardt 2005-09-12 15:16:08 UTC
So when I put ...OSS=yes all modules get loaded on `rcalsasound restart`. Fine then.