LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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

Reply
 
LinkBack Search this Thread
Old 09-22-2005, 02:23 PM   #1
logicalfuzz
Member
 
Registered: Aug 2005
Distribution: Arch Linux
Posts: 291

Rep: Reputation: 39
no sound in LFS


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
 
Old 09-22-2005, 03:10 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
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
and my card;
Code:
CONFIG_SND_CA0106=m
 
Old 09-22-2005, 10:21 PM   #3
logicalfuzz
Member
 
Registered: Aug 2005
Distribution: Arch Linux
Posts: 291

Original Poster
Rep: Reputation: 39
but dont i need to compile the alsa library, pluggin etc?
 
Old 09-23-2005, 04:04 AM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
Sure if you want to, but most will look for the modules and if you compile support for your kernel *y* they may not be able to find the modules *m*
 
Old 09-23-2005, 07:03 AM   #5
logicalfuzz
Member
 
Registered: Aug 2005
Distribution: Arch Linux
Posts: 291

Original Poster
Rep: Reputation: 39
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?
 
Old 09-23-2005, 07:17 AM   #6
logicalfuzz
Member
 
Registered: Aug 2005
Distribution: Arch Linux
Posts: 291

Original Poster
Rep: Reputation: 39
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
 
Old 09-23-2005, 10:53 AM   #7
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
What happens when you do man which?
 
Old 09-23-2005, 11:06 AM   #8
Whitesocks
Member
 
Registered: Sep 2005
Posts: 30

Rep: Reputation: 15
I would recommend compiling support for alsa into the kernel since you then can rule out module loading as a possible error source.

You only need ALSA Library-1.0.9 and ALSA Utilities-1.0.9a to get sound working.

When you type lspci (as root), is your internal sound listed in some way? I have a external card, so for me it looks like this:

Multimedia audio controller: Creative Labs SB Audigy (rev 04)

(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...
 
Old 09-23-2005, 01:28 PM   #9
logicalfuzz
Member
 
Registered: Aug 2005
Distribution: Arch Linux
Posts: 291

Original Poster
Rep: Reputation: 39
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.
 
Old 03-09-2006, 08:35 AM   #10
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
Question

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.
 
Old 03-11-2006, 04:33 AM   #11
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
What does
Quote:
Originally Posted by Whitesocks
when alsa is compiled as modules
mean? How one compiles it as modules?
 
Old 03-21-2006, 02:58 AM   #12
logicalfuzz
Member
 
Registered: Aug 2005
Distribution: Arch Linux
Posts: 291

Original Poster
Rep: Reputation: 39
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
QUERY: is LFS LFS? kevingpo Linux From Scratch 7 09-23-2005 12:15 PM
LFS-7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 0 09-03-2005 05:03 AM
cannot login as user 'lfs' [su - lfs] mayasedai Linux From Scratch 2 07-26-2005 06:10 AM
LFS 3.2 book, but LFS packages 3.0 CragStar Linux From Scratch 2 04-07-2002 03:15 PM


All times are GMT -5. The time now is 07:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration