Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev/dsp: No such device (SOLVED!)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
vincer
n00b
n00b


Joined: 23 Sep 2003
Posts: 5

PostPosted: Thu Oct 21, 2004 8:26 am    Post subject: /dev/dsp: No such device (SOLVED!) Reply with quote

Hi everyone,

It's a testament to the greatness of these forums that it's taken me this long to come up with a problem that I haven't been able to solve by searching the forums! This is my first problem post since I started using gentoo over a year ago!

So, my problem is when I try doing:
aplay /dev/dsp
I get back:
/dev/dsp: No such device

I have a pci tv card that I'm trying to use with MythTV. I can record video but no sound. I know sound is getting piped in since it works fine in xawtv and tvtime, but it's not getting digitized and routed to /dev/dsp for some reason ("aplay /dev/dsp" is the test the Mythtv docs suggest trying).

I have an Abit NF7-S motherboard and am using the onboard sound.

I'm using kernel 2.6.8.1-ck7 with alsa built as modules (including the OSS emulation modules). Everything else sound related works great.

These are the things I've tried:

1. Built a few other kenel versions and their corresponding alsa modules.
2. Triple-checked my /etc/modules.d/alsa file:


Code:
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /home/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.co
nf-rc,v 1.1 2003/08/05 21:07:55 johnm 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 `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
alias snd-card-0 snd-intel8x0
## alias snd-card-1 snd-ens1371
##  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=1
#options snd-via82xx index=0 dxs_support=4
options snd-pcm-oss adsp_map=2 dsp_map=2
#options snd-intel8x0 mpu_port=0x330


3. Switched to udev (yes, quite drastic, but desperate times...)
4. Tried both the line-in and the CD-in (on the motherboard).
5. Messed with alsamixer ad nauseum.
6. Made a bonfire, danced and chanted around it while waving a big stick.

Preemptive answers:

Yes, I did set line-in (or CD-in) as CAPTUR in alsamixer, as well as the Capture device as CAPTUR.

Yes, I'm sure there's sound coming in. It works in xawtv (when I unmute line-in) and I've also hooked the input directly to speakers.

Yes, I have the proper modules built (sound out works perfectly), including the OSS emul modules and they're loading without errors.

Also, /dev/dsp does exist, aplay just complains "No such device."

Any help would be GREATLY appreciated!

vince


Last edited by vincer on Thu Oct 21, 2004 9:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
thesnowman
Guru
Guru


Joined: 08 May 2003
Posts: 365
Location: Sydney, Australia

PostPosted: Thu Oct 21, 2004 9:24 am    Post subject: Reply with quote

I know you said your modules are loading without errors, but do you specifically have the snd-pcm-oss module loaded? I added this to /etc/modules.autoload.d/kernel-2.6 as the alsasound init script wouldn't load the modules correctly otherwise.
Back to top
View user's profile Send private message
jschellhaass
Guru
Guru


Joined: 20 Jan 2004
Posts: 341

PostPosted: Thu Oct 21, 2004 2:16 pm    Post subject: Reply with quote

You still need to emerge alsa-oss.

jeff
Back to top
View user's profile Send private message
Nate_S
Guru
Guru


Joined: 18 Mar 2004
Posts: 414

PostPosted: Thu Oct 21, 2004 7:32 pm    Post subject: Reply with quote

I have this problem when trying to use /dev/adsp, although /dev/dsp works fine.

you might try native alsa in mythtv, that's what I did to get it to work. just delete /dev/dsp as the playback device and type in ALSA:default.

-Nate
Back to top
View user's profile Send private message
vincer
n00b
n00b


Joined: 23 Sep 2003
Posts: 5

PostPosted: Thu Oct 21, 2004 8:46 pm    Post subject: Reply with quote

thesnowman - yep, snd-pcm-oss is loaded (by the alsasound init script)

jeff - I was under the impression that alsa-oss was only for 2.4 kernels? I tried it anyway, and there's no change.

Nate_S: Yeah, I know about the native alsa in mythtv, but that's for the playback device only. It doesn't seem I can use native alsa as a capture device (in mythsetup). On another note, using native alsa for playback results in major skippage. I use /dev/adsp for playback and it works great, although "aplay /dev/adsp" also returns "no such device".

Thanks for the help, guys. Any other ideas?

vince
Back to top
View user's profile Send private message
vincer
n00b
n00b


Joined: 23 Sep 2003
Posts: 5

PostPosted: Thu Oct 21, 2004 9:23 pm    Post subject: Reply with quote

SOLVED!

Not surprisingly, it was a really easy fix.

Before:
Code:
options snd-pcm-oss adsp_map=2 dsp_map=2

After:
Code:
options snd-pcm-oss adsp_map=2


I had added those back when I was trying to get SPDIF out working. Turns out I only need the adsp_map for that.

Thanks for everyone's help!

vince
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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