Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
basic alsa question
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
spoofy
n00b
n00b


Joined: 28 Mar 2005
Posts: 58

PostPosted: Thu Mar 31, 2005 5:43 pm    Post subject: basic alsa question Reply with quote

It seems that my sound device is detected.. but it isnt working.. output..

Quote:

achilles init.d # cat /dev/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.6 emulation code)
Kernel: Linux achilles 2.6.9-gentoo-r14 #3 SMP Thu Mar 31 09:22:13 CST 2005 x86_64
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
Virtual MIDI Card 1

NVidia CK804 at 0xf0100000, irq 20

Audio devices:
2: NVidia CK804 (DUPLEX)

Synth devices: NOT ENABLED IN CONFIG

Midi devices:
0: Virtual Raw MIDI
1: MTP AV MIDI

Timers:
7: system timer

Mixers:
0: mixer00
1: mixer10
2: Realtek ALC850 rev 0


i started /etc/init.d/alsasound

but when I run alsamixer i get ..
Quote:

achilles init.d # alsamixer

No mixer elems found



is there something I am forgetting to do? [/quote]
Back to top
View user's profile Send private message
spoofy
n00b
n00b


Joined: 28 Mar 2005
Posts: 58

PostPosted: Thu Mar 31, 2005 7:19 pm    Post subject: Reply with quote

anyone?
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Thu Mar 31, 2005 7:41 pm    Post subject: Reply with quote

could the problem be the same as this?
https://forums.gentoo.org/viewtopic-t-281343-highlight-alc850.html
mvh
_________________
"I am not bound to please thee with my answers" W.S.
Back to top
View user's profile Send private message
diastelo
Guru
Guru


Joined: 23 Feb 2004
Posts: 521

PostPosted: Thu Mar 31, 2005 7:42 pm    Post subject: Reply with quote

What modules or kernel options did you compile under ALSA? (Or if you used the alsa-driver package...)

Please show what modules are loaded (/sbin/lsmod) and the contents of your ALSA config file (Probably at /etc/modules.conf.d/alsa).
_________________
"No question is so difficult to answer as that to which the answer is obvious" -- George Bernard Shaw
Back to top
View user's profile Send private message
spoofy
n00b
n00b


Joined: 28 Mar 2005
Posts: 58

PostPosted: Thu Mar 31, 2005 8:19 pm    Post subject: Reply with quote

i have stuff in /dev/sound.. it has mixer, control0 and some other jazz..

lsmod just shows nvidia (for my video card). I compiled sound support directly into the kernel..not as a module. I am configured it to use both Intel drivers.. it was something like Intel (i8xx), SiS 7012, NVidia nForce Audio or AMD 768/811x.

i just got to work so i cant log into it remotly
Back to top
View user's profile Send private message
spoofy
n00b
n00b


Joined: 28 Mar 2005
Posts: 58

PostPosted: Fri Apr 01, 2005 4:40 am    Post subject: Reply with quote

Quote:
bash-2.05b# lsmod
Module Size Used by
nvidia 4058652 12
bash-2.05b# ls /dev/sound/
adsp2 audio2 dsp2 mixer mixer1 mixer2 sequencer sequencer2


and the config file for alsa module

Quote:

Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.4 2004/11/16 01:31:22 eradicator 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-interwave
## 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
Back to top
View user's profile Send private message
spoofy
n00b
n00b


Joined: 28 Mar 2005
Posts: 58

PostPosted: Fri Apr 01, 2005 5:47 am    Post subject: Reply with quote

Quote:


bash-2.05b# cat /proc/asound/cards
0 [VirMIDI ]: VirMIDI - VirMIDI
Virtual MIDI Card 1
1 [port ]: MTPAV - MTPAV on parallel port

2 [CK804 ]: NFORCE - NVidia CK804
NVidia CK804 at 0xf0100000, irq 20
3 [Dummy ]: Dummy - Dummy
Dummy 1

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


Joined: 28 Mar 2005
Posts: 58

PostPosted: Fri Apr 01, 2005 7:12 am    Post subject: Reply with quote

mplayer says it cant find /dev/dsp .. does that mean anything?
Back to top
View user's profile Send private message
diastelo
Guru
Guru


Joined: 23 Feb 2004
Posts: 521

PostPosted: Fri Apr 01, 2005 12:58 pm    Post subject: Reply with quote

You forgot to uncomment a few lines in here:

Quote:
## ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
## OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1


You need an alias line that matches your sound card. It's strange that ALSA detects your midi as a separate card. It probably explains why you have so many devices in /dev/sound.
_________________
"No question is so difficult to answer as that to which the answer is obvious" -- George Bernard Shaw
Back to top
View user's profile Send private message
spoofy
n00b
n00b


Joined: 28 Mar 2005
Posts: 58

PostPosted: Fri Apr 01, 2005 6:20 pm    Post subject: Reply with quote

I see. but I am a tad confused about something. I've compiled my sound support directly into my kernel. So any module i put in /etc/modules.d/alsa will not be found .. am I wrong in thinking that this file is used to configure modules?

should i simply just recompile my kernel and use modules for this? When I added snd_intel8x0 to my config it tells me module not found.. but that is my driver that is built into the kernel..

from dmesg

Quote:

Advanced Linux Sound Architecture Driver Version 1.0.6 (Sun Aug 15 07:17:53 2004 UTC).
no UART detected at 0x1
Uhhuh. NMI received for unknown reason 2d.
Dazed and confused, but trying to continue
Do you have a strange power saving mode enabled?
Motu MidiTimePiece on parallel port irq: 7 ioport: 0x378
ACPI: PCI interrupt 0000:00:04.0[A] -> GSI 20 (level, low) -> IRQ 20
PCI: Setting latency timer of device 0000:00:04.0 to 64
intel8x0_measure_ac97_clock: measured 49505 usecs
intel8x0: clocking to 46746
ALSA device list:
#0: Virtual MIDI Card 1
#1:
#2: NVidia CK804 at 0xf0100000, irq 20

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


Joined: 23 Feb 2004
Posts: 521

PostPosted: Fri Apr 01, 2005 6:27 pm    Post subject: Reply with quote

I prefer to use modules whenever possible. It frees up some system memory and it makes debugging simpler. It's certainly not required, and it can sometimes lead to new problems. It's up to you if you want to try it.

You need SOME place to have the configuration files for ALSA. There might be another configuration file for ALSA in /etc, in which case, that would work better. If not, you might have to edit the file in /etc/modules.d/, even if it normally wouldn't make sense to do so.
_________________
"No question is so difficult to answer as that to which the answer is obvious" -- George Bernard Shaw
Back to top
View user's profile Send private message
spoofy
n00b
n00b


Joined: 28 Mar 2005
Posts: 58

PostPosted: Fri Apr 01, 2005 11:16 pm    Post subject: Reply with quote

problem resolved.. i just recompiled and make them modules and everything works fine now.
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