LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-19-2004, 02:36 AM   #1
PVSPS
LQ Newbie
 
Registered: Apr 2004
Location: India
Posts: 3

Rep: Reputation: 0
Thumbs down Sis 7012 . tried a lot need help finally


Hi folks,

I am a newbee to linux.

I have seen this question posted earlier and I tried a lot of things to resolve but it didnt help.

I need help bringing up audio on my linux box. I got a 2.4.20-8 Kernel and I
am trying to get my SIS 7012 Audio working.

Here is what I did -

1. I downloaded the drivers from the CD into my root directory
2. Unzipped them in the root directory
3. I changed the config.in file as per instructions
4. I copied the files as per instructions

*** Troble starts here.
5. when I do make to generate the sis7012 module it goes like this

I have pasted the configure file and the Readme file givin by the vendor.
Can someone help me get my audio up ?

Thanks & cheers
RS

P.S. I checked the modversions.h h file and surprisingly it just has the
below 5 lines.



------------------------------------------------------------------------
This is the error: (only a part of it.)

gcc -D__KERNEL__ -Wstrict-prototypes -pipe -DMODULE -Wall -O2
-fomit-frame-pointer -DMODVERSIONS -DEXPORT_SYMTAB
-include/usr/src/linux-/usr/src/linux-2.4.20-8/include/linux/modversions.h
-I./ -I/usr/src/linux-/usr/src/linux-2.4.20-8/include -ffixed-8 -c -o
src/sndobj.o src/sndobj.c
<command line>:137890743:3008:
/usr/src/linux-/usr/src/linux-2.4.20-8/include/linux/modversions.h: No such
file or directory
In file included from src/sndobj.c:9:
/usr/include/linux/modversions.h:1:2: #error Modules should never use
kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an
appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include
(or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname
-r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the
currently-running kernel.
src/sndobj.c:12:30: linux/ac97_codec.h: No such file or directory
In file included from /usr/include/linux/signal.h:4,
from src/sndobj.c:21:
--------------------------------------------------------------------------





-----------------------------------------------------
This is my config.in file

linux_src_directory = /usr/src/linux-2.4.20-8
linux_module_directory = /lib/modules/2.4.20-8
-----------------------------------------------------


-----------------------------------------------------
SiS 7012 Linux Driver Install Documentation


**Before install this driver, you should make sure that your kernel had
enable "sound card support" !
(the option of "sound" item in building kernel)

This driver is for kernel RedHat kernel 2.4.x. You can install this driver
by useing script "install" or follow steps descributed below:
Note : if there are soundcore.o and ac97_codec.o in your kernel, you can
skip step 3,4,6
(you can use command "insmod soundcore" and "insmod ac97_codec" to
test if there are these two modules)

1> Check that you have kernel-source in /usr/src/x.x.x
2> Change linux_src_directory to correct path in "config.in"
3> Copy soundcore and ac97_codec source to current directory
"make snd_install"
or :
"cp /usr/src/x.x.x/drivers/sound/sound_core.* ./"
"cp /usr/src/x.x.x/drivers/sound/sound_firmware.* ./"
"cp /usr/src/x.x.x/drivers/sound/os.h ./"
"cp /usr/src/x.x.x/drivers/sound/ac97_codec.* ./"
4> Generate soundcore and ac97_codec module
"make soundcore.o"
"make ac97_codec.o"
5> Generate sis7012 driver module
"make"
6> Copy soundcore.o , ac97_codec.o to module directory
"cp soundcore.o /lib/modules/x.x.x/kernel/drivers/sound
"cp ac97_codec.o /lib/modules/x.x.x/kernel/drivers/sound
7> Copy sis7012.o to module directory
"cp sis7012.o /lib/modules/x.x.x/kernel/drivers/sound
8> Modify the file "/etc/modules.conf". Add two lines into it :
alias sound-slot-0 sis7012
9> Reboot your computer and configurate sis7012.
 
Old 04-19-2004, 06:08 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Looks like you need to install the kernel sources.

The RPM is on the second installation CD. It's called kernel-source-2.4.20-8.i386.rpm

Install that, then go through the installation procedure for your SiS drivers again.

Dave
 
Old 04-19-2004, 12:46 PM   #3
texin
LQ Newbie
 
Registered: Apr 2004
Location: Texas, USA
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
Are you using the files from the SiS website? I tried them and couldn't make them either. However, I was able to get my SiS7012 working.

The SiS 7012 can use the Intel8x0 sound driver, and, after browsing the file system, I realized that my default install (for Slackware 9.1) already had the files necessary to produce sound on an Intel8x0 audio chipset.

The Intel8x0 is a very common audio chipset, so most distributions probably install the necessary files by default. To see if you already have the necessary modules on your system, go to your sound modules library directory (usually /lib/modules/2.x.xxxx/kernel/drivers/sound, where 2.x.xxxx is your kernel version) and look for i810_audio.o (or i810_audio.o.gz or something like that). If the sound module library file is present, chances are that your system already has all the files you need to use your SiS7012.

Now, you need to teach your system to load the appropriate module. Here is how I did it:

(Before proceeding, you might want to scan the man pages for alsaconf, alsactl, alsamixer and modules.conf.)

1) run alsaconf -- if it finds your sound card, you're in luck -- skip to step (4)
2) add the following line to /etc/modules.conf:
alias snd-card-0 snd-intel8x0
3) run alsaconf -- it should find the sound card this time
4) run alsamixer -- adjust your volumes to something you can hear (on some systems, by default, the volumes are set to zero) -- hint: To quit alsamixer, type Alt-Q.
5) run alsactl store -- this stores your volume settings, so you don't have to run alsamixer again the next time you boot
6) optional: To get certain features running, you may need to configure an .asoundrc file -- see http://www.alsa-project.org/alsa-doc.../asoundrc.php3 and http://www.alsa-project.org/alsa-doc...odule=intel8x0 for more information.

I hope this helps. Good luck!
 
Old 04-19-2004, 01:18 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
texin - RedHat 9 doesn't include ALSA.
 
Old 04-19-2004, 02:47 PM   #5
texin
LQ Newbie
 
Registered: Apr 2004
Location: Texas, USA
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
OOPS! I should have known better -- I also use RH and Fedora -- I guess that they've never given me any problems with sound. Thanks for the correction, ilikejam.

Anyway, I was curious, so I did some research:

As of last summer, there was apparently a kernel-level issue with the AC97 codec. See this thread:

http://www.redhat.com/archives/sound.../msg00004.html

http://www.redhat.com/archives/sound.../msg00007.html

So, if you're going to recompile the kernel, I recommend that you consider updating or patching your sources to something more recent before you recompile. Assuming RedHat has a mirror in India, it shouldn't take too long to download more recent sources -- just make sure you get a stable version. (For that matter, if you have a good internet connection and a nearby mirror, you might want to consider downloading Fedora Core 1 isos and installing them in place of RH9 -- most (but not all!) RH users seem to like FC1 better than RH9.)

Alternatively, you could install ALSA -- but you might still need to upgrade your kernel to get ALSA to work, so it might not be worth the effort. (go to http://www.alsa-project.org/ if you're interested in this option)

Good luck!
 
Old 04-22-2004, 03:11 AM   #6
PVSPS
LQ Newbie
 
Registered: Apr 2004
Location: India
Posts: 3

Original Poster
Rep: Reputation: 0
I think I have sorted this out. I did hear sound on my linux box after all.

Problem:
SIS 7012 dosen't play a sound even after the correct installation.

Analysis:
I am using an ASUS P4SGX-MX UMYZ series MotherBoard with ADI AD1980 (AC`97 CODEC) SoundMAX 6-Channel CODEC which can be configured as a 2,4 or 6 channel output. I have some low quality stereo speakers aside.

SIS 7012 provides a 5.1 Surround digital output. In XP i have option of choosing between Stereo output and 5.1 Output provided by SoundMAX, which will trigger the use of S/PDIF channels and change the software settings to utilize the regular mic, aux & S/PDIF Coax output as 5.1 channels for sound.

I don't have such vendor supplied software tweeking in Linux. Linux assumes that I am using 5.1 output forcing the use of all the channels. The front channel output is substituted in aux on my mother board and the Mic is substituting as the rear speaker output.

Solution:
I simply reversed the connections behind and Voila. Tout fonctionne.
I ought to get 5.1 speakers now.
--------------------------------------------------------
Trying to figure out this problem I ripped open linux. tortured the kernel, deleted added destroyed files, setting and configurations. I finally ended up buying a DVD of Fedora Core One with Kernel Version 2.4.22-1.2115.nptl. Fedora works like a gizmo. My multimedia is much faster. (Installation is a pain tough)

I thank you all and really appreciate the help.

Cheers all.
 
Old 05-28-2004, 12:03 AM   #7
boguz
LQ Newbie
 
Registered: May 2004
Location: Sundsvall / SWEDEN
Distribution: Slackware 9.1
Posts: 1

Rep: Reputation: 0
Thanks texin!

I've been serarching the internet for almost 2 day now, in hope to
find some information to how to get my sis soundcard to wrk in slack9.1
I find this page by searching google, and i saw what you wrote.
BANG! And my sound was up and running

thanks texin
 
Old 05-28-2004, 01:40 AM   #8
PVSPS
LQ Newbie
 
Registered: Apr 2004
Location: India
Posts: 3

Original Poster
Rep: Reputation: 0
Re: Thanks texin!

Quote:
Originally posted by boguz
I've been serarching the internet for almost 2 day now, in hope to
find some information to how to get my sis soundcard to wrk in slack9.1
I find this page by searching google, and i saw what you wrote.
BANG! And my sound was up and running

thanks texin
You are welcome.
 
  


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
sis 7012 on debian scotty2hott2k Linux - Hardware 1 04-19-2004 12:53 PM
SiS 7012 problem in RH9.0 guest Linux - Hardware 1 09-14-2003 06:50 AM
sis 7012 problems chlee Linux - Hardware 3 08-17-2003 01:32 AM
sis 7012 N|ghtwo|f Linux - Software 2 07-17-2003 02:09 PM
still problems with sis 7012 brecht Linux - Laptop and Netbook 4 07-09-2003 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:03 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