Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3386 - alsa creating incorrect devices?
Summary: alsa creating incorrect devices?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Arcady Genkin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-04 13:59 UTC by walt
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description walt 2002-06-04 13:59:17 UTC
I have one machine with a CM8330 sound chip that is almost working,
but not quite, under alsa.

The problem is that the symbolic link to /dev/dsp points to the
wrong device, /dev/sound/dsp, instead of the one that actually
works, /dev/sound/adsp.

If I manually change the link to adsp I start to get sound.
(I didn't think I could do that with devfs, but it works.
Of course, all these devices don't exist at boot time until
I start using alsamixer and xmms.)

Oddly enough, there is also a /dev/sound/dsp but when I try to
cat a wav file to it I get a "No such device" error even though
it shows up this way:
crw-rw----    1 root     audio     14,  12 Dec 31  1969 adsp
crw-rw----    1 root     audio     14,   4 Dec 31  1969 audio
crw-rw----    1 root     audio     14,   3 Dec 31  1969 dsp

If I cat the wav file to adsp I do get sound, as I said.

So--the question is who makes the incorrect link to /dev/sound/dsp
and can it be changed?

My alsa aliases are below:
alias char-major-116 snd
alias char-major-14 soundcore
alias snd-card-0 snd-cmi8330
alias sound-slot-0 snd-card-0
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

and this is who gets loaded:
Module                  Size  Used by    Not tainted
snd-cmi8330             5124   0 (autoclean)
snd-ad1848-lib          8576   0 (autoclean) [snd-cmi8330]
snd-sb16-dsp            5888   0 (autoclean) [snd-cmi8330]
snd-sb-common           6392   0 (autoclean) [snd-cmi8330 snd-sb16-dsp]
snd-pcm-oss            34532   0
snd-pcm                46816   0 [snd-ad1848-lib snd-sb16-dsp snd-pcm-oss]
snd-timer               9728   0 [snd-pcm]
isa-pnp                27836   0 [snd-cmi8330]
snd-mpu401-uart         2864   0 [snd-sb16-dsp]
snd-rawmidi            12480   0 [snd-mpu401-uart]
snd-seq-device          3712   0 [snd-rawmidi]
snd                    25032   0 [snd-cmi8330 snd-ad1848-lib snd-sb16-dsp
snd-sb-common snd-pcm-oss snd-pcm snd-timer snd-mpu401-uart snd-rawmidi
snd-seq-device]
Comment 1 Arcady Genkin (RETIRED) gentoo-dev 2002-11-01 21:08:11 UTC
Walt, are you still experiencing this problem?  If so, what version of alsa are
you using, and what alsa packages do you have installed?
Comment 2 Arcady Genkin (RETIRED) gentoo-dev 2002-11-26 21:03:29 UTC
Closing for the lack of feedback.