Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trying to get /dev/dsp (it's not there)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
machinelou
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 267

PostPosted: Thu Oct 05, 2006 2:38 pm    Post subject: Trying to get /dev/dsp (it's not there) Reply with quote

I apologize if this is in the wrong group.

My sound was working 90% ok but /dev/dsp (which is needed for festival) wasn't being created. I searched, and a few fellows mentioned that they were having the same problem with /dev/dsp and they fixed it by compiling the ALSA modules that are provided by the kernel. At the time I was using the ALSA package which involves making sure that ALSA and OSS are not selected as either modules or built-in options. In order to follow the recommendations of these other gentooers, I've got to change that. As a reference, I've been following this: http://www.gentoo.org/doc/en/alsa-guide.xml

Here's what I did:

1. Unemerged alsa-driver
2. Recompiled kernel following the alsa guide and also did a make modules_install (which isn't mentioned in the guide, though I think it is assumed).
3. Removed alsasound from default runlevel
4. Removed my sound card from make.conf
5. Rebooted
6. Ran alsaconf. Errors appeared when it was trying to start alsasound but the screen cleared so I couldn't see them. When I try to start alsasound myself, I get the following error:
Quote:
skinner linux # /etc/init.d/alsasound stop
* Storing ALSA Mixer Levels ...
/usr/sbin/alsactl: save_state:1163: No soundcards found... [ !! ]
* Unloading ALSA ... [ ok ]
* Unloading ALSA modules ... [ !! ]
skinner linux # /etc/init.d/alsasound start
* WARNING: alsasound has already been started.
skinner linux #

The sound modules appear to be loaded:
Quote:
skinner linux # lsmod
Module Size Used by
snd_intel8x0 30007 1
snd_ac97_codec 90528 1 snd_intel8x0
snd_ac97_bus 1920 1 snd_ac97_codec
snd_pcm 80136 2 snd_intel8x0,snd_ac97_codec
snd_timer 21380 1 snd_pcm
snd 49728 4 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore 7776 1 snd
snd_page_alloc 8456 2 snd_intel8x0,snd_pcm
nvidia 4545620 12
i2c_core 17040 1 nvidia

But I still don't have /dev/dsp:
Quote:
skinner linux # ls -la /dev/dsp
ls: /dev/dsp: No such file or directory

And running alsamixer gives this error:
Quote:
skinner linux # alsamixer

alsamixer: function snd_ctl_open failed for default: No such device


Dmesg shows something kinda scary:
Quote:
PCI: Setting latency timer of device 0000:00:1f.5 to 64
Unable to handle kernel NULL pointer dereference at virtual address 00000049
printing eip:
e0dd1a14
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: snd_intel8x0 snd_ac97_codec snd_ac97_bus snd_pcm snd_timer sn d soundcore snd_page_alloc nvidia i2c_core
CPU: 0
EIP: 0060:[<e0dd1a14>] Tainted: P VLI
EFLAGS: 00010202 (2.6.15-gentoo-r1)
EIP is at intel8x0_measure_ac97_clock+0x47/0x39f [snd_intel8x0]
eax: 00000001 ebx: 00000000 ecx: e0dd310d edx: e0dd310c
esi: d657cc00 edi: d6ec8c37 ebp: d6ec8c00 esp: d6289e14
ds: 007b es: 007b ss: 0068
Process modprobe (pid: 8943, threadinfo=d6288000 task=d626ba10)
Stack: 0000000a ffffffff 00000001 00000002 ffffffff ffffffff ffffffff d6ec8c24
00000000 d6ec8c37 d6ec8c00 c03028b6 00000000 00000000 d6ec8c37 d6ec8c00
e0dd2709 d657cc00 00000050 e0dd30f3 d6ec8c24 e0da5639 fe300400 0000000b
Call Trace:
[<c03028b6>] snprintf+0x27/0x2b
[<e0dd2709>] snd_intel8x0_probe+0x1e6/0x1e8 [snd_intel8x0]
[<c0309175>] __pci_device_probe+0x5f/0x6d
[<c03091b2>] pci_device_probe+0x2f/0x59
[<c0377bd7>] driver_probe_device+0x38/0xc2
[<c0377cca>] __driver_attach+0x0/0x43
[<c0377d0b>] __driver_attach+0x41/0x43
[<c03771bd>] bus_for_each_dev+0x58/0x78
[<c0377d33>] driver_attach+0x26/0x2a
[<c0377cca>] __driver_attach+0x0/0x43
[<c03776d6>] bus_add_driver+0x83/0xe9
[<c0378159>] driver_register+0x3b/0x40
[<c037810a>] klist_devices_get+0x0/0xa
[<c0378114>] klist_devices_put+0x0/0xa
[<c0309412>] __pci_register_driver+0x6b/0x93
[<e0d71017>] alsa_card_intel8x0_init+0x17/0x1b [snd_intel8x0]
[<c0132ccd>] sys_init_module+0x153/0x20e
[<c0102fd7>] sysenter_past_esp+0x54/0x75
Code: 00 81 78 14 80 bb 00 00 74 14 8b 5c 24 30 8b 74 24 34 8b 7c 24 38 8b 6c 24 3c 83 c4 40 c3 8b 46 2c 8b 80 b8 00 00 00 85 c0 74 09 <81> 78 48 ff 7f 00 00 77 30 c7 44 24 08 54 2a dd e0 c7 44 24 04


Then, I noticed this important line in the alsa-guide and followed it:
Quote:
he above issue is caused when you switch from alsa-driver to in-kernel ALSA because when you unmerge alsa-driver the module files are config protected and hence get left behind. So, when you switch to in-kernel drivers, running modprobe gives you a mix of alsa-driver and in-kernel modules thus causing the above errors.

The solution is quite easy. We just need to manually remove the problem causing directory after you unmerge alsa-driver. Be sure to remove the correct kernel version and not the current one!

Code Listing 3.12: Removing the alsa-driver modules

# rm -rf /lib/modules/$(uname -r)/alsa-driver


Now, when I rebooted, I ran alsaconf and sound was working.. BUT, I still don't have /dev/dsp!!!!!!
Here's the post I was referring to: https://forums.gentoo.org/viewtopic-t-281018-highlight-dev+dsp.html

Any help would be appreciated. Thanks
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Thu Oct 05, 2006 3:46 pm    Post subject: Reply with quote

make sure both alsa and oss are in your useflags, remove the kernel driver, and install the latest version of alsa-driver, alsa-oss, alsaconf, alsa-lib, alsa-utils, alsa-headers, and any other alsa things that look interesting to you.
Back to top
View user's profile Send private message
jathlon
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2006
Posts: 89
Location: Canada

PostPosted: Thu Oct 05, 2006 5:18 pm    Post subject: Reply with quote

You can also edit /etc/modules.d/alsa so that the oss-emulation stuff in alsa gets loaded. Mine looks like;
Code:


S0106044b80808003 modules.d # more alsa
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.con
f-rc,v 1.5 2006/06/13 10:18:25 uberlord Exp $

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

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `modules-update' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
alias snd-card-0 snd-hda-intel
alias snd-card-1 saa7134-alsa
##  OSS/Free portion
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
##

# 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
##  OSS/Free portion - card #2
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-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=2


I also select anything and everything oss related in the alsa drivers section when I'm building a kernel. That is to say I'm I select all the oss emulation options in the alsa drivers section. I am not using oss.

HTH

Tim
Back to top
View user's profile Send private message
machinelou
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 267

PostPosted: Thu Oct 05, 2006 6:05 pm    Post subject: Reply with quote

Tim, Thanks for your suggestions.. I followed what you said but still didn't get /dev/dsp to appear. On a side note, I found this (https://forums.gentoo.org/viewtopic-t-502780-highlight-dsp+module.html) post which says you only need one of those kernel options to get oss to work.

A moment ago, I got frustrated and just tried loading snd_pcm_oss manually (i.e., modprobe snd-pcm-oss) and then /dev/dsp appeared! Any idea how I can get that module to load at boot? Here's my /etc/modules.d/alsa and it's in there but it still isn't loading automatically. Thanks
Quote:
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.11 ---
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
# --- END: Generated by ALSACONF, do not edit. ---

# 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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum