Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
no sound, 2.6.5-mm1 on x86
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
x86processor
n00b
n00b


Joined: 07 Apr 2004
Posts: 14

PostPosted: Sun Apr 18, 2004 4:41 am    Post subject: no sound, 2.6.5-mm1 on x86 Reply with quote

Hi!

I have installed Gentoo 1.4 with kernel sources 2.6.5-mm1on my Thinkpad T41. Installation documentation available here (http://www.rit.edu/~sak5991/gentoofreebsd.html).

I am trying to configure the sound. The kernel is detecting my sound, as seen from the output of

Quote:

#cat /proc/pci | grep audio
Multimedia audio controller: Intel Corp. 82801DB AC'97 Audio Controller (Rev 1)


I had SuSE 9 earlier and this is the lsmod output (showing sound drivers loaded)

Quote:

Module Size Used by Tainted: P
snd-pcm-oss 45152 0 (autoclean)
snd-mixer-oss 13400 0 (autoclean) [snd-pcm-oss]
ipv6 209824 -1 (autoclean)
key 63256 0 (autoclean) [ipv6]
driverloader 125868 1
videodev 5696 0 (autoclean)
isa-pnp 30664 0 (unused)
speedstep-centrino 2600 0 (unused)
snd-intel8x0 19492 0
snd-pcm 65124 0 [snd-pcm-oss snd-intel8x0]
snd-timer 15040 0 [snd-pcm]
snd-ac97-codec 39512 0 [snd-intel8x0]
thermal 6148 0 (unused)
snd-page-alloc 6004 0 [snd-intel8x0 snd-pcm]
processor 8248 0 [thermal]
snd-mpu401-uart 3584 0 [snd-intel8x0]
snd-rawmidi 14080 0 [snd-mpu401-uart]
fan 1472 0 (unused)
snd-seq-device 4048 0 [snd-rawmidi]
button 2380 0 (unused)
snd 35172 0 [snd-pcm-oss snd-mixer-oss
snd-intel8x0 snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi
snd-seq-device]
battery 5600 0 (unused)
soundcore 3588 0 [snd]
ac 1664 0 (unused)
keybdev 1996 0 (unused)
mousedev 4084 0 (unused)
joydev 5120 0 (unused)
evdev 3584 0 (unused)
input 3360 0 [keybdev mousedev joydev evdev]
usb-uhci 22224 0 (unused)
ehci-hcd 16588 0 (unused)
usbcore 58668 1 [usb-uhci ehci-hcd]
raw1394 16592 0 (unused)
ieee1394 183332 0 [raw1394]
af_packet 12208 2 (autoclean)
e1000 63716 1
ide-scsi 10000 0
scsi_mod 97108 1 [ide-scsi]
ide-cd 29664 0
cdrom 26752 0 [ide-cd]
lvm-mod 62628 0 (autoclean)
dm-mod 42096 0 (unused)
reiserfs 200084 1


Now, on Gentoo, I have all these drivers (except soundcore) in /lib/modules/2.6.5-mm1/kernel/sound/pci

When I do, modprobe snd-intel8x0 all the above sound drivers get loaded, except for "soundcore". The output of lsmod in Gentoo:

Quote:

Module Size Used by
snd_intel8x0 29352 0
snd_ac97_codec 56324 1 snd_intel8x0
snd_pcm 79652 1 snd_intel8x0
snd_timer 20484 1 snd_pcm
snd_page_alloc 9220 2 snd_intel8x0,snd_pcm
gameport 3712 1 snd_intel8x0
snd_mpu401_uart 5760 1 snd_intel8x0
snd_rawmidi 19360 1 snd_mpu401_uart
snd_seq_device 6536 1 snd_rawmidi
snd 44772 7 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
radeon 125380 0
agpgart 27432 0
uhci_hcd 27932 0
ohci_hcd 17692 0
ehci_hcd 24072 0
driverloader 145836 0
usbcore 88756 5 uhci_hcd,ohci_hcd,ehci_hcd
e1000 79116 0


So, I tried loading the soundcore module, but, it returned FATAL: no module found. I have built-in module support for the drivers and alsa in /usr/src/linux/.config. dmesg shows the following:

Quote:

PCI: Setting latency timer of device 0000:00:1f.5 to 64
intel8x0_measure_ac97_clock: measured 49451 usecs
intel8x0: clocking to 48000


I tried increasing the volume in xmms and playing an .mp3 file, it said:

Quote:

"Please check that
Your soundcard is configured properly
You have the correct output plugin selected
No other progress is blocking the soundcard


Any help will be very useful.

Thanks,

x86
Back to top
View user's profile Send private message
meowsqueak
Veteran
Veteran


Joined: 26 Aug 2003
Posts: 1549
Location: New Zealand

PostPosted: Sun Apr 18, 2004 4:44 am    Post subject: Reply with quote

Check the relevant device nodes in /dev are set to 'group audio rw' and you are part of the audio group yourself?
Back to top
View user's profile Send private message
x86processor
n00b
n00b


Joined: 07 Apr 2004
Posts: 14

PostPosted: Mon Apr 19, 2004 1:22 am    Post subject: Reply with quote

None of the users were part of the audio group, so I have now added the "shaks" user to audio group. I have also changed the /dev/sound and /dev/snd settings to group audio and file permissions are set to rw. Here is the output:
Quote:

#ls -l /dev/snd
total 0
crw------- 1 shaks audio 116, 0 Dec 31 1969 controlC0
crw------- 1 shaks audio 116, 24 Dec 31 1969 pcmC0D0c
crw------- 1 shaks audio 116, 16 Dec 31 1969 pcmC0D0p
crw------- 1 shaks audio 116, 25 Dec 31 1969 pcmC0D1c
crw------- 1 shaks audio 116, 26 Dec 31 1969 pcmC0D2c
crw------- 1 shaks audio 116, 27 Dec 31 1969 pcmC0D3c
crw------- 1 shaks audio 116, 20 Dec 31 1969 pcmC0D4p
crw------- 1 shaks audio 116, 33 Dec 31 1969 timer

#ls -l /dev/sound
total 0

#ls -ld /dev/snd
drwxr-xr-x 1 root audio 0 Dec 31 1969 /dev/snd

#ls -ld /dev/sound
drwxr-xr-x 1 root audio 0 Dec 31 1969 /dev/sound


I am still getting the following error when I play xmms:
""Please check that
Your soundcard is configured properly
You have the correct output plugin selected
No other progress is blocking the soundcard"

Am I missing something?

x86
Back to top
View user's profile Send private message
x86processor
n00b
n00b


Joined: 07 Apr 2004
Posts: 14

PostPosted: Mon Apr 19, 2004 5:06 am    Post subject: Reply with quote

Ok, I have it working. This is my documentation:

Opened alsa-guide webpage:
http://www.gentoo.org/doc/en/alsa-guide.xml

Under Installation,
I skipped kernel modules, as I already had the sound modules installed and compiled in my 2.6 kernel, and hence moved to configuration of ALSA modules.

emerged alsa-utils:
Code:

#emerge alsa-utils

Didn't change anything in /etc/modules.d/alsa except added my sound card as:
Quote:

alias snd-card-0 snd-intel8x0

The mixer, dsp and midi settings for were already uncommented.
Saved the file and did:
Code:

#modules-update

The sound settings were properly configured already in /etc/devfsd.conf

I started alsa,
Code:

# /etc/init.d/alsasound start

It started fine, but, had to unmute master and PCM:
Code:

# amixer set Master 100 unmute
# amixer set PCM 100 unmute

I tested if sound worked by playing pop.wav:
Code:

#aplay $KDEDIR/share/sounds/pop.wav

and it played the "pop" sound :)

So, I decided to add alsa to startup boot,
Code:

#rc-update add alsasound boot


Thanks,

x86
Back to top
View user's profile Send private message
!db!
Apprentice
Apprentice


Joined: 25 Nov 2003
Posts: 172
Location: A frozen, barren wasteland

PostPosted: Sat Jul 03, 2004 3:03 pm    Post subject: Reply with quote

I just got a T41 and wanted to say thanks to x86processor for his very clear walkthrough - worked straight off for me!
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Sat Jul 03, 2004 11:46 pm    Post subject: Reply with quote

Moved from Multimedia.
Back to top
View user's profile Send private message
jeffschwab
n00b
n00b


Joined: 05 May 2007
Posts: 2
Location: RTP, North Carolina

PostPosted: Sat May 05, 2007 2:30 am    Post subject: Thank you Reply with quote

x86processor wrote:
Ok, I have it working. This is my documentation:

Opened alsa-guide webpage:
http://www.gentoo.org/doc/en/alsa-guide.xml

Under Installation,
I skipped kernel modules, as I already had the sound modules installed and compiled in my 2.6 kernel, and hence moved to configuration of ALSA modules.

emerged alsa-utils:
Code:

#emerge alsa-utils

Didn't change anything in /etc/modules.d/alsa except added my sound card as:
Quote:

alias snd-card-0 snd-intel8x0

The mixer, dsp and midi settings for were already uncommented.
Saved the file and did:
Code:

#modules-update

The sound settings were properly configured already in /etc/devfsd.conf

I started alsa,
Code:

# /etc/init.d/alsasound start

It started fine, but, had to unmute master and PCM:
Code:

# amixer set Master 100 unmute
# amixer set PCM 100 unmute

I tested if sound worked by playing pop.wav:
Code:

#aplay $KDEDIR/share/sounds/pop.wav

and it played the "pop" sound :)

So, I decided to add alsa to startup boot,
Code:

#rc-update add alsasound boot


Thanks,

x86


Outstanding. I can only guess how much time this has saved me. Thank you. Three years later, this is still usefu.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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