View previous topic :: View next topic |
Author |
Message |
wolf_99 Apprentice
Joined: 22 Oct 2003 Posts: 213
|
Posted: Mon Jan 05, 2004 10:39 am Post subject: ALSA and 2.6.0-mm kernel |
|
|
So I installed kernel 2.6.0-mm with alsa configurd. And I folowd all the steps I found in https://forums.gentoo.org/viewtopic.php?t=97157&highlight=. In other word these are the moduls I used.
Code: |
<M> Advanced Linux Sound Architecture
<M> Sequencer support
< > Sequencer dummy client
[*] OSS API emulation
<M> OSS Mixer API
< > OSS PCM (digital audio) API
[ ] OSS Sequencer API
< > RTC Timer support
[ ] Verbose printk
[ ] Debug
|
and then done
Code: |
# make && make modules_install
# mount /dev/hda2 (my boot partition)
# cp arch/i386/boot/bzImage /boot/
# emerge alsa-lib alsa-utils
# update-modules
# alsamixer
|
But when I start xmms I get this messge
couldn't open audio: please check that
1.) you have the corect plugin selectd
2.) No other program is blocking sound card
3.) Your sound card is configurd properly
and it dosn't play any thing...
when I do lsmod I do get
Code: |
Module Size Used by
usb_storage 59776 -
ehci_hcd 22400 -
8139cp 19424 -
snd_seq_midi 7648 -
snd_seq_midi_event 7200 -
snd_opl3_synth 11360 -
snd_seq_instr 8352 -
snd_seq_midi_emul 7232 -
snd_seq 49520 -
snd_ainstr_fm 2528 -
snd_cmipci 31384 -
snd_pcm 90400 -
snd_page_alloc 11012 -
snd_opl3_lib 9536 -
snd_timer 23680 -
snd_hwdep 8352 -
snd_mpu401_uart 6912 -
snd_rawmidi 23104 -
snd_seq_device 7524 -
snd_mixer_oss 15936 -
snd 46628 -
usbcore 101556 -
nls_cp1255 5184 -
nls_cp862 5696 -
vfat 14432 -
fat 43488 -
floppy 56884 -
8139too 22272 -
mii 4544 -
ide_tape 49424 -
st 35412 -
|
can any one help?
Thanks! _________________ To err is human. To really fuck up, use a computer. |
|
Back to top |
|
|
Brrakker n00b
Joined: 20 Dec 2002 Posts: 69 Location: Hamburg
|
Posted: Mon Jan 05, 2004 11:37 am Post subject: |
|
|
Do you have alsa-xmms installed?
Code: | emerge -p alsa-xmms |
And also selected?
Quote: | couldn't open audio: please check that
1.) you have the corect plugin selectd
|
Are there any other programs blocking the device?
Do you have the right permissions (are you in the audio group)?
Is the sound from other application right?
More informations are needed. |
|
Back to top |
|
|
wolf_99 Apprentice
Joined: 22 Oct 2003 Posts: 213
|
Posted: Mon Jan 05, 2004 12:00 pm Post subject: |
|
|
emerged that ebuild, I still get the same error,
No other program blocking the device.
I am in the right user group. Before I installed the 2.6.0 kernel I had 2.4.2x (forgot wich one...) and sound worked perfectly.
Mplayer also gives me an error messege: "audio_setup: Can't open audio device/dev/sound/dsp: No such file or directory"
Xine dosn't give me any error messege, it just dosn't make a sound. _________________ To err is human. To really fuck up, use a computer. |
|
Back to top |
|
|
uirou n00b
Joined: 10 Sep 2003 Posts: 7
|
Posted: Mon Jan 05, 2004 12:20 pm Post subject: Re: ALSA and 2.6.0-mm kernel |
|
|
wolf_99 wrote: | So I installed kernel 2.6.0-mm with alsa configurd. And I folowd all the steps I found in https://forums.gentoo.org/viewtopic.php?t=97157&highlight=. In other word these are the moduls I used.
Code: |
<M> Advanced Linux Sound Architecture
<M> Sequencer support
< > Sequencer dummy client
[*] OSS API emulation
<M> OSS Mixer API
< > OSS PCM (digital audio) API
[ ] OSS Sequencer API
< > RTC Timer support
[ ] Verbose printk
[ ] Debug
|
|
I think you need to compile "OSS PCM (digital audio) API" as a module.
You can add "OSS Sequencer API" and "RTC Timer support" as well.
Without OSS PCM API you can't get /dev/dsp.
Of course, you have to load that the module above . |
|
Back to top |
|
|
wolf_99 Apprentice
Joined: 22 Oct 2003 Posts: 213
|
Posted: Mon Jan 05, 2004 12:40 pm Post subject: |
|
|
Well, now Xmms plays but there is no sound... .
The same with mplayer.
How am I suposed to load the models? _________________ To err is human. To really fuck up, use a computer. |
|
Back to top |
|
|
uirou n00b
Joined: 10 Sep 2003 Posts: 7
|
Posted: Mon Jan 05, 2004 4:10 pm Post subject: |
|
|
wolf_99 wrote: | Well, now Xmms plays but there is no sound... .
The same with mplayer.
How am I suposed to load the models? |
After compile snd_pcm_oss & snd_mixer_oss as modules, add snd_pcm_oss in /etc/modules.autoload.
"snd_mixer_oss" will be automatically loaded if you load "snd_pcm_oss".
If you don't like to reboot, you can type in the shell:
Code: | modprobe snd_pcm_oss |
as root. |
|
Back to top |
|
|
wolf_99 Apprentice
Joined: 22 Oct 2003 Posts: 213
|
Posted: Mon Jan 05, 2004 4:17 pm Post subject: |
|
|
what I get is
Code: | FATAL: Module snd_pcm_oss already in kernel. |
I get alot of these messegs when I boot.
Is there a log of the boot process any where? _________________ To err is human. To really fuck up, use a computer. |
|
Back to top |
|
|
immo n00b
Joined: 23 Apr 2003 Posts: 50
|
Posted: Mon Jan 05, 2004 4:22 pm Post subject: |
|
|
i have the same problem, xmms, aplay or mplayer plays something but there is no sound. nor i get any errors msgs.
my kernel config:
Quote: | <*> Advanced Linux Sound Architecture
<*> Sequencer support
<*> Sequencer dummy client
[*] OSS API emulation
<*> OSS Mixer API
<*> OSS PCM (digital audio) API
[*] OSS Sequencer API
[*] Verbose printk
[*] Debug
[*] Debug memory |
and
Quote: | <*> EMU10K1 (SB Live! & Audigy, E-mu APS) |
alsasound loads fine and amixer shows no errors, afaik. im running the 2.6.0 development-sources.
please help
thx in advance - Jan |
|
Back to top |
|
|
wolf_99 Apprentice
Joined: 22 Oct 2003 Posts: 213
|
Posted: Mon Jan 05, 2004 10:18 pm Post subject: |
|
|
O.K! I got the siund to work.
I compiled evrey thing as moduls
# emerge alsa-lib alsa-utils
editid the /etc/modules.d/alsa
and add
Code: |
alias snd-card-0 snd-cmipci
alias sound-slot-0 snd-card-0 |
(I have a C-Media PCI card)
# update-modules
form here I done as found in the posts that I listd.
And I ahve sound!
I think my problem was
1.) I didn't edit /etc/modules.d/alsa,
2.) I got things mixed up becuse I some times used Code: | make && make modules_install |
and some times
(this is the one I used the last time)
But I still get a lot of "FATEL_ERROR". Eney one knows how to get rid of them? _________________ To err is human. To really fuck up, use a computer. |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Tue Jan 06, 2004 11:18 pm Post subject: |
|
|
YES!
try this as root:
Remove alsasound from runlevel default: rc-update del alsasound
Reboot.
Post module list here: lsmod
Restore mixer levels: alsactl -f /etc/asound.state restore
Post module list here: lsmod
If your setup in the kernel is correct, second lsmod should list all your sound modules.
This assumes you have atleast set your mixer levels and have booted the system with store function before doing this and not modified sound behaviour in any other fashion.
Crux of the story: You should only need to do restore during boot to get all the modules loaded by the kernel automatically.
Modify the /etc/init.d/alsasound to do just that or write a small one yourself.
Please post your lsmod output here before and after. |
|
Back to top |
|
|
mae2050 n00b
Joined: 12 Sep 2002 Posts: 45
|
Posted: Wed Jan 07, 2004 6:11 am Post subject: |
|
|
Typical ALSA annoyance.
All mixer levels are muted and set to 0.
U have to use alsamixer or amixer to turn them on and increase their levels.
Increase PCM and Master to 50% and u should get something out of those speakers.
To store/restore mixer levels, I compile OSS emulation and emerge aumix and rc-update add aumix default.
Hope this helps. |
|
Back to top |
|
|
|