Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have compiled mplayer for my LFS system. during compilation i did include support for ALSA. the ALSA portion of the config file reads like this..
Code:
#
# Sound
#
CONFIG_SOUND=y
#
# Advanced Linux Sound Architecture
#
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_SEQUENCER=y
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
of all the alsa packages (alsa-lib, alsa-driver, alsa-pluggin, alsa-utilities, alsa-tools, alsa-firmware, alsa-oss_compat_lib) which are the most important ones i'd need to install... or in other words... what do i do to start sound on LFS?
PS : i have a intel i810e mobo, onboard ac97 audio
I seem to have more success configuring them as modules
Code:
#
# Advanced Linux Sound Architecture
#
CONFIG_SND=y
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=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_SEQUENCER_OSS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
recompiled kernel, still not working, complete details here
i have recompiled the kernel.... the sound part now looks like this..
Code:
# Sound
#
CONFIG_SOUND=y
#
# Advanced Linux Sound Architecture
#
CONFIG_SND=y
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=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_SEQUENCER_OSS is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
#
# Generic devices
#
CONFIG_SND_DUMMY=m
CONFIG_SND_VIRMIDI=m
CONFIG_SND_MTPAV=m
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set
# PCI devices
CONFIG_SND_INTEL8X0=m
but still no success..
when i give
mplayer xyz.mp3
there is no sound (though it shows progress), and when i use the '/' and '*' for volume comtrol the message says
Code:
no hardware mixing, inserting volume filter
i installed alsa-lib-1.0.9rc4 and alsa-utils-1.0.9rc4a. now when i use alsaconf it says
Code:
#alsaconf
/usr/sbin/alsaconf : line 30 : which : command not found
modinfo : could not find module snd
modinfo : could not find module snd
modinfo : could not find module snd
/usr/sbin/alsaconf : line 210 : which : command not found
/usr/sbin/alsaconf : line 213 : which : command not found
Error, dialog or whip tail not found.
the command 'speaker-test' does bring the speaker to life, but it gives only a hissing sound like that of an untuned radio station.
pls guide...
PS: pls keep in mind i am doing this on LFS... am i missing out on some package?
here's more...
'alsamixer' at command prompt, along with all other settings says
card : Intel 82801AA-ICH
Chip : Realtek ALC100/100P rev 38
any configuration to be done with this? as i said mine is AC97 sound card on i810e motherboard
(If you get alot of "unknown" things listed here, try updating your lspci lookup file by typing update-pciids as root. Half my stuff was listed as unknown until i did this. =))
Also, type alsamixer and make sure that Master volume control is not 0.
Do the alsa bootup script work OK? No error messages during boot?
By the way, i also get that error message when i type alsaconf, but the manpage says the command is for generating a configuration when alsa is compiled as modules. Since i have it compiled into the kernel, it doesnt apply to me. I suggest you compile your stuff into the kernel.
I see no reason to have hardware support as modules when i will have the same hardware every time I boot. =) If the modules will always get loaded, there is little reason to have them as modules i think...
I'M IN LOVE !!! I CAN HEAR MY SPEAKERS SAY THAT !!!
)
it feels great... to see applications come to life from mere text codes !! like a phoenix coming up fom ashes ...
yeah it feels imense joy to see my LFS system building it from scratch .....
thanks to you guys here i now have sound working on linux.
how it started working? i'll mention what all i have in place
i recompiled kernel and this time i DID NOT compile alsa as modules. i had it marked '*' instead of a 'M' while configuring
i have alsa-lib and alsa-utils installed
and of'course MPlayer
THATS ABOUT IT.
thanks again,
Last edited by logicalfuzz; 09-23-2005 at 01:30 PM.
I've got the same problem as logicalfuzz.
I am in the mid-way of having ALSA in place on my (B)LFS 6.1. I installed ALSA-lib, ALSA-plugins, ALSA-utils. When I tried to configure the utils with alsaconf it says something like
Quote:
#alsaconf
modinfo : could not find module snd
...
which : dialog not found
which : whiptail not found
Error, dialog or whiptail not found.
"which" seems to be in place, but I can't understand what dialog and whiptail are (neither LFS nor BLFS indexes contain anything alike). BTW, lspci lists my AC97 on-board sound "card"
Quote:
#lspci
...
... Multimedia audio controller: VIA VT82C686A (rev 10)...
no unknown things listed, so LFS found my soundcard.
I tried to recompile the kernel without any modules - no changes.
Last edited by Vitalie Ciubotaru; 03-09-2006 at 08:37 AM.
When you compile the kernel, during configuration you would be able to choose 'Y', 'N' or 'M' for the components to be compiled. Here 'M' stands for Modules. This (modules) option does not appear for all the components though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.