LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-29-2004, 11:52 PM   #1
acanton
Member
 
Registered: Jul 2004
Posts: 115

Rep: Reputation: 15
Sound in one kernel, not other


I have 2.4.22 with 9.1. I have a kernel I compiled a year ago for Win4Lin. Sound works fine.

I also have the original bare.i kernel which I don't use too often. But I boot to that, there is no sound.

I checked alsamixer when booted to each kernel and there is no difference.

What is going on? What do you think I did to the Win4Lin kernel that gives the sound? What can I do to get sound in the non-W4L kernel?

Thanks,

Al
 
Old 07-30-2004, 12:03 AM   #2
SomeGuy7898
Member
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 41

Rep: Reputation: 15
When you say no sound... there is no /dev/dsp device, or what? play a mp3 file, and if it does *not* give you an error.. chances are your main output is muted. Run alsamixer and check if there is a MM overtop the audio levels . Far to many times have i looked to deep and noticed it was just muted 0_o.
 
Old 07-30-2004, 12:22 AM   #3
acanton
Member
 
Registered: Jul 2004
Posts: 115

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by SomeGuy7898
When you say no sound... there is no /dev/dsp device, or what? play a mp3 file, and if it does *not* give you an error.. chances are your main output is muted. Run alsamixer and check if there is a MM overtop the audio levels . Far to many times have i looked to deep and noticed it was just muted 0_o.
There is no sound with XMMS via ShoutCast when I use the bare.i kernel. XMMS sound works fine with the Win4Lin kernel. The alsamixer is the same for both, obviously as I only have one alsa installed.

It's got to be a kernel thing with the bare.i that I didn't do or need to do. But what?

Al
 
Old 07-30-2004, 12:54 AM   #4
SomeGuy7898
Member
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 41

Rep: Reputation: 15
I understand sound is not working for the bare.i... But what is the error? Does any device show up in alsamixer? any error reports in dmesg?
 
Old 07-30-2004, 02:11 AM   #5
acanton
Member
 
Registered: Jul 2004
Posts: 115

Original Poster
Rep: Reputation: 15
I see no errors anywhere.... dmesg or when I try to run

root@xxxx:/home/al# aplay /usr/share/sounds/phone.wav
Playing WAVE '/usr/share/sounds/phone.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
root@xxxx:/home/al#

nothing happens. (I should get a phone ring.... and I do when booted to the other kernel.

It can't be an alsa problem as its the same for each kernel. I must be missing some module in the bare.i ... but which one?

Al
 
Old 07-30-2004, 02:22 AM   #6
SomeGuy7898
Member
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 41

Rep: Reputation: 15
Ahh...

No error at all eh? So it can play the audio through some known device..

Check alsamixer, and MAKE SURE ITS NOT MUTED. I'm not kiddin' yah, I have found it muted after spending like 2 - 3 hours trying to figure out why it wasn't working, lol.

If alsamixer has a MM above the audiolevel on master and PCM... then one of hte channels is muted (Master is master.. and PCM is the normal wave output to your spk out). Double check that m8
 
Old 07-30-2004, 02:41 AM   #7
acanton
Member
 
Registered: Jul 2004
Posts: 115

Original Poster
Rep: Reputation: 15
Both Master and PCM are fine. No MM and setting is 100<>100

If this was an alsa problme it would show up on BOTH kernels. So it is not alsa's config. But maybe some module is being loaded (or is compiled) in the Win4Lin kernel that works and not in the bare.i one. What should I look for?

Al
(Going to bed. Will be back in the AM on this!)
 
Old 07-30-2004, 02:43 AM   #8
SomeGuy7898
Member
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 41

Rep: Reputation: 15
Humm... does the device at the top of alsamixer show the same on both kernels? If both devices are the same, both show up in alsamixer as full volume, and only 1 plays.. check the premissions on /dev/dsp.. Also, just for future refrence, what is your sound card, and what does alsamixer show as the device? also, give me a 'lsmod' as well please
 
Old 07-30-2004, 08:57 AM   #9
acanton
Member
 
Registered: Jul 2004
Posts: 115

Original Poster
Rep: Reputation: 15
alsamixer shows ICH5 as the sound card when running both kernels. Makes sense. There is only ONE alsamixer installed TTBOMK.

permissions for both are:

al@xxx:~$ ls -l /dev/dsp
lrwxrwxrwx 1 root root 4 Oct 10 2003 /dev/dsp -> dsp0
al@xxx:~$ ls -l /dev/dsp0
crw-rw-rw- 1 root sys 14, 3 Aug 29 2003 /dev/dsp0

The lsmod for each are below... first the BAD, then the GOOD. Note that on the BAD the 'used by' is different on the following. And why are the sizes different? Why is oss there to begin with? I'm really baffled by this.

-Al


(Bad kernel)
snd-pcm-oss 37252 0
snd-mixer-oss 11992 1 [snd-pcm-oss]

(Good kernel)
snd-pcm-oss 39396 1
snd-mixer-oss 13752 0 [snd-pcm-oss]

==========

BAD (this is plain old bare.i from the install)


al@xxx:~$ lsmod
Module Size Used by Not tainted
snd-pcm-oss 37252 0
snd-mixer-oss 11992 1 [snd-pcm-oss]
parport_pc 14724 1 (autoclean)
lp 6752 0 (autoclean)
parport 23264 1 (autoclean) [parport_pc lp]
uhci 24496 0 (unused)
ehci-hcd 16872 0 (unused)
usbcore 58400 1 [uhci ehci-hcd]
i810_rng 2656 0 (unused)
snd-intel8x0 17156 1
snd-pcm 55904 0 [snd-pcm-oss snd-intel8x0]
snd-timer 13252 0 [snd-pcm]
snd-ac97-codec 37240 0 [snd-intel8x0]
snd-page-alloc 6004 0 [snd-intel8x0 snd-pcm]
snd-mpu401-uart 3136 0 [snd-intel8x0]
snd-rawmidi 12512 0 [snd-mpu401-uart]
snd-seq-device 3920 0 [snd-rawmidi]
snd 27460 0 [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore 3332 4 [snd]
eepro100 19380 1
mii 2304 0 [eepro100]
pcmcia_core 40032 0
ide-scsi 9424 0
agpgart 39576 6
apm 9640 2

=============


GOOD (this kernel was compiled to include Win4Lin stuff)

al@xxx:~$ lsmod
Module Size Used by Not tainted
Mvnetd 9988 1 (unused)
Mvnet 56896 0 [Mvnetd]
Mvnetint 320 0 (unused)
Mvw 4756 0 (unused)
Mvmouse 840 0 (unused)
Mvkbd 960 0 (unused)
Mvgic 3480 0 (unused)
Mvdsp 1040 0 (unused)
Mserial 6740 0 (unused)
Mmpip 7476 0 (unused)
Mmerge 138068 0 [Mvnetd Mvnet Mvw Mvmouse Mvkbd Mvgic Mvdsp Mserial Mmpip]
mki-adapter 23512 0 [Mvnetd Mvnet Mvnetint Mvw Mvmouse Mvkbd Mvgic Mvdsp Mserial Mmpip Mmerge]
snd-pcm-oss 39396 1
snd-mixer-oss 13752 0 [snd-pcm-oss]
parport_pc 15972 1 (autoclean)
lp 6944 0 (autoclean)
parport 25600 1 (autoclean) [parport_pc lp]
uhci 25968 0 (unused)
ehci-hcd 17864 0 (unused)
usbcore 62656 1 [uhci ehci-hcd]
i810_rng 2720 0 (unused)
snd-intel8x0 19460 1
snd-pcm 61536 0 [snd-pcm-oss snd-intel8x0]
snd-timer 14628 0 [snd-pcm]
snd-ac97-codec 42456 0 [snd-intel8x0]
snd-page-alloc 6516 0 [snd-intel8x0 snd-pcm]
snd-mpu401-uart 3472 0 [snd-intel8x0]
snd-rawmidi 13536 0 [snd-mpu401-uart]
snd-seq-device 4304 0 [snd-rawmidi]
snd 29956 0 [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore 3588 4 [snd]
eepro100 20276 1
mii 2496 0 [eepro100]
pcmcia_core 43104 0
ide-scsi 10352 0
agpgart 42008 6
apm 10088 2
 
Old 07-30-2004, 09:33 AM   #10
acanton
Member
 
Registered: Jul 2004
Posts: 115

Original Poster
Rep: Reputation: 15
Hold on. I noticed something else when looking at alsamixer for each kernel. The no-sound kernel has a "headphone' vertical bar in alsamixer while the "good" kernel does not show that when I execute alsamixer.

Are there two different alsa systems here and the bare.i kernel is pulling in the wrong one. How can I check to see what versions each is using?

Al
 
Old 07-30-2004, 11:46 AM   #11
acanton
Member
 
Registered: Jul 2004
Posts: 115

Original Poster
Rep: Reputation: 15
I found something else. I must have 2 alsa drivers. When I boot to the "good" kernel:

al@xxx:~$ more /proc/asound/version
Advanced Linux Sound Architecture Driver Version 0.9.7c.
Compiled on Oct 14 2003 for kernel 2.4.22-mywin4lin.


On "bad" kernel I get a different message about it being compiled for 2.4.22 and Driver version .0.9.6

How can the version file on /proc/asound give me two different results. Obvioulsy something I don't understand about the /proc directory.

How can I get the "bad" kernel to see the updated alsa stuff?

Al
 
Old 07-30-2004, 12:28 PM   #12
SomeGuy7898
Member
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 41

Rep: Reputation: 15
By the sounds of this... Your kernels (both bare.i and the W4L) are both fully supporting your sound card. Alsamixer detects the device under both kernels.. both kernels have the module loaded and being used. If all the volume is turned up, speakers are plugged in and turned on (Doh!), it *should* be working. When an app goes to play music, and returns no error (just you don't hear anything), usually its your output being blocked, not device / kernel problems.
 
Old 07-30-2004, 12:31 PM   #13
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Well if ALSA isn't built-in on the the kernel, you should be able to update it by running the "bad" kernel and updating alsa-driver package.
 
Old 07-30-2004, 01:38 PM   #14
acanton
Member
 
Registered: Jul 2004
Posts: 115

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by gbonvehi
Well if ALSA isn't built-in on the the kernel, you should be able to update it by running the "bad" kernel and updating alsa-driver package.
I don't know what is built into what because like an idiot I deleted the "good" kernel source folder and config etc. Like I said, I'm an idiot.

It's not that big a deal. I was was mainly curious as to why it would work in one kernel and not in the other. I DO remember downloading the alsa stuff and compiling it and then building the kernel of the Win4Lin. So that is how I have two sets of alsa.

If I update the drive via pkgtools, I wonder what that will do the the "good" kernel as I don't know if I have it compiled in or if it is a module. Why? Because I'm an IDIOT !!

Al
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
No sound with Kernel 2.6.7 gotmonkey Slackware 6 12-17-2004 12:45 PM
kernel 2.6.7 and sound jam222 Slackware 10 07-09-2004 07:43 AM
kernel sound Infinite_Pizza Linux - Hardware 0 05-30-2004 10:44 PM
Can I load both oss (kernel sound drivers) and alsa in 2 sound cared system? cmisip Linux - General 0 04-12-2003 01:27 AM
no sound on sis onboard sound kernel 2.4.18 blither Linux - General 10 12-13-2002 05:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration