LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-07-2006, 09:36 AM   #1
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Rep: Reputation: 40
sound for a 2.6 kernel


In the Slack 11 release notes, Pat (BDFL) tells us that if we use a 2.6 kernel, that we can use a 2.4 sound driver. Question is, how do I do that.
How do I identify what I need from the
Code:
/lib/modules/2.4.33.3/build/drivers
directory and do I simply copy them to the /lib/modules/2.6.x/build/drivers directory?

TIA
 
Old 10-07-2006, 09:53 AM   #2
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
My understanding is that Pat said to keep the "alsa-driver" package and "kernel-headers" from the 2.4.x kernel. So you just don't remove these packages and install the 2.6.x kernel and all should work.
 
Old 10-07-2006, 10:14 AM   #3
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by nykey
My understanding is that Pat said to keep the "alsa-driver" package and "kernel-headers" from the 2.4.x kernel. So you just don't remove these packages and install the 2.6.x kernel and all should work.
Thanks for the quick response.

So the system will find them even thoughthey are not below the /lib/modules/linux-2.6.x tree? Guess I'm unclear how this works.
 
Old 10-07-2006, 11:00 AM   #4
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
But they will be under that tree, because you have 2 options of getting a 2.6.x kernel.
1. - use the packages provided by Pat ( huge26.s = 2.6.17.13 or test26.s = 2.6.18 ) and ofcourse you'll have to install the 'kernel-modules*.tgz' package from either /extra or /testing directory acordingly to the kernel you've used.
2. - compile your own kernel by downloading the source from kernel.org and selecting the proper module for your sound card when configuring it so when issuing the command 'make modules_install' they will create that tree containing the proper modules.
 
Old 10-07-2006, 11:28 AM   #5
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
I chose to install 2.6.17.13 for Slackware 11.0, and installed the headers, modules from /extra. Sound works just fine.
 
Old 10-07-2006, 06:06 PM   #6
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
Maybe I don't have a driver problem. lsmod shows a lot of sound related modules.

snd-pcm-oss 36736 0
snd-mixer-oss 12376 0 [snd-pcm-oss]
snd-ens1371 11648 1
gameport 1420 0 [snd-ens1371]
snd-rawmidi 12480 0 [snd-ens1371]
snd-seq-device 3812 0 [snd-rawmidi]
snd-ac97-codec 58556 0 [snd-ens1371]
snd-pcm 54344 0 [snd-pcm-oss snd-ens1371 snd-ac97-codec]
snd-timer 13764 0 [snd-pcm]
snd 32772 1 [snd-pcm-oss snd-mixer-oss snd-ens1371 snd-rawmidi snd-seq-device snd-ac97-codec snd-pcm snd-timer]
snd-page-alloc 4712 0 [snd-mixer-oss snd-rawmidi snd-seq-device snd-pcm snd-timer snd]
soundcore 3396 6 [snd]

Maybe i need to make sure I've activated it.

Thanks all
 
Old 10-07-2006, 08:15 PM   #7
LiNuCe
Member
 
Registered: Apr 2004
Location: France
Distribution: Slackware Linux 10.2
Posts: 119

Rep: Reputation: 15
Quote:
Originally Posted by gmartin
In the Slack 11 release notes, Pat (BDFL) tells us that if we use a 2.6 kernel, that we can use a 2.4 sound driver. Question is, how do I do that.
If you use a 2.6.x Linux kernel, you must install the kernel-generic and kernel-modules packages from either testing/packages/linux-2.6.18 or extra/linux-2.6.17.13 depending on which kernel version you wish. ALSA modules for each kernel are included in the kernel-modules package.
 
Old 10-07-2006, 09:55 PM   #8
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by LiNuCe
If you use a 2.6.x Linux kernel, you must install the kernel-generic and kernel-modules packages from either testing/packages/linux-2.6.18 or extra/linux-2.6.17.13 depending on which kernel version you wish. ALSA modules for each kernel are included in the kernel-modules package.
Thanks - I did install the kernel-modules for the 2.6.17.13-smp kernel.
 
Old 10-07-2006, 10:33 PM   #9
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
Sound is working fine. After loading the kernel-modules and turning up the volume - I'm all set.

Thanks, folks
 
Old 10-08-2006, 12:36 AM   #10
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
Quote:
Originally Posted by LiNuCe
If you use a 2.6.x Linux kernel, you must install the kernel-generic and kernel-modules packages from either testing/packages/linux-2.6.18 or extra/linux-2.6.17.13 depending on which kernel version you wish. ALSA modules for each kernel are included in the kernel-modules package.
LiNuCe, you shouldn't guide people at installing the 'kernel-generic*.tgz' package from the /extra or /testing directory against the default 'huge26.s' without letting them know what could happen... that is if you know.
The 'huge26.s' kernel which you install at first from the CD is a complete kernel with lots of built in support (especially fs's) and a few modules (soundcards, NICs, and few others)... on the other hand if someone installs 'kernel-generic*.tgz' package it will have a small kernel with very few built in options (only ext2 and ext3 as fs's) and lots of modules. So if one would have their partitions formated as 'reiserfs' , 'xfs' , 'jfs' ... they will have an unbootable system and have to use initrd image... something that newbies don't understand very well from what I've seen and theards asking 'why, what, who' will appear all over again.
I've said it quite a few times in other threads too, please, if you tell someone to use that package make sure to let him know the whole deal (maybe he will refuse that and keep the safe 'huge26.s') or if you don't know it either, then start reading so you won't misguide someone in the future. Thanks for understanding and I'm sorry if I may sounded rude... it wasn't the intention, I just get ichy when I see that for sooooo long time we have these kernels and issues and people couldn't observe the difference by their own.
 
Old 10-08-2006, 01:33 AM   #11
LiNuCe
Member
 
Registered: Apr 2004
Location: France
Distribution: Slackware Linux 10.2
Posts: 119

Rep: Reputation: 15
Quote:
Originally Posted by nykey
So if one would have their partitions formated as 'reiserfs' , 'xfs' , 'jfs' ... they will have an unbootable system and have to use initrd image... something that newbies don't understand very well from what I've seen and theards asking 'why, what, who' will appear all over again.
There is a README.initrd with each set of 2.6.x kernel packages : it explains why people needs a initrd image. Someone who install 2.6.x kernel packages for the first time MUST read this file : if he doesn't, he gets in trouble and he will learn from it. If he wants a system which works out of the box with minimal, manual configuration, he does not use Slackware, he must obviously uses Ubuntu or Mandriva. If he is bored to read the same questions asked over and over on a forum, he does not read that forum.

Last edited by LiNuCe; 10-08-2006 at 01:43 AM.
 
Old 10-09-2006, 04:20 PM   #12
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by nykey
... on the other hand if someone installs 'kernel-generic*.tgz' package it will have a small kernel with very few built in options (only ext2 and ext3 as fs's) and lots of modules. So if one would have their partitions formated as 'reiserfs' , 'xfs' , 'jfs' ... they will have an unbootable system and have to use initrd image... something that newbies don't understand very well from what I've seen and theards asking 'why, what, who' will appear all over again.
This explains the problem I was having on my slack 11rc5 system. I installed kernel generic (not because of LinCE advice...) but because it was in the directory with the 2.6 kernel modules. I wonder if there needs to be more info in a readme in that directory. I've since reinstalled from scratch with v11 and followed the right path (with everyone's help. Huge26.s is doing well.

Thanks for clearing that up.
 
  


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
Alsa Sound Error: reduced sound to stereo from 5.1 after kernel upgrade vmt1 Linux - Hardware 1 06-03-2006 11:35 AM
2.6.8 Kernel and sound Gryphonsword Linux - Newbie 2 01-16-2006 09:50 AM
Sound kernel module errors with FC4 since kernel 2.6.14 knutdc Linux - Software 2 12-23-2005 07:53 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:52 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