Re: No Sound with Kernel 2.6.7

Re: No Sound with Kernel 2.6.7

am 04.11.2004 11:48:36 von beolach

Hi Peter,

The 2.4 & 2.6 kernels use different, incompatible module formats, so
you can't just copy
the 2.4 modules over to 2.6. Instead you will need to install a 2.6
kernel module for your
soundcard. If your kernel was already configured to build your
soundcards drivers as
modules, all you should need to do is cd /usr/src/linux (or where ever
you 2.6.7 kernel
sources are); make modules && make modules_install. Note that make
modules_install
needs root permissions. Also also note that 2.6 normally uses ALSA
(Advanced Linux
Sound Architecture), while 2.4 used OSS (Open? Sound System). This
means that you
soundcards driver module might have a different name, so you might
need to edit the
module name in /etc/modules.conf or where ever you define modules to
load on startup.
After this you should be able to load your soundcards driver modules &
hear stuff.

HTH,
Conway S. Smith


On Thu, 4 Nov 2004 16:59:34 -0500, Peter wrote:
> Hi,
>
> Slackware10
>
> When I installed the kernel 2.6.7 my sound was lost, the error message claiming it can
> not find module via82cxxx_audio.c. Checking /lib/modules/2.6.7/kernel/drivers there was
> no /sound folder.
>
> I then copied ../2.4.26/../sound into ../2.6.7../drivers/ it did not change it still claimed it
> could not find my sound module after rebooting.
>
> I then switched back to 2.4.26 and sound was back.
>
> Could that be resolved and how?
>
> A side benefit of the whole exercise was that all of a sudden starting kde programs such
> as kppp takes now only half the time than before I tried to switch kernels. It used to take
> an annoying 22 seconds, now it takes only 11. ???????????
>
> Thanks & Regards
>
> --
> Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

No Sound with Kernel 2.6.7

am 04.11.2004 12:00:15 von heisspf

Hi,

Slackware10

When I installed the kernel 2.6.7 my sound was lost, the error message claiming it can not find module via82cxxx_audio.c. Checking /lib/modules/2.6.7/kernel/drivers there was no /sound folder.

I then copied ../2.4.26/../sound into ../2.6.7../drivers/ it did not change it still claimed it could not find my sound module after rebooting.

I then switched back to 2.4.26 and sound was back.

Could that be resolved and how?

A side benefit of the whole exercise was that all of a sudden starting kde programs such as kppp takes now only half the time than before I tried to switch kernels. It used to take an annoying 22 seconds, now it takes only 11. ???????????

Thanks & Regards

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

Re: No Sound with Kernel 2.6.7

am 05.11.2004 06:11:55 von Richard Adams

On Thursday 04 November 2004 22:59, Peter wrote:
> Hi,
>
> Slackware10
>
> When I installed the kernel 2.6.7 my sound was lost, the error message
> claiming it can not find module via82cxxx_audio.c. Checking
> /lib/modules/2.6.7/kernel/drivers there was no /sound folder.

Kernel 2.6 structure is different to 2.4 for modules, sound modules reside in
kernel/sound and not kernel/drivers/sound.

> I then copied ../2.4.26/../sound into ../2.6.7../drivers/ it did not change
> it still claimed it could not find my sound module after rebooting.

Not a good thing to do, 2.6 kernels are "very different" to 2.4.

> I then switched back to 2.4.26 and sound was back.
>
> Could that be resolved and how?

You will need to check your /usr/src/linux/.config file to see what you have
defined for sound.

Go here;
http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt
For good info on compiling 2.6 kernels.

>
> A side benefit of the whole exercise was that all of a sudden starting kde
> programs such as kppp takes now only half the time than before I tried to
> switch kernels. It used to take an annoying 22 seconds, now it takes only
> 11. ???????????

Even 11 seconds sounds way to long, but you did not say what sort of computer
it is, let alone how much memory you have, etc etc etc...

> Thanks & Regards

--
If the Linux community is a bunch of thieves because they
try to imitate windows programs, then the Windows community
is built on organized crime.

Regards Richard
pa3gcu@zeelandnet.nl
http://people.zeelandnet.nl/pa3gcu/

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

Re: No Sound with Kernel 2.6.7

am 08.11.2004 13:11:09 von Adam Luchjenbroers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 5 Nov 2004 07:29, you wrote:
> Hi,
>
> Slackware10
>
> When I installed the kernel 2.6.7 my sound was lost, the error message
> claiming it can not find module via82cxxx_audio.c. Checking
> /lib/modules/2.6.7/kernel/drivers there was no /sound folder.
>
> I then copied ../2.4.26/../sound into ../2.6.7../drivers/ it did not change
> it still claimed it could not find my sound module after rebooting.
>
> I then switched back to 2.4.26 and sound was back.
>
> Could that be resolved and how?
>
> A side benefit of the whole exercise was that all of a sudden starting kde
> programs such as kppp takes now only half the time than before I tried to
> switch kernels. It used to take an annoying 22 seconds, now it takes only
> 11. ???????????
>
> Thanks & Regards


Probably worth running alsamixer just to check it's not as simple as
everything being muted before you look deeper for the cause of your problems.
If not, you'll want to unmute everything after completing the steps to make
it work.

You'll want to check your kernel compile options to make sure you're compiling
your sound drivers (preferably as modules), you'll also find that between
kernel 2.4 and 2.6 there is a change from OSS to ALSA as the primary sound
architecture.

www.alsa-project.org will be able to tell you what you'll need to know.

You'll want to add a line similar to this to your modprobe.conf file.

alias snd-card-0 snd-via82xx
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx
&& /usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-via82xx { /usr/sbin/alsactl store >/dev/null 2>&1
|| : ; }; /sbin/modprobe -r --ignore-remove snd-via82xx

The extra lines will load and save the mixer settings for ALSA, the above has
been taken from my modprobe.conf file.

You also might want to run alsamixer and just check that your sound isn't just
muted. After the above steps you will still need to unmute your sound card
anyhow.


- --
"I'm reminded of the day my daughter came in, looked over my shoulder at some
Perl 4 code, and said, 'What is that, swearing?'" - Larry Wall
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBj2Ji94zI/zB2CYURAiqqAJsELFoxcwqJbUS0dwCwTDVOEBooLQCg mbeW
nUtnaJVLEMq/Ps/nmU2GKD8=
=D++O
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: No Sound with Kernel 2.6.7

am 11.11.2004 15:27:19 von Adam Luchjenbroers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> I did what you have recommended but the sound continues to be elusive with
> kernel 2.6.7. On boot I get the following messages:
>
> Loading ALSA mixer settings: /usr/sbin/alsactl restore
> No state is present for card Dummy

Should go away after the first one, just means it has no settings to restore.
If you keep seeing this, then it's a bigger issue. If you haven't already run
alsamixer do so.

> Loading OSS compatibility modules for ALSA.
> FATAL: Module snd_pcm_oss not found.
> FATAL: Module snd_mixer_oss not found.

What this means is that it failed to load the OSS emulation modules. There are
two sound architectures in use in Linux, 2.4 uses OSS (Open Sound System),
whereas 2.6 uses ALSA (Advanced Linux Sound Architecture) to provide sound.
ALSA includes the ability to emulate OSS so that applications which use it
for sound function correctly. This significant change is also why your old
settings work fine in 2.4 but not in 2.6 (they load the OSS drivers).

If you want to test if ALSA is working ok, try running XMMS and changing the
audio output plugin to ALSA to see if that works. You could also try
playing .wav files with the aplay command.

> In kernel 2.4.26 all the settings are the same in /etc/rc.d as well as for
> modprobe.conf and modules.conf and the sound is no problem.
>
> What would be the next step?

Probably try enabling the following in your kernel (either as modules or right
in the kernel).

OSS Mixer API
OSS PCM API
OSS Sequencer API

They're right under the ALSA settings with make xconfig, and will provide the
OSS emulation you will need for OSS based apps.

- --
"It should be illegal to yell "Y2K" in a crowded economy. :-)" - Larry Wall
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBk3bK94zI/zB2CYURAubgAJ4wxRXdNZA5HYCarUofg4rKVI4DAwCf UCfe
0mRs/wlA6UDmFBbzvn8uoAE=
=jPWf
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: No Sound with Kernel 2.6.7

am 12.11.2004 09:19:34 von heisspf

Thanks!


Peter said:
>> In kernel 2.4.26 all the settings are the same in /etc/rc.d as well as for
>> modprobe.conf and modules.conf and the sound is no problem.
>> What would be the next step?

Adam@Luchjenbroers.com
> Probably try enabling the following in your kernel (either as modules or
> right in the kernel).

> OSS Mixer API OSS PCM API OSS Sequencer API

> They're right under the ALSA settings with make xconfig, and will provide the
> OSS emulation you will need for OSS based apps.

I did all that in the kernel, did make, copied bzImage to vmlinuz, did lilo
and on boot I get the same error and no sound:

> Loading OSS compatibility modules for ALSA.
> FATAL: Module snd_pcm_oss not found.
> FATAL: Module snd_mixer_oss not found.

I will stop by that now playing with 2.6.7 and wait till slackware will come
up with a correct version.

Regards


--
Peter

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