View previous topic :: View next topic |
Author |
Message |
vincer n00b
Joined: 23 Sep 2003 Posts: 5
|
Posted: Thu Oct 21, 2004 8:26 am Post subject: /dev/dsp: No such device (SOLVED!) |
|
|
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 |
|
|
thesnowman Guru
Joined: 08 May 2003 Posts: 365 Location: Sydney, Australia
|
Posted: Thu Oct 21, 2004 9:24 am Post subject: |
|
|
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 |
|
|
jschellhaass Guru
Joined: 20 Jan 2004 Posts: 341
|
Posted: Thu Oct 21, 2004 2:16 pm Post subject: |
|
|
You still need to emerge alsa-oss.
jeff |
|
Back to top |
|
|
Nate_S Guru
Joined: 18 Mar 2004 Posts: 414
|
Posted: Thu Oct 21, 2004 7:32 pm Post subject: |
|
|
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 |
|
|
vincer n00b
Joined: 23 Sep 2003 Posts: 5
|
Posted: Thu Oct 21, 2004 8:46 pm Post subject: |
|
|
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 |
|
|
vincer n00b
Joined: 23 Sep 2003 Posts: 5
|
Posted: Thu Oct 21, 2004 9:23 pm Post subject: |
|
|
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 |
|
|
|