Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help with ALSA & kernel2.6.11 please
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
kenmininger
n00b
n00b


Joined: 19 Mar 2005
Posts: 12

PostPosted: Sat Mar 19, 2005 3:03 pm    Post subject: Help with ALSA & kernel2.6.11 please Reply with quote

OK...I've read tons of posts & tried follow the ALSA sound guide and I can't get any sound.

Here are the details:

- I've enabled module loading in the kernel
- I've enabled sound card support (M) and ALSA (M) with sequencer support (M), OSS mixer API (M), OSS PCM (M), and OSS sequencer API (*)
- I've enabled my appropriate soundcard under PCI Devices which is Intel/SiS/nVidia/AMD/ALi AC97 (M) this is the Intel8x0
- I have emerged -C all the alsa stuff from previous tries

lspci|grep audio
0000:00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)

Right now, lsmod shows nothing.

So at this point, I have no sound. If I emerge alsa-tools and alsa-utils and run alsaconf, I can do an lsmod and get a list of modules, but still no sound. The I do a /etc/init.d/alsasound start and still no sound. I have followed the ALSA guide many times to the letter and still no sound. XMMS is playing something but I can't hear it. However, sometimes it won't do anything and complain about a missing OSS Driver. I've also tried configuring the kernel with just soundcard support (no ALSA & definitely no OSS) and following the ALSA guide and still no sound. I've also done all the unmuting stuff too.

What am I missing?

Should soundcard & ALSA be built in to the kernel (*) as opposed to (M)? Should I include the OSS stuff under the ALSA portion in the kernel?

Any suggestions would be greatly appreciated.

Thanks!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 27780
Location: 56N 3W

PostPosted: Sat Mar 19, 2005 3:17 pm    Post subject: Reply with quote

kenmininger,

It doesn't matter is you use modules or kerenl build in. Modules are better for debugging.
You should select all the OSS emulation options under ALSA and noe of OSS. Yoy may not use both ALSA and OSS sound drivers at the same time.

What do you have in /dev/snd and /dev/sound ?

Have you set up /etc/modules.d/alsa?
Have you unmuted and turned up the Master and PCM channels ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
sca
n00b
n00b


Joined: 02 Jan 2003
Posts: 27

PostPosted: Sat Mar 19, 2005 3:42 pm    Post subject: Reply with quote

This may sound stupid, but have you tried to
Code:
modprobe snd-intel8x0

?

Also, try starting xmms from a console and see if there are any errors.
And make sure that your 'sound' user is in the audio group.
Back to top
View user's profile Send private message
kenmininger
n00b
n00b


Joined: 19 Mar 2005
Posts: 12

PostPosted: Sat Mar 19, 2005 4:20 pm    Post subject: Reply with quote

OK...I'll leave the ALSA stuff in as modules (M). I have not selected the OSS stuff but did select OSS uder ALSA per my previous post.

a55h4t root # ls -l /dev/snd
ls: /dev/snd: No such file or directory

a55h4t root # ls -l /dev/sound
ls: /dev/sound: No such file or directory

/etc/modules.d/alsa is gone because I did an emerge -C on the ALSA stuff (-tools, -utils) so I could start fresh. However, it was set up like the one in the ALSA guide. I had also used alsaconf with no luck as well.

Yes...I used alsamixer to unmute master & PCM.

Thanks!

NeddySeagoon wrote:
kenmininger,

It doesn't matter is you use modules or kerenl build in. Modules are better for debugging.
You should select all the OSS emulation options under ALSA and noe of OSS. Yoy may not use both ALSA and OSS sound drivers at the same time.

What do you have in /dev/snd and /dev/sound ?

Have you set up /etc/modules.d/alsa?
Have you unmuted and turned up the Master and PCM channels ?
Back to top
View user's profile Send private message
kenmininger
n00b
n00b


Joined: 19 Mar 2005
Posts: 12

PostPosted: Sat Mar 19, 2005 4:24 pm    Post subject: Reply with quote

sca wrote:
This may sound stupid, but have you tried to
Code:
modprobe snd-intel8x0

?

Also, try starting xmms from a console and see if there are any errors.
And make sure that your 'sound' user is in the audio group.


OK...

a55h4t modules.d # modprobe snd-intel8x0
a55h4t modules.d # lsmod
Module Size Used by
snd_intel8x0 29248 -
snd_ac97_codec 75320 -
snd_pcm 84552 -
snd_timer 21604 -
snd 46660 -
soundcore 7104 -
snd_page_alloc 7492 -

Before doing modprobe, lsmod would return nothing. I don't have ALSA configured to start at boot right now because nothing works anyway.

So aftter doing this, I get:
xmms-mad-Message: failed to open audio output: OSS Driver 1.2.10

Thanks!
Back to top
View user's profile Send private message
bassvandijk
Guru
Guru


Joined: 13 Sep 2002
Posts: 306
Location: Haps, Netherlands

PostPosted: Sat Mar 19, 2005 4:42 pm    Post subject: Reply with quote

Maybe I have a simillar problem.

Alsa worked fine before I installed linux 2.6.11.

I have all the alsa stuff compiled into the kernel. (I can't think of a reason why I should use modules because I always use sound.)

This is the error I get:

dmegs
Code:
...
Advanced Linux Sound Architecture Driver Version 1.0.8 (Thu Jan 13 09:39:32 2005 UTC).
PCI: Enabling device 0000:00:02.7 (0000 -> 0001)
ACPI: PCI interrupt 0000:00:02.7[C] -> GSI 5 (level, low) -> IRQ 5
codec_ready: codec is not ready [0x300000]
Intel ICH: probe of 0000:00:02.7 failed with error -5
ALSA device list:
  No soundcards found.
...


(If I remember correctly, lspci always showed me that I used an intel8x0 soundcard but now it doesn't)

lspci
Code:
...
0000:00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] Sound Controller (rev a0)
        Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 2440
        Flags: medium devsel, IRQ 5
        I/O ports at 1c00
        I/O ports at 1800 [size=128]
        Capabilities: [48] Power Management version 2
...


Maybe we have the same problem? Can you check your dmesg?
Back to top
View user's profile Send private message
kenmininger
n00b
n00b


Joined: 19 Mar 2005
Posts: 12

PostPosted: Sat Mar 19, 2005 4:54 pm    Post subject: Reply with quote

bassvandijk wrote:
Maybe I have a simillar problem.

This is the error I get:

dmegs
Code:
...
Advanced Linux Sound Architecture Driver Version 1.0.8 (Thu Jan 13 09:39:32 2005 UTC).
PCI: Enabling device 0000:00:02.7 (0000 -> 0001)
ACPI: PCI interrupt 0000:00:02.7[C] -> GSI 5 (level, low) -> IRQ 5
codec_ready: codec is not ready [0x300000]
Intel ICH: probe of 0000:00:02.7 failed with error -5
ALSA device list:
  No soundcards found.
...


Maybe we have the same problem? Can you check your dmesg?


I have no references to soundcards or ALSA in my dmesg. Normal?

Thanks.
Back to top
View user's profile Send private message
bassvandijk
Guru
Guru


Joined: 13 Sep 2002
Posts: 306
Location: Haps, Netherlands

PostPosted: Sat Mar 19, 2005 5:10 pm    Post subject: Reply with quote

kenmininger wrote:
I have no references to soundcards or ALSA in my dmesg. Normal?


Well yes, I think it's normal because you use modules. So nothing get loaded when the kernel boots.
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 753
Location: Zwettl / Austria

PostPosted: Sat Mar 19, 2005 5:50 pm    Post subject: Reply with quote

I've the same problem.

Perfect sound with gentoo-dev-sources-2.6.10x but NOT with gentoo-dev-sources-2.6.11x
Back to top
View user's profile Send private message
kenmininger
n00b
n00b


Joined: 19 Mar 2005
Posts: 12

PostPosted: Sat Mar 19, 2005 6:04 pm    Post subject: Reply with quote

OK...so now I have everything compiled in the kernel & not using modules (* instead of M) and I can see in dmesg where ALSA is loading, etc...

Now what?

I've tried everything so any suggestions would be great.

Thanks!
Back to top
View user's profile Send private message
bassvandijk
Guru
Guru


Joined: 13 Sep 2002
Posts: 306
Location: Haps, Netherlands

PostPosted: Sat Mar 19, 2005 6:34 pm    Post subject: Reply with quote

kenmininger wrote:
...I can see in dmesg where ALSA is loading


Are you seeing ALSA error messages in dmesg, just as I have?
Back to top
View user's profile Send private message
kenmininger
n00b
n00b


Joined: 19 Mar 2005
Posts: 12

PostPosted: Sat Mar 19, 2005 6:42 pm    Post subject: Reply with quote

bassvandijk wrote:
kenmininger wrote:
...I can see in dmesg where ALSA is loading


Are you seeing ALSA error messages in dmesg, just as I have?


No. My dmesg says:

Code:

Advanced Linux Sound Architecture Driver Version 1.0.8 (Thu Jan 13 09:39:32 2005 UTC).
ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1f.5 to 64
intel8x0_measure_ac97_clock: measured 49478 usecs
intel8x0: clocking to 48000
ACPI: PCI interrupt 0000:00:1f.6[B] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1f.6 to 64
ALSA device list:
  #0: Dummy 1
  #1: Intel 82801DB-ICH4 with AD1981B at 0xc0000c00, irq 11
  #2: Intel 82801DB-ICH4 Modem at 0x2400, irq 11
oprofile: using timer interrupt.


But still no sound. Should I not have ACPI enabled?
Back to top
View user's profile Send private message
bassvandijk
Guru
Guru


Joined: 13 Sep 2002
Posts: 306
Location: Haps, Netherlands

PostPosted: Sat Mar 19, 2005 6:48 pm    Post subject: Reply with quote

Well, instead of me, you have a working kernel. So that's good.

Have you unmuted your channels, like NeddySeagoon sead?
Back to top
View user's profile Send private message
kenmininger
n00b
n00b


Joined: 19 Mar 2005
Posts: 12

PostPosted: Sat Mar 19, 2005 7:07 pm    Post subject: Reply with quote

bassvandijk wrote:
Well, instead of me, you have a working kernel. So that's good.

Have you unmuted your channels, like NeddySeagoon sead?


Other than with amix or alsamixer, I'm not sure how to do it. Again, all I've done is enabled ALSA in the kernel. I haven't emerged any ALSA stuff like -utils or -tools. It hasn't worked for me so I'm looking for suggestions...

Also, in KDE if I go to the control panel & check the sound hardware, it give an error"There was en error loading the module." It says it can't find libasound.so.2.

So it continues...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 27780
Location: 56N 3W

PostPosted: Sat Mar 19, 2005 7:20 pm    Post subject: Reply with quote

NeddySeagoons Rough Guide to Sanity Checking ALSA

1. If you have compiled ALSA as modules the lsmod and modprobe applies to you. If you have made ALSA built in, you have to keep your fingers crossed you have it right, its much more difficult to check.


2. Do
Code:
modprobe -l -t sound
to see all the modules you have made for sound. With a fully moduar ALSA and OSS Emulation layer you should have
Code:
$ /sbin/modprobe -l -t sound
/lib/modules/2.6.11-gentoo/kernel/sound/usb/snd-usb-lib.ko
/lib/modules/2.6.11-gentoo/kernel/sound/usb/snd-usb-audio.ko
/lib/modules/2.6.11-gentoo/kernel/sound/synth/snd-util-mem.ko
/lib/modules/2.6.11-gentoo/kernel/sound/synth/emux/snd-emux-synth.ko
/lib/modules/2.6.11-gentoo/kernel/sound/soundcore.ko
/lib/modules/2.6.11-gentoo/kernel/sound/pci/snd-intel8x0.ko
/lib/modules/2.6.11-gentoo/kernel/sound/pci/snd-bt87x.ko
/lib/modules/2.6.11-gentoo/kernel/sound/pci/emu10k1/snd-emu10k1.ko
/lib/modules/2.6.11-gentoo/kernel/sound/pci/emu10k1/snd-emu10k1-synth.ko
/lib/modules/2.6.11-gentoo/kernel/sound/pci/ac97/snd-ac97-codec.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/snd.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/snd-timer.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/snd-rtctimer.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/snd-rawmidi.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/snd-pcm.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/snd-page-alloc.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/snd-hwdep.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/seq/snd-seq.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/seq/snd-seq-virmidi.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/seq/snd-seq-midi.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/seq/snd-seq-midi-event.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/seq/snd-seq-midi-emul.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/seq/snd-seq-dummy.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/seq/snd-seq-device.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/seq/oss/snd-seq-oss.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/oss/snd-pcm-oss.ko
/lib/modules/2.6.11-gentoo/kernel/sound/core/oss/snd-mixer-oss.ko

You may not have
Code:
 /lib/modules/2.6.11-gentoo/kernel/sound/usb/...
if you have no USB sound devices and your
Code:
 /lib/modules/2.6.11-gentoo/kernel/sound/pci/...
may differ to suit your hardware but you should have the rest. If you made ALSA built in see rule 1.
If modules are missing add them by selecting the missing items as modules in make menuconfig and doing
Code:
make modules
make modues_install
No reboot or anything. Those with monolitic kernels see rule 1 and remake and reinstall your kernels

3. Now look in
Code:
lsmod
you should see most if not all the above modules loaded. If you made ALSA built in see rule 1.

4. These modules will cause
Code:
/dev/snd
to be populated with ALSA sound devoces and
Code:
/dev/sound
to be populated with OSS emulation devices. This is true for modular or builtin ALSA.

5. Those with built-in ALSA and no
Code:
/dev/snd
and/or
Code:
/dev/sound
see rule 1 and remake your kernels. Those readers with modules, try modprobing some of them and checking again.

6. If modprobing populated
Code:
/dev/snd
and/or
Code:
/dev/sound
then your /etc/modules.d/alsa file is not set up correctly. You need to fix that to get the modules to load automatically at boot but meanwhile ALSA should work.

7. Run the mixer of your choice and unmute at least PCM and Master and turn the levels up, you should now be able to play mp3s and wavs. XMMS will need to be set up to use the ALSA output plugin.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
sca
n00b
n00b


Joined: 02 Jan 2003
Posts: 27

PostPosted: Sat Mar 19, 2005 8:03 pm    Post subject: Reply with quote

kenmininger wrote:
So aftter doing this, I get:
xmms-mad-Message: failed to open audio output: OSS Driver 1.2.10


You need to
Code:
emerge xmms-alsa

and then activate the ALSA output plugin in xmms' preferences (don't ask me how to do that though, I don't use xmms).

sca
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 753
Location: Zwettl / Austria

PostPosted: Sat Mar 19, 2005 10:04 pm    Post subject: Reply with quote

I'm using gentoo-dev-sources-2.6.11 with the same config as gentoo-dev-sources-2.6.10.

Alsa support is not compiled as modul, but it also doesn't work then i compile it as module.

Code:
markus@laptop: pts/2: 48 files 194Mb -> ls -l /dev/snd
insgesamt 0
crw-------  1 markus audio 116,  0 19. Mär 2005  controlC0
crw-------  1 markus audio 116, 24 19. Mär 2005  pcmC0D0c
crw-------  1 markus audio 116, 16 19. Mär 2005  pcmC0D0p
crw-------  1 markus audio 116, 25 19. Mär 2005  pcmC0D1c
crw-------  1 markus audio 116, 26 19. Mär 2005  pcmC0D2c
crw-------  1 markus audio 116, 27 19. Mär 2005  pcmC0D3c
crw-------  1 markus audio 116, 20 19. Mär 2005  pcmC0D4p
crw-------  1 markus audio 116,  1 19. Mär 2005  seq
crw-------  1 markus audio 116, 33 19. Mär 2005  timer

Sam Mär 19 22:56:48 CET 2005
~
markus@laptop: pts/2: 48 files 194Mb -> ls -l /dev/dsp
lrwxrwxrwx  1 root root 9 19. Mär 2005  /dev/dsp -> sound/dsp

Sam Mär 19 22:56:51 CET 2005
~
markus@laptop: pts/2: 48 files 194Mb -> ls -l /dev/sound/dsp
crw-------  1 markus audio 14, 3 19. Mär 2005  /dev/sound/dsp

Sam Mär 19 22:57:05 CET 2005
~
markus@laptop: pts/2: 48 files 194Mb ->

markus@laptop: pts/2: 48 files 194Mb -> cat /proc/asound/cards
0 [I82801DBICH4   ]: ICH4 - Intel 82801DB-ICH4
                     Intel 82801DB-ICH4 with AD1981B at 0x20000800, irq



xmms doesn't reports any error, the visualisation is working.

BUT I cannont hear any sound.

The mixer settings are correct.
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 753
Location: Zwettl / Austria

PostPosted: Sat Mar 19, 2005 10:08 pm    Post subject: Reply with quote

Here the sound-part of my kernel config, but remember that it also doesn't work when I compile that stuff as module.

Code:
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_AC97_CODEC=y
CONFIG_SND_INTEL8X0=y
Back to top
View user's profile Send private message
kenmininger
n00b
n00b


Joined: 19 Mar 2005
Posts: 12

PostPosted: Sun Mar 20, 2005 1:26 am    Post subject: Reply with quote

sca wrote:
kenmininger wrote:
So aftter doing this, I get:
xmms-mad-Message: failed to open audio output: OSS Driver 1.2.10


You need to
Code:
emerge xmms-alsa

and then activate the ALSA output plugin in xmms' preferences (don't ask me how to do that though, I don't use xmms).

sca


OK...did this and XMMS is playing...but still no sound.

Does anyone know if I need alsa-tools and/or alsa-utils? I also don't have an alsa file in /etc/modules.d. Maybe because I have ALSA built in kernel?
Back to top
View user's profile Send private message
kenmininger
n00b
n00b


Joined: 19 Mar 2005
Posts: 12

PostPosted: Sun Mar 20, 2005 2:02 am    Post subject: Reply with quote

OK...I've reconfigured the kernel with ALSA modules instead of having it built in.

I've emerged xmms-alsa, alsa-tools, and alsa-utils. I used alsaconf to generate the alsa file in /etc/modules.d. I have not done an rc-update to start alsasound yet. However, I ran a /etc/init.d/alsasound start.

I have the following unmuted and the volue up:
- master, master, mono, headphone, pcm, cd
Everything else is muted.

Still no sound at all. XMMS will play but where's the sound going?

Code:

a55h4t root # modprobe -l -t sound
/lib/modules/2.6.11-gentoo-r4/kernel/sound/pci/snd-intel8x0m.ko
/lib/modules/2.6.11-gentoo-r4/kernel/sound/pci/snd-intel8x0.ko
/lib/modules/2.6.11-gentoo-r4/kernel/sound/pci/ac97/snd-ac97-codec.ko
/lib/modules/2.6.11-gentoo-r4/kernel/sound/drivers/snd-dummy.ko
/lib/modules/2.6.11-gentoo-r4/kernel/sound/core/snd.ko
/lib/modules/2.6.11-gentoo-r4/kernel/sound/core/snd-timer.ko
/lib/modules/2.6.11-gentoo-r4/kernel/sound/core/snd-pcm.ko
/lib/modules/2.6.11-gentoo-r4/kernel/sound/core/snd-page-alloc.ko
/lib/modules/2.6.11-gentoo-r4/kernel/sound/core/seq/snd-seq.ko
/lib/modules/2.6.11-gentoo-r4/kernel/sound/core/seq/snd-seq-midi-event.ko
/lib/modules/2.6.11-gentoo-r4/kernel/sound/core/seq/snd-seq-device.ko
/lib/modules/2.6.11-gentoo-r4/kernel/sound/core/seq/oss/snd-seq-oss.ko
/lib/modules/2.6.11-gentoo-r4/kernel/sound/core/oss/snd-pcm-oss.ko
/lib/modules/2.6.11-gentoo-r4/kernel/sound/core/oss/snd-mixer-oss.ko


Code:

a55h4t root # lsmod
Module                  Size  Used by
snd_pcm_oss            48448  -
snd_mixer_oss          17152  -
snd_seq_oss            34272  -
snd_seq_midi_event      6208  -
snd_seq                50928  -
snd_seq_device          6956  -
snd_intel8x0           29248  -
snd_ac97_codec         75320  -
snd_pcm                84552  -
snd_timer              21604  -
snd                    46660  -
snd_page_alloc          7492  -


Code:

a55h4t root # cat /etc/modules.d/alsa
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.8 ---
options snd  device_mode=0666
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
# --- END: Generated by ALSACONF, do not edit. ---
Back to top
View user's profile Send private message
aschueler
Tux's lil' helper
Tux's lil' helper


Joined: 09 Apr 2004
Posts: 100

PostPosted: Sun Mar 20, 2005 2:54 am    Post subject: Reply with quote

I just opened up my /etc/modules.d/alsa file on my notebook (which uses alsa, but has the drivers etc loaded as modules -- desktop has it in the kernel). Anyway I think the alsaconf didn't set you up right. When I type
Code:
lsmod
I have pretty much the same modules listed, but they are active ("used by" shows a number of things). Try the following link (it's how I set mine up)

http://www.alsa-project.org/alsa-doc/doc-php/template.php?company=Intel&card=.&chip=440MX%2C+i810%2C+i810%2C+i810E%2C+i820%2C+i820&module=intel8x0

Scroll down to "Setting up modprobe and kmod support", and cut and paste the info right underneath "Note to Debain Users" -- include all three paragraphs -- into your /etc/modules.d/alsa file after backing it up, then stop and restart alsa, un mute sound and see if it works.

I hope so!
Back to top
View user's profile Send private message
kenmininger
n00b
n00b


Joined: 19 Mar 2005
Posts: 12

PostPosted: Sun Mar 20, 2005 3:30 am    Post subject: Reply with quote

aschueler wrote:
I just opened up my /etc/modules.d/alsa file on my notebook (which uses alsa, but has the drivers etc loaded as modules -- desktop has it in the kernel). Anyway I think the alsaconf didn't set you up right. When I type
Code:
lsmod
I have pretty much the same modules listed, but they are active ("used by" shows a number of things). Try the following link (it's how I set mine up)

http://www.alsa-project.org/alsa-doc/doc-php/template.php?company=Intel&card=.&chip=440MX%2C+i810%2C+i810%2C+i810E%2C+i820%2C+i820&module=intel8x0

Scroll down to "Setting up modprobe and kmod support", and cut and paste the info right underneath "Note to Debain Users" -- include all three paragraphs -- into your /etc/modules.d/alsa file after backing it up, then stop and restart alsa, un mute sound and see if it works.

I hope so!


OK...I modified my /etc/modules.d/alsa file. I have:

Code:

a55h4t root # cat /etc/modules.d/alsa
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-intel8x0
module options should go here

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# 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


So I do a /etc/init.d/alsasound start and lsmod shows:

Code:

a55h4t root # lsmod
Module                  Size  Used by
snd_pcm_oss            48448  -
snd_mixer_oss          17152  -
snd_seq_oss            34272  -
snd_seq_midi_event      6208  -
snd_seq                50928  -
snd_seq_device          6956  -
snd_intel8x0m          15172  -
snd_intel8x0           29248  -
snd_ac97_codec         75320  -
snd_pcm                84552  -
snd_timer              21604  -
snd                    46660  -
snd_page_alloc          7492  -


Still shows nothing in the "Used by" column.

I have these emerged:

Code:

a55h4t root # qpkg -I -v|grep alsa
media-libs/alsa-lib-1.0.8 *
media-sound/alsa-headers-1.0.8 *
media-sound/alsa-tools-1.0.8 *
media-sound/alsa-utils-1.0.8 *
media-plugins/xmms-alsa-1.2.10 *


Are my modules being loaded at boot? Do I need to do an rc-update add alsasound default?

Thanks!
Back to top
View user's profile Send private message
truekaiser
l33t
l33t


Joined: 05 Mar 2004
Posts: 619

PostPosted: Sun Mar 20, 2005 3:30 am    Post subject: Reply with quote

do you have the external amp channel on or off? some need it on to play sound. some need it off.
_________________
"My father rode a camel. I drive a car. My son flies a jet-plane. His son will ride a camel."
—Saudi saying
Too late to do anything about it, so just sit back and enjoy the fireworks.
Back to top
View user's profile Send private message
aschueler
Tux's lil' helper
Tux's lil' helper


Joined: 09 Apr 2004
Posts: 100

PostPosted: Sun Mar 20, 2005 3:59 am    Post subject: Reply with quote

Man I feel your pain as I have had my share of problems with ALSA. It's what drove me to Gentoo in the first place, since it was the first distro that had a 2.6 kernel (ALSA built in) that could get my sound card working (Audigy 2).


I have two last ideas, both of which are weak but I would try them. I reviewed over the entire posting, and think that turning off ACPI is not a bad idea if you don't need it. It is on the same IRQ as your sound card. I am not sure this is an issue, since I have not seen any IRQ conflicts since earlier windows days, but this is beyond my scope to be honest.

Next, try with the kernel and not modues. Recompile the kernel. Hell, this doesn't take long anyway. The sound on my desktop works great with no modules at all. Compile with sound card support, ALSA sequencer support, OSS mixer API, OSS PCM (digital audio) API, OSS sequencer API, your driver, and without open sound system. Copy all the stuff to /boot etc etc. Don't forget to remove the modules and run modules-update.

I would re-emerge alsa-utils, /etc/init.d/alsasound stop then run /etc/init.d/alsasound start then rc-update add alsasound boot.

Finally run alsamixer and turn master all the way up and see if it works.

Interestingly, I didn't need to have alsasound running to have sound anyway: the Kmix (for KDE) was able to unmute sound and allow KDE to play sounds anyway.

If the above doesn't work I have no idea. It's essentially recreating what I did the get my sound working, the only difference being the driver.
Back to top
View user's profile Send private message
aschueler
Tux's lil' helper
Tux's lil' helper


Joined: 09 Apr 2004
Posts: 100

PostPosted: Sun Mar 20, 2005 4:02 am    Post subject: Reply with quote

Quote:
Interestingly, I didn't need to have alsasound running to have sound anyway: the Kmix (for KDE) was able to unmute sound and allow KDE to play sounds anyway.


Please note this is KDE 3.3.2...
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
Goto page 1, 2, 3  Next
Page 1 of 3

 
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