Skip to contentSkip to conversation

(unknown)

DISCUSSION [email protected] 4 participants 8 messages Feb 5, 2004 – Feb 7, 2004

lore
Share & tools
lore
#0 lore raw

--------
Hi,
Resent-Date: Thu, 5 Feb 2004 15:11:34 +0800
Resent-From: Peter <[email protected]>
Subject: Bad Sound in Slackware
Resent-Message-Id: <[email protected]>
Resent-To: [email protected]

In Slackware 9.1 I have a very annoying distorted sound which I am unable to correct.

My RH9.0 and SW9.1 have the same kernel and the same settings in sound. Both have the same /etc/module.conf.

SW lsmod gives:

Module Size Used by Not tainted

snd-pcm-oss            37252   0  (unused)
snd-mixer-oss          11992   0  [snd-pcm-oss]
uhci                   24496   0  (unused)
ehci-hcd               16872   0  (unused)
usbcore                58400   1  [uhci ehci-hcd]
snd-via82xx            11712   0 
snd-pcm                55904   0  [snd-pcm-oss snd-via82xx]
snd-timer              13252   0  [snd-pcm]
snd-ac97-codec         37240   0  [snd-via82xx]
snd-page-alloc          6004   0  [snd-via82xx snd-pcm]
snd-mpu401-uart         3136   0  [snd-via82xx]
snd-rawmidi            12512   0  [snd-mpu401-uart]
snd-seq-device          3920   0  [snd-rawmidi]
snd                    27460   0  [snd-pcm-oss snd-mixer-oss snd-via82xx 
snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore               3332   4  [snd]
pcmcia_core            40032   0 
ide-scsi                9424   0 
agpgart                39576   0  (unused)

RH lsmod gives:

Module Size Used by Not tainted

via82cxxx_audio        22136   0 (autoclean)
ac97_codec             15464   0 (autoclean) [via82cxxx_audio]
soundcore               5604   2 (autoclean) [via82cxxx_audio]
parport_pc             17732   1 (autoclean)
lp                      8128   0 (autoclean)
parport                32064   1 (autoclean) [parport_pc lp]
apm                    12264   2
irlan                  24276   0 (unused)
irda                  107568   0 [irlan]
ipchains               48784  13
keybdev                 2784   0 (unused)
mousedev                5396   0 (unused)
hid                    23972   0 (unused)
input                   5184   0 [keybdev mousedev hid]
ehci-hcd               19272   0 (unused)
usbcore                71488   1 [hid ehci-hcd]

What could be the reason for the distorted sound in SW and how could it be corrected.

Thanks & regards

Signature · 10 lines
Peter




-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#1 lore raw

Re:

HI, sorry, but, i see that there are too many difference between both. The first one, is using alsa drivers for sound, with oss emulation for those applications that doesn't support alsa. The second one, uses oss (open sound system). I don't know which the problem is, but, you can start with it
----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Thursday, February 05, 2004 4:03 AM

| --------
| Hi,
| Resent-Date: Thu, 5 Feb 2004 15:11:34 +0800
| Resent-From: Peter <[email protected]>
| Subject: Bad Sound in Slackware
| Resent-Message-Id: <[email protected]>
| Resent-To: [email protected]
|
| In Slackware 9.1 I have a very annoying distorted sound which I am unable to
| correct.
|
| My RH9.0 and SW9.1 have the same kernel and the same settings in sound. Both
| have the same /etc/module.conf.
|
| SW lsmod gives:
|
| Module                  Size  Used by    Not tainted
| snd-pcm-oss            37252   0  (unused)
| snd-mixer-oss          11992   0  [snd-pcm-oss]
| uhci                   24496   0  (unused)
| ehci-hcd               16872   0  (unused)
| usbcore                58400   1  [uhci ehci-hcd]
| snd-via82xx            11712   0
| snd-pcm                55904   0  [snd-pcm-oss snd-via82xx]
| snd-timer              13252   0  [snd-pcm]
| snd-ac97-codec         37240   0  [snd-via82xx]
| snd-page-alloc          6004   0  [snd-via82xx snd-pcm]
| snd-mpu401-uart         3136   0  [snd-via82xx]
| snd-rawmidi            12512   0  [snd-mpu401-uart]
| snd-seq-device          3920   0  [snd-rawmidi]
| snd                    27460   0  [snd-pcm-oss snd-mixer-oss snd-via82xx
| snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
| soundcore               3332   4  [snd]
| pcmcia_core            40032   0
| ide-scsi                9424   0
| agpgart                39576   0  (unused)
|
| RH lsmod gives:
|
| Module                  Size  Used by    Not tainted
| via82cxxx_audio        22136   0 (autoclean)
| ac97_codec             15464   0 (autoclean) [via82cxxx_audio]
| soundcore               5604   2 (autoclean) [via82cxxx_audio]
| parport_pc             17732   1 (autoclean)
| lp                      8128   0 (autoclean)
| parport                32064   1 (autoclean) [parport_pc lp]
| apm                    12264   2
| irlan                  24276   0 (unused)
| irda                  107568   0 [irlan]
| ipchains               48784  13
| keybdev                 2784   0 (unused)
| mousedev                5396   0 (unused)
| hid                    23972   0 (unused)
| input                   5184   0 [keybdev mousedev hid]
| ehci-hcd               19272   0 (unused)
| usbcore                71488   1 [hid ehci-hcd]
|
|
| What could be the reason for the distorted sound in SW and how could it be
| corrected.
|
| Thanks & regards
|
| --
| Peter
|
|
|
|
| -
| To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
| the body of a message to [email protected]
| More majordomo info at  http://vger.kernel.org/majordomo-info.html
| Please read the FAQ at http://www.linux-learn.org/faqs
|

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw

Re:

I have encountered people with the same problem. AFAIK, SW9.1 has some problems with Alsa being used as the driver( maybe a kernel problem, I don't know) if you are using mpg321 as the player use the option
mpg321 -o oss
This worked for a friend.
So ,I figure all you have to do is change the ddefault drivers to oss or upgrade your kernel
Joy.

Quoted 82 lines

----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Thursday, February 05, 2004 4:03 AM

| --------
| Hi,
| Resent-Date: Thu, 5 Feb 2004 15:11:34 +0800
| Resent-From: Peter <[email protected]>
| Subject: Bad Sound in Slackware
| Resent-Message-Id: <[email protected]>
| Resent-To: [email protected]
|
| In Slackware 9.1 I have a very annoying distorted sound which I am unable to
| correct.
|
| My RH9.0 and SW9.1 have the same kernel and the same settings in sound. Both
| have the same /etc/module.conf.
|
| SW lsmod gives:
|
| Module                  Size  Used by    Not tainted
| snd-pcm-oss            37252   0  (unused)
| snd-mixer-oss          11992   0  [snd-pcm-oss]
| uhci                   24496   0  (unused)
| ehci-hcd               16872   0  (unused)
| usbcore                58400   1  [uhci ehci-hcd]
| snd-via82xx            11712   0
| snd-pcm                55904   0  [snd-pcm-oss snd-via82xx]
| snd-timer              13252   0  [snd-pcm]
| snd-ac97-codec         37240   0  [snd-via82xx]
| snd-page-alloc          6004   0  [snd-via82xx snd-pcm]
| snd-mpu401-uart         3136   0  [snd-via82xx]
| snd-rawmidi            12512   0  [snd-mpu401-uart]
| snd-seq-device          3920   0  [snd-rawmidi]
| snd                    27460   0  [snd-pcm-oss snd-mixer-oss snd-via82xx
| snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
| soundcore               3332   4  [snd]
| pcmcia_core            40032   0
| ide-scsi                9424   0
| agpgart                39576   0  (unused)
|
| RH lsmod gives:
|
| Module                  Size  Used by    Not tainted
| via82cxxx_audio        22136   0 (autoclean)
| ac97_codec             15464   0 (autoclean) [via82cxxx_audio]
| soundcore               5604   2 (autoclean) [via82cxxx_audio]
| parport_pc             17732   1 (autoclean)
| lp                      8128   0 (autoclean)
| parport                32064   1 (autoclean) [parport_pc lp]
| apm                    12264   2
| irlan                  24276   0 (unused)
| irda                  107568   0 [irlan]
| ipchains               48784  13
| keybdev                 2784   0 (unused)
| mousedev                5396   0 (unused)
| hid                    23972   0 (unused)
| input                   5184   0 [keybdev mousedev hid]
| ehci-hcd               19272   0 (unused)
| usbcore                71488   1 [hid ehci-hcd]
|
|
| What could be the reason for the distorted sound in SW and how could it be
| corrected.
|
| Thanks & regards
|
| --
| Peter
|
|
|
|
| -
| To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
| the body of a message to [email protected]
| More majordomo info at  http://vger.kernel.org/majordomo-info.html
| Please read the FAQ at http://www.linux-learn.org/faqs
|
Quoted 8 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#3 lore raw

Re: sound problem (was: [no subject])

In reply to [email protected]

First a preliminary suggestion: Please use Subject: lines in your mail to this list. Since the lack of a Subject: line is a characteristic of SPAM and virus messages, I usually discard unread any such messages ... I only read this one because I happened to recognize your e-mail address.

As to your actual problem ... you will have to tell us a bit more.

First, if the two setups -- Slackware and Red Hat -- use the same kernel and the same modules.conf, why do they end up loading different modules? The init scripts must be doing something quite different.

Second, what kernel is involved? Does your calling them "the same" mean just that they have the same number, or that you compiled them with the same .config files?

Third, what sound card (or mobo sound) is involved?

Fourth, if I remember my modules names correctly, your Slackware kernel is using ALSA sound modules, while your Red Hat kernel is using OSS sound modules. This would imply the need to use different apps to adjust the sound settings -- ALSA uses amixer or alsamixer; while OSS uses rexima (and maybe others) -- so I wonder in what sense the two setups can have "the same settings in sound" (and, for that matter, what "in sound" means).

Finally, what use is producing the "very annoying distorted sound" and what else can you tell us about its characteristics? (I've had problems here with VIA-chip sound under both Linux and Windows -- suggesting a harware problem -- but only when using the sound system to record, not for playback.)

Quoted 58 lines · At 03:03 PM 2/5/2004 +0800, [email protected] wrote:

--------
Hi,
Resent-Date: Thu, 5 Feb 2004 15:11:34 +0800
Resent-From: Peter <[email protected]>
Subject: Bad Sound in Slackware
Resent-Message-Id: <[email protected]>
Resent-To: [email protected]

In Slackware 9.1 I have a very annoying distorted sound which I am unable to correct.

My RH9.0 and SW9.1 have the same kernel and the same settings in sound. Both have the same /etc/module.conf.

SW lsmod gives:

Module Size Used by Not tainted

snd-pcm-oss            37252   0  (unused)
snd-mixer-oss          11992   0  [snd-pcm-oss]
uhci                   24496   0  (unused)
ehci-hcd               16872   0  (unused)
usbcore                58400   1  [uhci ehci-hcd]
snd-via82xx            11712   0
snd-pcm                55904   0  [snd-pcm-oss snd-via82xx]
snd-timer              13252   0  [snd-pcm]
snd-ac97-codec         37240   0  [snd-via82xx]
snd-page-alloc          6004   0  [snd-via82xx snd-pcm]
snd-mpu401-uart         3136   0  [snd-via82xx]
snd-rawmidi            12512   0  [snd-mpu401-uart]
snd-seq-device          3920   0  [snd-rawmidi]
snd                    27460   0  [snd-pcm-oss snd-mixer-oss snd-via82xx
snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore               3332   4  [snd]
pcmcia_core            40032   0
ide-scsi                9424   0
agpgart                39576   0  (unused)

RH lsmod gives:

Module Size Used by Not tainted

via82cxxx_audio        22136   0 (autoclean)
ac97_codec             15464   0 (autoclean) [via82cxxx_audio]
soundcore               5604   2 (autoclean) [via82cxxx_audio]
parport_pc             17732   1 (autoclean)
lp                      8128   0 (autoclean)
parport                32064   1 (autoclean) [parport_pc lp]
apm                    12264   2
irlan                  24276   0 (unused)
irda                  107568   0 [irlan]
ipchains               48784  13
keybdev                 2784   0 (unused)
mousedev                5396   0 (unused)
hid                    23972   0 (unused)
input                   5184   0 [keybdev mousedev hid]
ehci-hcd               19272   0 (unused)
usbcore                71488   1 [hid ehci-hcd]
Quoted 2 lines

What could be the reason for the distorted sound in SW and how could it be corrected.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

author
#4 lore raw

Re: sound problem (was: [no subject])

Thanks!

Quoted 5 lines · [email protected] said:

First a preliminary suggestion: Please use Subject: lines in your mail to this list. Since the lack of a Subject: line is a characteristic of SPAM and virus messages, I usually discard unread any such messages ... I only read this one because I happened to recognize your e-mail address.

Sorry for that. My ISP was down for 2 days. Now that I can connect again I have problems sending mail with my mailer exmh, the mail just goes into the queue and sits there. I then switch to sylpheed which integrates the exmh folders and forward the mail by which process I overlooked that the Subject:
was left out.

Quoted 4 lines · [email protected] said:

First, if the two setups -- Slackware and Red Hat -- use the same kernel and the same modules.conf, why do they end up loading different modules? The init scripts must be doing something quite different.

Quoted 1 line · [email protected] said:

for that matter, what "in sound" means

/usr/src/linux make xconfig, then klick on sound

Well, when I had installed RH9.0 I could not open siam office which I could with SW9.1. So I installed the SW 2.4.22 kernel in RH and siam office opened. Having the distorted sound in SW to which distro I am planning to migrate eventually I put the same sound settings in SW found in RH using make xconfig sound. Then I copied the /etc/modules.conf of RH to SW /etc/. That did not change anuthing in SW as for distorted sound.

Quoted 1 line · [email protected] said:

Third, what sound card (or mobo sound) is involved?

The motherboard is P4VMM2 ,
the chipset P4M266/A Northbridge and VT8235 Southbridge, Audio - AC'97 Audio Codec on the mobo.
Celeron 4 processor

Quoted 2 lines · [email protected] said:

Finally, what use is producing the "very annoying distorted sound" and what else can you tell us about its characteristics?

All the .wav files I use for sounds such as opening, closing, iconify etc. windows.
Playing a video CD is plain impossible whereas playing a music CD has no distortion.
The distortion is a continuous scratching and a tapering-off really annoying sound.

I went now back into SW9.1 did a make xconfig sound and klicked yes for OSS. Now the tapering-off sound is gone, however, the annoying scratch persists. It is like an electrical static sound only harder on both speakers. I check the wires, the plug, changed speakers; they must be all fine since there is now such scratch with the RH9.0 sound system.

Hope some solution can be found.

Regards

Signature · 7 lines
Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#5 lore raw

Re: sound problem (was: [no subject])

Quoted 8 lines · Peter

All the .wav files I use for sounds such as opening, closing, iconify etc. windows. Playing a video CD is plain impossible whereas playing a music CD has no distortion. The distortion is a continuous scratching and a tapering-off really annoying sound.

I went now back into SW9.1 did a make xconfig sound and klicked yes for OSS.
Now the tapering-off sound is gone, however, the annoying scratch persists. It is like an electrical static sound only harder on both speakers. I check the wires, the plug, changed speakers; they must be all fine since there is now such scratch with the RH9.0 sound system.

Did you disable alsa during xconfig? If no, please do so. A person I know had the same problem (while playing mp3's, but should apply anyways) he had to run his music player with the OSS drivers (mpg321 -o oss ) for the sound to work fine.

Quoted 8 lines

Hope some solution can be found.

Regards

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#6 lore raw

Re: sound problem (was: [no subject])

In reply to Peter

At 02:59 PM 2/6/2004 +0800, Peter wrote:
[...]

Quoted 4 lines
Quoted 1 line · [email protected] said:

for that matter, what "in sound" means

/usr/src/linux make xconfig, then klick on sound

This cannot be a complete description of what you did with respect to the info you posted before ... since the modules lists you showed us indicated that Slack was using ALSA sound while RH was using OSS sound ... or if it is complete, it hides some omission of consequence.

Quoted 6 lines

Well, when I had installed RH9.0 I could not open siam office which I could with SW9.1. So I installed the SW 2.4.22 kernel in RH and siam office opened. Having the distorted sound in SW to which distro I am planning to migrate eventually I put the same sound settings in SW found in RH using make xconfig sound. Then I copied the /etc/modules.conf of RH to SW /etc/. That did not change anuthing in SW as for distorted sound.

"put" them where? And what "sound settings" do you mean? Do you mean you took the portion of the ./.config file created my "make xconfig" under RH into the ./.config file for the Slackware system, then recompiled its kernel? If you don't mean that, you need to be explicit about what you did ... all "make xconfig" affects is the ,/.config file used for kernel (including module) conpilation.

After you used make xconfig to tedit ./.config (then recompiled the kernel, then installed the new one, of course), did the list of modules installed by Slackware (output of lsmod, I mean) change to match the RH list? If not, you did something wrong or incomplete here ... your description is too abbreviated for me to guess what.

But put all that aside. Your problem in Slackware may simply be that you have not used amixer or alsamixer to configure the sound modules correctly. Out of the box, they typically accept input from too many sources, which can cause the kinds of sound problems you are describing. Run alsamixer and make sure that all inputs, except the ones you are actually using -- probably either "line" or "PCM" -- are muted. Then see if that eliminates your problem.

Quoted 20 lines
Quoted 1 line · [email protected] said:

Third, what sound card (or mobo sound) is involved?

The motherboard is P4VMM2 ,
the chipset P4M266/A Northbridge and VT8235 Southbridge, Audio - AC'97 Audio Codec on the mobo.
Celeron 4 processor

Quoted 2 lines · [email protected] said:

Finally, what use is producing the "very annoying distorted sound" and what else can you tell us about its characteristics?

All the .wav files I use for sounds such as opening, closing, iconify etc. windows.
Playing a video CD is plain impossible whereas playing a music CD has no distortion.
The distortion is a continuous scratching and a tapering-off really annoying sound.

Quoted 5 lines

I went now back into SW9.1 did a make xconfig sound and klicked yes for OSS. Now the tapering-off sound is gone, however, the annoying scratch persists. It is like an electrical static sound only harder on both speakers. I check the wires, the plug, changed speakers; they must be all fine since there is now such scratch with the RH9.0 sound system.

With this change in procedure, do the same modules now load in Slack as in RH? How is this different from what you did the first time (and described above as "I put the same sound settings in SW found in RH using make xconfig") -- did "klicked yes for OSS" not count as part of "the same" the first time around?

Peter -- It's really hard to give you meaningful help when your messages contain inconsistencies like that last one ... you really need to provide more careful and exact descriptions. I've no doubt your actual problem is simple to fix, and it's only this playing of an e-mail analog to blind man's bluff that makes it seem hard or obscure.

First time around, it was clear that even if you thought you set the two distros up "the same", they were loading different modules. The lsmod output you provided before showed that beyond any debate. This time around, we again need to know if they are now really both running the OSS modules, or if Slack is still trying to use ALSA.

Assuming Slack is still using ALSA, you have two choices --

1. Recompile the Slack kernel, and modify Slack's init scripts, so
that Slack uses OSS. For this, you may need help from a Slack user, since its init-script system is far more different from all the other main distros than any two of them are from eaxh other.

2. Make ALSA work (probably by using alsamixer, as I said above).

One minor aside ... though we customarily treat all 2.4.22 (for example) kernel sources as the same in these discussions, that is not exactly true. I know that Debian kernels ship with a set of standard Debian patches that make them a bit different from "pure" kernel source obtained from, say, kernel.org ... and I *think* the same is true of other big name distros too ... RH at least, if not also Slack. This probably does not affect today's problem, but we should remember that kernel sources from different distros are not always exactly the same.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

author
#7 lore raw

Re: sound problem (was: [no subject])

Thanks! I made it, I have now normal sound in Slackware 9.1

First I did make modules, then make modules_install after which I had no more sound. Doing /sbin/insmod soundcore it spit back no such file. Then I found that there is no .../drivers/sound folder. I copied it over from RedHat9. Did insmod soundcore, ac97_codec, via82cxxx_audio and all sounded normally. Then I put those insmod commands into rc.local. Using modprobe I get error no such file soundcore etc.

I do not know if this is a professional solution, but it works.

Now to some of your questions:

In RedHat xconfig Sound has only one setting, sound card support yes. That is what I put in Slackware and put 'no' on all the other settings which were there. When you mentioned OSS I put that on 'yes' in SW.

Quoted 2 lines · [email protected] said:

Your problem in Slackware may simply be that you have not used amixer or alsamixer to configure the sound modules correctly

I tried tried all kinds of different settings on alsamixer before I went on the list. According to Richard of pa3gcu my problem is well know of ALSA drivers.

Quoted 2 lines · [email protected] said:

though we customarily treat all 2.4.22 (for example) kernel sources as the same in these discussions, that is not exactly true

As I mentioned I took the SW kernel 2.4.22 from the Slackware Installation Disk and installed it in RH9 and even in RH7.3. Therefore, I assume that they are the same.

In RH7.3 I had the kernel 2.4.18-7 and could open siag office. When I installed RH9.0 with kernel 2.4.18-9 siag office would not open; don't ask me why and by now I forgot the error message. Since siag office opens in SW9.1 with kernel 2.4.22 I put that kernel into RH9.0 and siag office runs again.

Thanks to your help and patience I am almost ready to fully switch to SW9.1. Sorry for my sometimes not too professional descriptions of facts.

Regards

Signature · 7 lines
Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs