View previous topic :: View next topic |
Author |
Message |
auris n00b
Joined: 27 Aug 2008 Posts: 18
|
Posted: Wed Aug 27, 2008 8:44 am Post subject: ALSA in Gentoo 2008 |
|
|
Hi all,
I have installed Gentoo before a few days, but I just can't get ALSA working
I have alsa driver in my kernel (like on my Debian system where sound works fine) and installed alsa-libs and alsa-utils.
Lspci will show me my card correctly:
"00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 70)"
Alsamixer will show it also correctly, I'll set the sound (of course run /etc/init.d/alsasound start) and try it, but I don't hear anything. MP3Blaster don't show me the mixer menu and no other player can use ALSA.
I also tried alsaconf, but it didn't find any cards...
Does anybody know where the problem is? I really don't know. |
|
Back to top |
|
|
sugar Guru
Joined: 07 Aug 2004 Posts: 579 Location: Morrinsville, New Zealand
|
|
Back to top |
|
|
auris n00b
Joined: 27 Aug 2008 Posts: 18
|
Posted: Wed Aug 27, 2008 10:47 am Post subject: |
|
|
As I wrote, I started alsamixer and set the volume and MP3Blaster still doesn't show alsamixer, only like null so something must be wrong but I have no idea what. |
|
Back to top |
|
|
AnimAlf Apprentice
Joined: 20 Jun 2008 Posts: 229 Location: tgn
|
Posted: Wed Aug 27, 2008 1:11 pm Post subject: |
|
|
¿is user in audio group?
~ $ groups | grep audio || sudo gpasswd -a $USERNAME audio _________________ En busca del TuXeR perdido |
|
Back to top |
|
|
auris n00b
Joined: 27 Aug 2008 Posts: 18
|
Posted: Wed Aug 27, 2008 1:52 pm Post subject: |
|
|
Of course he is |
|
Back to top |
|
|
AnimAlf Apprentice
Joined: 20 Jun 2008 Posts: 229 Location: tgn
|
Posted: Wed Aug 27, 2008 2:25 pm Post subject: |
|
|
what says /proc/asound/cards?
~ # cat /proc/asound/cards
Have you thrown something to /dev/audio?
~ # echo > /dev/audio
Isn't it heard? _________________ En busca del TuXeR perdido |
|
Back to top |
|
|
auris n00b
Joined: 27 Aug 2008 Posts: 18
|
Posted: Wed Aug 27, 2008 6:22 pm Post subject: |
|
|
cat /proc/asound/cards will show me my sound card...
0 [V8251 ]: VIA8237 - VIA 8251
VIA 8251 with ALC655 at 0xd000, irq 22
And echo > /dev/audio won't do anything even in Debian where sound works fine. |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Wed Aug 27, 2008 7:12 pm Post subject: |
|
|
It could be a kernel misconfiguration. Please post your kernel .config.
Thanks.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
Jesselnz Tux's lil' helper
Joined: 25 Apr 2005 Posts: 90 Location: New Jersey
|
Posted: Thu Aug 28, 2008 6:01 am Post subject: |
|
|
Sorry about hijacking the topic, but I'm having exactly the same problem. I just resolved another problem where I was only getting sound from one speaker, and now I'm getting no sound at all... everything is unmuted in alsamixer, I'm in the audio group, the proper devices appear in /dev/snd, my card is in /proc/asound/cards... and yet I'm not getting any sound. cat /dev/urandom > /dev/audio does nothing. I know I'm using the right driver (ice1724). Here's my kernel configuration:
Code: | #
# Sound
#
CONFIG_SOUND=m
#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_RTCTIMER is not set
# CONFIG_SND_DYNAMIC_MINORS is not set
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_VERBOSE_PROCFS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
CONFIG_SND_VMASTER=y
#
# Generic devices
#
CONFIG_SND_MPU401_UART=m
CONFIG_SND_AC97_CODEC=m
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set
#
# PCI devices
#
CONFIG_SND_ICE1724=m
#
# USB devices
#
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_USX2Y is not set
# CONFIG_SND_USB_CAIAQ is not set
#
# Open Sound System
#
# CONFIG_SOUND_PRIME is not set
CONFIG_AC97_BUS=m
CONFIG_HID_SUPPORT=y
CONFIG_HID=y
# CONFIG_HID_DEBUG is not set
# CONFIG_HIDRAW is not set |
|
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Thu Aug 28, 2008 7:05 am Post subject: |
|
|
The best suggestion I can offer you is to put the following line in your /etc/make.conf file: Code: | ALSA_CARDS="ice1712"
|
Then emerge -av alsa-tools. That will give you the envy24 mixer, which is a really nice app that gives full control. I read up on it on the alsa site and some others, and apparently, it works as well for the ice1724 as it does for the ice1712, which is what I have (M-Audio Delta-66 with power head). If it does, you should get very fine control of what goes where.
Hope that helps.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
Jesselnz Tux's lil' helper
Joined: 25 Apr 2005 Posts: 90 Location: New Jersey
|
Posted: Thu Aug 28, 2008 7:34 am Post subject: |
|
|
I read in another topic that it doesn't work for 24, but I'll try it. Thanks. |
|
Back to top |
|
|
auris n00b
Joined: 27 Aug 2008 Posts: 18
|
Posted: Thu Aug 28, 2008 9:21 am Post subject: |
|
|
Here it is.
Code: |
#
# Sound
#
CONFIG_SOUND=y
#
# Advanced Linux Sound Architecture
#
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_DUMMY=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=m
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_VERBOSE_PROCFS=y
#
# Generic devices
#
CONFIG_SND_MPU401_UART=y
CONFIG_SND_AC97_CODEC=y
#
# PCI devices
#
CONFIG_SND_VIA82XX=y
CONFIG_SND_AC97_POWER_SAVE=y
CONFIG_SND_AC97_POWER_SAVE_DEFAULT=0
|
I also tried to compile my alsa-tools with ALSA_CARDS="via82xx" but it didn't solve the problem :/ |
|
Back to top |
|
|
mirojira l33t
Joined: 18 Feb 2006 Posts: 685
|
Posted: Thu Aug 28, 2008 1:26 pm Post subject: |
|
|
It is not recommended to install alsa in-kernel <y> but as modules <m>. |
|
Back to top |
|
|
auris n00b
Joined: 27 Aug 2008 Posts: 18
|
Posted: Thu Aug 28, 2008 3:08 pm Post subject: |
|
|
mirojira wrote: | It is not recommended to install alsa in-kernel <y> but as modules <m>. |
Hm and why? It works fine in Debian. |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Thu Aug 28, 2008 7:42 pm Post subject: |
|
|
While Linux is Linux for all intent and purpose, there are differences in how they operate at boot time, package management, etc. Having worked with Debian and Slackware, I know that each one starts alsa differently. And so does Gentoo. In some cases, you can get sound to work properly by compiling it into the kernel, even when you're working with Gentoo.
However, the documentation does recommend that you set things up as modules, most likely for unloading at shutdown. If your setup works, then it's right. See my sig below.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54420 Location: 56N 3W
|
Posted: Thu Aug 28, 2008 7:48 pm Post subject: |
|
|
auris,
It makes no difference to the way the code operates if alsa is built into the kernel or loaded later as modules.
The kernel setups are different as are the /etc/modules.d/alsa files.
However, modules are better for diagnostics. Some users need to use trial and error to find the correct module paramters to pass at module initialisation time. Thats inconvienient if the module is built it as changing module parameters requires a reboot. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
jburns Veteran
Joined: 18 Jan 2007 Posts: 1214 Location: Massachusetts USA
|
Posted: Fri Aug 29, 2008 2:25 am Post subject: |
|
|
I installed gentoo 2008 on a computer and sound did not work ( except for one sound byte ) until after I emerged gnome. |
|
Back to top |
|
|
auris n00b
Joined: 27 Aug 2008 Posts: 18
|
Posted: Fri Aug 29, 2008 9:32 am Post subject: |
|
|
Ok, thank you, I didn't know that. Now I'll try to recompile kernel and I'll hope that it will work fine |
|
Back to top |
|
|
auris n00b
Joined: 27 Aug 2008 Posts: 18
|
Posted: Fri Aug 29, 2008 9:53 am Post subject: |
|
|
So I tried and it didn't work fine
It wrote:
Code: |
* Loading ALSA modules ...
* Loading: snd-card-0 ...
[ ok ] * Loading: snd-mixer-oss ...
[ ok ] * Loading: snd-pcm-oss ...
[ ok ] * Loading: snd-seq-oss ...
[ ok ] * ERROR: Failed to load necessary drivers
[ ok ] * Restoring Mixer Levels ...
alsactl: unrecognized option `---'
Usage: alsactl <options> command
Available options:
-h,--help this help
-f,--file # configuration file (default /etc/asound.state or /etc/asound.names)
-F,--force try to restore the matching controls as much as possible
(default mode)
-P,--pedantic don't restore mismatching controls (old default)
-d,--debug debug mode
-v,--version print version of this program
Available commands:
store <card #> save current driver setup for one or each soundcards
to configuration file
restore <card #> load current driver setup for one or each soundcards
from configuration file
names <card #> dump information about all the known present (sub-)devices
into configuration file (DEPRECATED)
* Errors while restoring defaults, ignoring
|
I don't know what is wrong, I normally run alsaconf before. Maybe something with my kernel config...
Code: |
#
# Sound
#
CONFIG_SOUND=y
#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_HWDEP=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_DUMMY=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=m
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
# CONFIG_SND_DYNAMIC_MINORS is not set
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_VERBOSE_PROCFS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
#
# Generic devices
#
CONFIG_SND_MPU401_UART=m
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_DUMMY=m
CONFIG_SND_VIRMIDI=m
CONFIG_SND_MTPAV=m
CONFIG_SND_SERIAL_U16550=m
CONFIG_SND_MPU401=m
#
# PCI devices
#
CONFIG_SND_EMU10K1=m
CONFIG_SND_VIA82XX=m
CONFIG_SND_VIA82XX_MODEM=m
CONFIG_SND_AC97_POWER_SAVE=y
CONFIG_SND_AC97_POWER_SAVE_DEFAULT=0
|
Does anybody know? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54420 Location: 56N 3W
|
Posted: Fri Aug 29, 2008 6:02 pm Post subject: |
|
|
auris,
Despite what you may have read, you do not need Gnome to get sound. We need a methodical approach to discovering what you have and what you need.
First, what you need. Post the output of lspci. Unless you have a very old ISA sound card, that will tell us what you need.
When you have the right kernel modules loaded, you will have files in /dev/snd and /dev/sound.
The first is your pure ALSA, the latter your OSS emulated sound interfaces. When you have them your kernel is is reasonable shape.
We can take it from there when you post more information. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
jburns Veteran
Joined: 18 Jan 2007 Posts: 1214 Location: Massachusetts USA
|
Posted: Fri Aug 29, 2008 7:17 pm Post subject: |
|
|
When I said that I did not have sound until I emerged gnome, I did not mean to say that gnome was needed. What I meant was that loading gnome loaded some package other than alsa that was needed for sound. Emerging gnome added gstreamer plugins and other media-libs packages.
I did not change my alsa configuration when I loaded gnome. |
|
Back to top |
|
|
auris n00b
Joined: 27 Aug 2008 Posts: 18
|
Posted: Fri Aug 29, 2008 7:19 pm Post subject: |
|
|
My lspci output is in the first post:
"00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 70)"
Also /proc/asound/cards
"0 [V8251 ]: VIA8237 - VIA 8251
VIA 8251 with ALC655 at 0xd000, irq 22"
It is integrated sound card on my chipset.
Like I wrote, I have the same kernel config like in my Debian where everything works fine. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54420 Location: 56N 3W
|
Posted: Fri Aug 29, 2008 7:57 pm Post subject: |
|
|
auris,
The line Code: | alsactl: unrecognized option `---' | looks like it should be commented in /etc/modules.d/alsa and isn't.
You have everything selected in the kernel .config to make alsa work.
What is in lsmod, /dev/snd and /dev/sound ?
ls -l the last two please. Oh, is your user in the audio group ? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
auris n00b
Joined: 27 Aug 2008 Posts: 18
|
Posted: Fri Aug 29, 2008 8:11 pm Post subject: |
|
|
My lsmod:
Code: |
snd_seq_dummy 3268 0
snd_seq_oss 29312 0
snd_seq_midi_event 6912 1 snd_seq_oss
snd_seq 48928 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss 37920 0
snd_mixer_oss 14848 1 snd_pcm_oss
snd_emu10k1 135712 0
firmware_class 8384 1 snd_emu10k1
snd_util_mem 4032 1 snd_emu10k1
snd_hwdep 8072 1 snd_emu10k1
nvidiafb 41472 0
vgastate 8448 1 nvidiafb
snd_via82xx 23712 0
snd_ac97_codec 109336 2 snd_emu10k1,snd_via82xx
ac97_bus 2048 1 snd_ac97_codec
snd_pcm 71624 4 snd_pcm_oss,snd_emu10k1,snd_via82xx,snd_ac97_codec
snd_timer 20496 3 snd_seq,snd_emu10k1,snd_pcm
snd_page_alloc 8144 3 snd_emu10k1,snd_via82xx,snd_pcm
snd_mpu401_uart 7296 1 snd_via82xx
nvidia 8098224 0
snd_rawmidi 20832 2 snd_emu10k1,snd_mpu401_uart
snd_seq_device 6868 5 snd_seq_dummy,snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi
snd 51592 13 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_emu10k1,
snd_hwdep,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
rtl8180 29184 0
mac80211 128268 1 rtl8180
eeprom_93cx6 2368 1 rtl8180
via_rhine 21704 0
|
/dev/snd:
Code: |
celkem 0
crw-rw---- 1 root audio 116, 0 30. srp 2008 controlC0
crw-rw---- 1 root audio 116, 24 30. srp 2008 pcmC0D0c
crw-rw---- 1 root audio 116, 16 30. srp 2008 pcmC0D0p
crw-rw---- 1 root audio 116, 25 30. srp 2008 pcmC0D1c
crw-rw---- 1 root audio 116, 17 30. srp 2008 pcmC0D1p
crw-rw---- 1 root audio 116, 1 29. srp 22.03 seq
crw-rw---- 1 root audio 116, 33 30. srp 2008 timer
|
and /dev/sound does not exist.
Mod edit - line break added by NeddySeagoon for easy reading |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54420 Location: 56N 3W
|
Posted: Fri Aug 29, 2008 9:23 pm Post subject: |
|
|
auris,
From reading your lsmod, your snd_via82xx loaded before snd_emu10k1, so your on board via device is sound card 0 and the Creative 10k1 would be sound card 1 but from your /dev/snd you only have a control file and thats for card 0. I guess you don't have any Creative 10k1 hardware fitted. Thats supported by your lspci.
The missing /dev/sound is due to the OSS emualtion modules Code: | CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y | not being loaded. Thats probablay an error in your /etc/modules.d/alsa file. Please post it.
Meanwhile, you can load the modules by hand or use alsa only sound.
mpalyer -ao alsa .... should work
mpalyer -ao oss .... will fail.
You should be able to run alsamixer and unmute only PCM and Master, set their sliders to 70% and play files from your hard drive.
Its important that only PCM and Master are unmuted. Your sound card supports analogue and digital sound but not both together.
When a digital control is unmuted, digital is selected and analogue is disabled. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|