LinuxQuestions.org
Help answer threads with 0 replies.
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 05-04-2003, 09:11 AM   #1
coquie
LQ Newbie
 
Registered: May 2003
Posts: 12

Rep: Reputation: 0
Question SoundCardProblem_NewBe- for Jaroslav Kysela


Hi I am new to all this and dont really have a clue of what to do. I have a VT 8233 AC'97 chipset and have downloaded the files :

file:/root/sound/alsa-driver-0.9.3.tar.bz2
file:/root/sound/alsa-lib-0.9.3.tar.bz2
file:/root/sound/alsa-lib-0.9.3.tar.bz2
file:/root/sound/alsa-lib-0.9.3.tar.bz2

To my root folder as u can see. I have read through all the other sound problems from the other threads and dont really understand what was going on. I also read through the ReadMe files in each downloaded file and now know what commands to use but not sure on where the files must be placed for them to take effect on whatever they must do, the only reason that I have not tried them out in those directories maybe because Im scared of doing the wrong thing. Im also not sure on what this hole process is called am I trying to recompile my kernel or am I just changing settings in the Kernel?

I also downloaded files form www.viaarena.com :

file:/tmp/kde-root/ark.15321/VIA 8233A Linux Audio Driver Installation ver 0.8A

I extracted this file and received a pdf file dated for RedHat 7.3 and passed the idea for using the commands on my RedHat 8 version.

What I would really like to know is what procedures do I have to do to make this work.
If this is on some webpage like in ntfs-sourceforge it would be great.

e.g Extract alsa-lib to /tmp
proceed to do the same with oss, utils and driver
open terminal
cd /tmp
# you can now use the installation commands in README of files.

Thank you for reading this, any help would be great.
Coquie
 
Old 05-04-2003, 09:42 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
The INSTALL and README files usually have all you need to compile the program. Basically extract the file to a convenient folder, do the ./configure; make; make install thing and then it has been installed. If you want, you can remove the compiling directory and the tarball after installing.

# Guides to software and installation
Compiling Software Help File
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
 
Old 05-04-2003, 10:00 AM   #3
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
For VT 8233 you need for example:
./configure --with-oss=yes --with-isapnp=no --with-cards=via82xx
Above is an example only. Run ./configure --help to see all the switches.
 
Old 05-11-2003, 12:43 PM   #4
coquie
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Hi guys, no I have not fallen of the planet just jet. Ive had a hard time getting out here and thank both of you for your response.

Ok I read through the “install” files in all three folders drivers, lib, utils. I first tride installing drivers with the command:

/configure --with-oss=yes --with-isapnp=yes --with-cards=via82xx
/configure --with-oss=yes --with-isapnp=yes –with-cards=via8233
/configure --with-oss=yes –with-isapnp=no

and received this for all three.

./configure: line 41: conf13976.file: No such file or directory
./configure: line 845: confdefs.h: No such file or directory
./configure: line 945: conftest.sh: No such file or directory
./configure: line 946: conftest.sh: No such file or directory
chmod: failed to get attributes of `conftest.sh': No such file or directory
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable cc found in $PATH
./configure: line 23: conftest.log: No such file or directory

Then I went on to lib and just tride:

./configure

I received this response:

checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no

Then I typed:

make install

and got this.

make: *** No rule to make target `install'. Stop.

I did change to root when doing this. Could it be that im using the wrong kernel vertion?
I have 2.4.18-14 with a Athlon XP.
Ok I gauss that Ill be going and reading some more, thanks for the sites.
Ill report on things on things asp.
 
Old 05-11-2003, 12:51 PM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You don't have the developmental packages installed.
Quote:
checking for gcc... no
You will have to install those first. You can't compile unless you install the compiler.

You have a gui tool called gnorpm you can use to install from the CD.

# Redhat links
RedHat Linux Manuals
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
RedHat 8.0 Tips & Tricks

# Redhat 7.3 up configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network

Last edited by fancypiper; 05-11-2003 at 12:59 PM.
 
Old 05-11-2003, 12:56 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you are on redhat, use the rpms. http://rpmfind.net
 
Old 05-15-2003, 04:21 PM   #7
coquie
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Hi guys, thanks for all your support especially for the webpages.

I finally got things underway and installed all the packets using ./configure , make and install

Once this was finished I typed went to my driver folder and typed.

./snddevices

And recived :

Creating /dev/mixer?... done
Creating /dev/sequencer... done
Creating /dev/midi?... done
Creating /dev/dsp?... done
Creating /dev/audio?... done
Creating /dev/sndstat... done
Creating /dev/music... done
Creating /dev/dmmidi?... done
Creating /dev/dmfm?... done
Creating /dev/amixer?... done
Creating /dev/adsp?... done
Creating /dev/amidi?... done
Creating /dev/admmidi?... done
create symbolic link `/dev/mixer' to `/dev/mixer0'
create symbolic link `/dev/midi' to `/dev/midi0'
create symbolic link `/dev/dsp' to `/dev/dsp0'
create symbolic link `/dev/audio' to `/dev/audio0'
create symbolic link `/dev/sequencer2' to `/dev/music'
create symbolic link `/dev/adsp' to `/dev/adsp0'
create symbolic link `/dev/amidi' to `/dev/amidi0'
ALSA dynamic sound device filesystem
create symbolic link `/dev/snd' to `/proc/asound/dev'
ALSA loader devices
Creating /dev/aload?... done
Creating /dev/aloadSEQ... done

Then I tried to probe my soundcard:

modprobe snd-card-via83xx

But I got this

modprobe: Can't locate module snd-card-via83xx


I then typed:

modprobe snd-pcm-oss
modprobe-mixer-oss

Then I tried to see which modules I have with:

lsmod

And received:

Module Size Used by Not tainted
abi-cxenix 8636 0 (unused)
abi-svr4 85292 0 [abi-cxenix]
lcall7 2276 0 [abi-cxenix]
abi-util 1468 0 [lcall7]
snd-pcm-oss 44932 0 (unused)
snd-pcm 84576 0 [snd-pcm-oss]
snd-timer 19592 0 [snd-pcm]
snd-page-alloc 8292 0 [snd-pcm]
snd-mixer-oss 16376 0 [snd-pcm-oss]
snd 44324 0 [snd-pcm-oss snd-pcm snd-timer snd-mixer-oss]
sr_mod 18136 0 (autoclean)
soundcore 6500 0 (autoclean) [snd]
autofs 13348 0 (autoclean) (unused)
via-rhine 15596 1
mii 2156 0 [via-rhine]
iptable_filter 2412 0 (autoclean) (unused)
ip_tables 14840 1 [iptable_filter]
ide-scsi 10512 0
scsi_mod 107176 2 [sr_mod ide-scsi]
ide-cd 33608 0
cdrom 33696 0 [sr_mod ide-cd]
nls_iso8859-1 3516 1 (autoclean)
ntfs 58784 1 (autoclean)
mousedev 5524 1
keybdev 2976 0 (unused)
hid 22244 0 (unused)
input 5888 0 [mousedev keybdev hid]
usb-uhci 26188 0 (unused)
usbcore 77056 1 [hid usb-uhci]
ext3 70400 2
jbd 52212 2 [ext3]

Then I tried to set the sound in amixer which was allocated in the utils folder under amixer with:

[root@localhost amixer]# set Master 50% unmute
[root@localhost amixer]# set PCM 50% unmute

now that Ive done this I still cant probe my soundcard? Have I compiled the drivers properly? I used the command :

./configure –with-oss=yes –with-isapnp=no –with-cards=via82xx

I then tried to obtain a rpm package but there does not seem to be one for this.

Thank you one again!

Last edited by coquie; 05-15-2003 at 04:26 PM.
 
Old 05-16-2003, 01:31 PM   #8
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
Quote:
Originally posted by coquie
Then I tried to probe my soundcard:

modprobe snd-card-via83xx

But I got this

modprobe: Can't locate module snd-card-via83xx
Check /lib/modules/your_kernel_version/sound directory for proper driver name. Mine is snd_via83xx not snd-card-via83xx.
 
Old 05-17-2003, 06:07 AM   #9
coquie
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
ok, we have lift off!!!!! HEHA.

Follow these steps to install alsa.

Step 1:

You need to download the installation package from alsa at:

http://www.alsa-project.org

note - at first I was a little overwhelmed with all the different packages you can get but dont worry, you have to find the latest version, at my time it was 0.9.3.

go to the download page of alsa:

ftp://ftp.alsa-project.org/pub

you will notice a number of different folders, notice drivers, lib and utils. In all three folders you will find the latest version of the package that you will create.

Go to the drivers folder choice the latest version e.g alsa-driver-0.9.3

now go to the lib folder and choice the same version e.g. alsa-lib-0.9.3

now go to the utils folder and choice the same version e.g alsa-utils-0.9.3

once you have download all three you can go to Step 2.

Step 2.

We will now create our installation package. This means that we will unpack the files into folders.

Create a new folder called package in your root directory (note you should do this in your root account)

I did not use the terminal here, all I did is double click on them and unzip them to a folder cold package.

Step 3.

We will now install the packages there are three so I have subdivided this section, I used the installation guide from the soundcard matrix in the documents page from alsa:

http://www.alsa-project.org/alsa-doc/

Choice your appropriate chip set I had to use via8233. Use this guide with mine to help see what I noticed from a newbie point of view.

Guide for Via8233 -
http://www.alsa-project.org/alsa-doc...module=via82xx

Don't worry about the module options this is not necessary. Look at quick installation, we have already unpacked the files so all you have to do now is use your terminal.

A.

First we will install the drivers

You will have to go to the drivers folders that we created through the terminal.

e.g. #cd package/alsa-driver-0.9.3

# ./configure --with-cards=via82xx --with-sequencer=yes

(note this is very important to get your settings correct, I had to do this 4 times becouse I didnt get it right, if you look in the install file from drivers you understand what it means)

I have included these for you- they come from the install file in the 0.9.3 package in drivers folder.

If you have ISA Plug & Play soundcard, use --with-isapnp=yes switch.
If you want sequencer support, use --with-sequencer=yes switch.
If you do not want OSS/Free emulation, use --with-oss=no switch.
If you want turn on debug mode use --with-debug=full switch.
If you want debug soundcard detection try --with-debug=detect switch.
If you have kernel source code in another directory than /usr/src/linux,
use --with-kernel=<kernel_directory>.
Example: ./configure --with-isapnp=yes --with-debug=full

now the terminal should do it own thing for 5 sec. (you should see lines of source)

type:

# make

and then :

# make install
now type:

# ./snddevices

This completes the installation for the driver folder.

B.

Now we will install the lib package.

We will change to the lib folder through the terminal.

Type :
#cd
e.g #cd package/alsa-lib-0.9.3

now we can install.

# ./configure

once again the terminal will do its own thing for a couple of seconds each time.

# make
# make install

This completes the installation for lib.

C

now we are going to install the utils folder.

We will change to the utils folder through the terminal.

Type

# cd
# cd packages/alsa-utils-0.9.3

now we can install

# ./configure
# make
# make install

Thats it for the packages.

Step 4

Now that you have installed we will set the modules for your card.

This is where you will know if you chose the correct settings for you drivers. If you cant set your module for you card then you have done something wrong.

Type:
e.g # modprobe snd-via82xx

I had to use this to set my card it will differ from one card to another note some snd-via82xx card drives maybe snd-card-via82xx. Look in your /lib/modules/2.4.18-14/kernel/sound/pci (keep in mind that it differs from kernel to kernel)

# modprobe snd-pcm-oss
# modprobe snd-mixer-oss
# modprobe snd-seq-oss

This should work fine.

Now you should test to see if the sound works, I used the Volume Control application in the Sound & Video category in the Menu bar. Note that if this gives you an error you have done something wrong. If this works you can set your volume and play a .wav file not mp3.

Step 5

We will now automate this process in startup.

Go to /lib/modules.conf make a backup of this, right click on it and open it with a text editor. Add the flies in your guide that was specified I used:

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-via82xx
# module options should go here

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

note - that you should use you backup if something went wrong and not your old file, replace it with the new one.

Save and close.
Restart and test.
Remember that you should read the guide for your chips from alsa very carefully it contains all the information you will need.

Thats it but I cant listen to my MP3 and I love my music man.

Thanks to fancypiper, dorian33, acid_kewpie and alsa

 
Old 05-17-2003, 09:44 AM   #10
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Download the mp3 plugin for xmmx and you can play mp3s. There is a command line player you can install as well. mp321 IIRC

# Redhat links
RedHat Linux Manuals
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
RedHat 8.0 Tips & Tricks

# Redhat 7.3 down configuration commands
setup leads to several configuration tools

# Redhat 7.3 up configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network
 
Old 05-17-2003, 01:17 PM   #11
coquie
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks For all your help I downloaded it and Im buzzy chilling to my tunes, really sound good after waiting a while, but I cant believe the performance that I get with Linux, very fast.

Just wish others could get their help from here.

Once again THANK YOU!!

Once again THANK YOU!!
 
  


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



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

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