LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2004, 11:50 PM   #1
DeathPrawn
LQ Newbie
 
Registered: Nov 2004
Posts: 10

Rep: Reputation: 0
Audigy - How to configure?


Okay, it's my first post here and I tried to search beforehand, so here's to hoping I don't get flamed

I've got a clean Debian sarge install. I'm trying to get my Audigy sound card working, but I don't know where to start. I think my biggest problem is that I technically have two sound cards plugged in: a bad integrated one, and the Audigy. My computer was automatically configured to use OSS and the integrated card. From what I've read, I need ALSA to get my Audigy working. How would I go about doing that? Then is it pretty easy to tell ALSA which card to use? There already was some form of ALSA installed (it's an option in the KDE control panel, and there is a /usr/share/alsa folder with a bunch of files, the most useful-looking being alsa.conf), but it didn't want to work just with the KDE Control Panel sound configuration. After this didn't work, I apt-getted alsa-base (and alsa-utils), but I don't know where to START configuring those.

Last edited by DeathPrawn; 11-16-2004 at 01:52 PM.
 
Old 11-16-2004, 02:08 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Welcome to LQ!

You need to disable your onboard soundchip in your
BIOS first. After that you can try running "alsaconf"
and try to setup the Audigy that way. If this doesn't
work, then look up your soundcard on the ALSA site
and follow those instructions. You will also need to d/l
the first three files on ALSA's main page. That's how
I install ALSA, and how I did when I ran Debian.

After installing the modules, run "alsamixer" in a terminal
as a normal user and unmute/turn up your volume.
Then press ESC to exit and login as root and then run
"alsactl store" to save your settings.

Last edited by Bruce Hill; 11-16-2004 at 02:09 PM.
 
Old 11-16-2004, 11:27 PM   #3
DeathPrawn
LQ Newbie
 
Registered: Nov 2004
Posts: 10

Original Poster
Rep: Reputation: 0
I tried two different things.

1. I did like you said and tried to compile ALSA from the official site. I got errors when I tried to make the driver (I installed the library fine, and I could ./configure the driver fine, but it didn't want to make).

2. I reinstalled the ALSA package available via apt. alsaconf doesn't work, it doesn't detect any sound cards.

Thanks so much for your help!
 
Old 11-16-2004, 11:48 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Open a terminal and login as root, then issue
"lspci" without the quote marks, and post the
results. Please use the Code button above the
Post Reply window, or put [_code_] without
the underscores before of your output, and
[_/code_] without the underscores after your
output. This will tell us what soundchip you have
in your box. And you could also post the output
of "lsmod" while you're at it. We won't give up
if you don't.
 
Old 11-17-2004, 11:38 PM   #5
DeathPrawn
LQ Newbie
 
Registered: Nov 2004
Posts: 10

Original Poster
Rep: Reputation: 0
lspci:
Code:
0000:00:00.0 Host bridge: Intel Corp. 82845 845 (Brookdale) Chipset Host Bridge (rev 11)
0000:00:01.0 PCI bridge: Intel Corp. 82845 845 (Brookdale) Chipset AGP Bridge (rev 11)
0000:00:1d.0 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
0000:00:1d.1 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
0000:00:1d.2 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
0000:00:1d.7 USB Controller: Intel Corp. 82801DB/DBM (ICH4/ICH4-M) USB 2.0 EHCI Controller (rev 01)
0000:00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev 81)
0000:00:1f.0 ISA bridge: Intel Corp. 82801DB/DBL (ICH4/ICH4-L) LPC Bridge (rev 01)
0000:00:1f.1 IDE interface: Intel Corp. 82801DB/DBL (ICH4/ICH4-L) UltraATA-100 IDE Controller (rev 01)
0000:00:1f.3 SMBus: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R300 ND [Radeon 9700 Pro]
0000:01:00.1 Display controller: ATI Technologies Inc Radeon R300 [Radeon 9700 Pro] (Secondary)
0000:02:03.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
0000:02:0a.0 Multimedia audio controller: Creative Labs SB Audigy (rev 03)
0000:02:0a.1 Input device controller: Creative Labs SB Audigy MIDI/Game port (rev 03)
0000:02:0a.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port
0000:02:0b.0 Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] (rev 0c)
lsmod:
Code:
Module                  Size  Used by    Not tainted
soundcore               3268   0  (autoclean)
input                   3040   0  (autoclean)
apm                     8364   1  (autoclean)
parport_pc             19432   1  (autoclean)
lp                      5540   0 
parport                21608   1  [parport_pc lp]
af_packet              11048   1  (autoclean)
printer                 6912   0 
emu10k1-gp              1128   0  (unused)
gameport                1388   0  [emu10k1-gp]
ohci1394               21648   0  (unused)
ieee1394              178724   0  [ohci1394]
ehci-hcd               14796   0  (unused)
usb-uhci               19504   0  (unused)
usbcore                52268   1  [printer ehci-hcd usb-uhci]
ide-scsi                8272   0 
scsi_mod               86020   1  [ide-scsi]
e100                   42868   1 
agpgart                39108   0  (unused)
nls_cp437               4284   2  (autoclean)
vfat                    8716   1  (autoclean)
fat                    27576   0  (autoclean) [vfat]
ide-cd                 27040   1 
cdrom                  26212   0  [ide-cd]
rtc                     5768   0  (autoclean)
ext3                   65388   1  (autoclean)
jbd                    34628   1  (autoclean) [ext3]
ide-detect               288   0  (autoclean) (unused)
ide-disk               12416   3  (autoclean)
piix                    7784   1  (autoclean)
ide-core               91800   4  (autoclean) [ide-scsi ide-cd ide-detect ide-disk piix]
unix                   12720 198  (autoclean)

Last edited by DeathPrawn; 11-17-2004 at 11:39 PM.
 
Old 11-18-2004, 12:39 AM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by DeathPrawn
Code:
lspci:
0000:02:03.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)  <- disable this one 
0000:02:0a.0 Multimedia audio controller: Creative Labs SB Audigy (rev 03)  < - use this one 
0000:02:0a.1 Input device controller: Creative Labs SB Audigy MIDI/Game port (rev 03)
0000:02:0a.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port
First problem is you still have that onboard soundchip enabled.
Do you know how to enter and change a setting in your BIOS?
When your computer is booting, press Del to enter the BIOS,
or it may say to enter Setup, and then search for the entry
which says something like chipset configuration. Whatever it says
on your comp, it will have something similar to Onboard Soundchip
and you should change that to Disable. I'm sorry if this sounds rather
vague, but (1) I don't know exactly which motherboard you have,
and (2) all three of my PCs are in China, and I'm in America with the
same laptop that Noah had on the Ark. If you need further help with
finding that, please write down stuff you see and post more info so
that we can guide you.

Good news is that your computer has detected your sound card, so
it's just a matter of getting it configured correctly.

Code:
lsmod:
Module                  Size  Used by    Not tainted
soundcore               3268   0  (autoclean)
Disregarding all the other modules, cause that's all you've got for
sound so far. I don't know how the Debian packages for sound work,
so can't help too much from there.

However, I've successfully compiled many apps from source, so once
we find out the problem you've had so far, we should be able to get
you some sound. These are the Audigy instructions from ALSA. You
will need to get the first three files on their main page ->
alsa-driver-1.0.7rc2.tar.bz2
alsa-lib-1.0.7rc2.tar.bz2
alsa-utils-1.0.7rc2.tar.bz2

You said "it didn't want to make," but we'll need you to record and
post the exact error to determine the problem. And you should install
those three files exactly in order, and exactly as stated in the instructions
from ALSA. After you install them, the last step being "modprobe"
then you should issue "alsaconf" as a normal user to unmute the
channels and turn up the volume, then issue "alsactl store" as root
to save your settings.

After you've done all that and issue "lsmod" you should see the modules
that you inserted with the "modprobe" command.

I think you should either (a) remove the packages you got with apt
and then compile from source, or (b) remove the source code and
then properly apt-get the packages and install them. However, if you
apt-get them, you'll need different instructions which I can't provide.

Hope this gets you further down the road. Some things may be more
clear now. If not, there's a flaw in my instructions.
 
Old 11-18-2004, 11:48 PM   #7
DeathPrawn
LQ Newbie
 
Registered: Nov 2004
Posts: 10

Original Poster
Rep: Reputation: 0
For starters, I disabled the onboard sound card.

I thought I followed and re-followed the instructions exactly from Alsa's site (after removing the Debian package), but here's the whole output of "make" I'm getting.

Code:
leela:/home/deathprawn/install/alsa-driver-1.0.7# make
make[1]: Entering directory `/home/deathprawn/install/alsa-driver-1.0.7/acore'
gcc -D__KERNEL__ -DMODULE=1 -I/home/deathprawn/install/alsa-driver-1.0.7/include  -I/usr/src/linux/include -O2  -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include   -DEXPORT_SYMTAB -c memalloc.c
In file included from memalloc.c:1:
memalloc.inc:1:26: linux/config.h: No such file or directory
memalloc.inc:2:27: linux/version.h: No such file or directory
memalloc.inc:4:40: missing binary operator before token "("
memalloc.inc:12:23: linux/pci.h: No such file or directory
In file included from memalloc.inc:14,
                 from memalloc.c:1:
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:25:27: linux/version.h: No such file or directory
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:27:40: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:30:41: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:35:43: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:39:63: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:51:26: linux/module.h: No such file or directory
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:60:40: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:70:40: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:185:24: linux/wait.h: No such file or directory
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:187:41: missing binary operator before token "("
In file included from memalloc.inc:14,
                 from memalloc.c:1:
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:231: error: parse error before "snd_compat_strlcpy"
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:231: error: parse error before "size_t"
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:231: warning: type defaults to `int' in declaration of `snd_compat_strlcpy'
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:231: warning: function declaration isn't a prototype
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:231: warning: data definition has no type or storage class
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:233: error: parse error before "snd_compat_strlcat"
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:233: error: parse error before "size_t"
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:233: warning: type defaults to `int' in declaration of `snd_compat_strlcat'
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:233: warning: function declaration isn't a prototype
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:233: warning: data definition has no type or storage class
In file included from memalloc.inc:14,
                 from memalloc.c:1:
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:239: error: parse error before "size_t"
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:239: warning: function declaration isn't a prototype
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:240: error: parse error before "size_t"
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:240: warning: function declaration isn't a prototype
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:258:62: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:270:40: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:306:40: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:431:41: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:450:40: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:474:40: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:484:40: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:499:41: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:509:41: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:524:40: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:531:40: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:539:40: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:543:40: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:550:40: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:562:42: missing binary operator before token "("
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:589: error: parse error before "n"
/home/deathprawn/install/alsa-driver-1.0.7/include/adriver.h:589: warning: function declaration isn't a prototype
In file included from memalloc.c:1:
memalloc.inc:16:40: missing binary operator before token "("
memalloc.inc:31:40: missing binary operator before token "("
memalloc.c:25:26: linux/config.h: No such file or directory
memalloc.c:26:26: linux/module.h: No such file or directory
memalloc.c:27:27: linux/proc_fs.h: No such file or directory
memalloc.c:28:24: linux/init.h: No such file or directory
memalloc.c:29:23: linux/pci.h: No such file or directory
memalloc.c:30:24: linux/slab.h: No such file or directory
memalloc.c:31:22: linux/mm.h: No such file or directory
memalloc.c:34:27: asm/semaphore.h: No such file or directory
In file included from memalloc.c:35:
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:60: error: parse error before "dma_addr_t"
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:60: warning: no semicolon at end of struct or union
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:61: warning: type defaults to `int' in declaration of `bytes'
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:61: warning: data definition has no type or storage class
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:63: error: parse error before '}' token
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:70: error: parse error before "dma_addr_t"
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:70: warning: no semicolon at end of struct or union
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:85: error: parse error before "size"
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:86: warning: function declaration isn't a prototype
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h: In function `snd_sgbuf_aligned_pages':
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:87: error: `size' undeclared (first use in this function)
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:87: error: (Each undeclared identifier is reported only once
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:87: error: for each function it appears in.)
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:87: error: `PAGE_SIZE' undeclared (first use in this function)
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:87: error: `PAGE_SHIFT' undeclared (first use in this function)
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h: At top level:
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:93: error: parse error before "snd_sgbuf_get_addr"
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:93: error: parse error before "size_t"
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:94: warning: return type defaults to `int'
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:94: warning: function declaration isn't a prototype
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h: In function `snd_sgbuf_get_addr':
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:95: error: `sgbuf' undeclared (first use in this function)
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:95: error: `offset' undeclared (first use in this function)
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:95: error: `PAGE_SHIFT' undeclared (first use in this function)
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:95: error: `PAGE_SIZE' undeclared (first use in this function)
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h: At top level:
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:100: error: parse error before "size_t"
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:101: warning: function declaration isn't a prototype
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:102: error: parse error before "size_t"
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:103: warning: function declaration isn't a prototype
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:110: error: parse error before "snd_dma_get_reserved_buf"
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:110: warning: type defaults to `int' in declaration of `snd_dma_get_reserved_buf'
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:110: warning: data definition has no type or storage class
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:114: error: parse error before "size"
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:114: warning: function declaration isn't a prototype
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:115: error: parse error before "size_t"
/home/deathprawn/install/alsa-driver-1.0.7/include/sound/memalloc.h:115: warning: function declaration isn't a prototype
memalloc.c:41: error: parse error before string constant
memalloc.c:41: warning: type defaults to `int' in declaration of `MODULE_AUTHOR'
memalloc.c:41: warning: function declaration isn't a prototype
memalloc.c:41: warning: data definition has no type or storage class
memalloc.c:42: error: parse error before string constant
memalloc.c:42: warning: type defaults to `int' in declaration of `MODULE_DESCRIPTION'
memalloc.c:42: warning: function declaration isn't a prototype
memalloc.c:42: warning: data definition has no type or storage class
memalloc.c:43: error: parse error before string constant
memalloc.c:43: warning: type defaults to `int' in declaration of `MODULE_LICENSE'
memalloc.c:43: warning: function declaration isn't a prototype
memalloc.c:43: warning: data definition has no type or storage class
memalloc.c:61: error: parse error before "size_t"
memalloc.c:62: warning: function declaration isn't a prototype
memalloc.c:68: warning: type defaults to `int' in declaration of `DECLARE_MUTEX'
memalloc.c:68: warning: parameter names (without types) in function declaration
memalloc.c:69: warning: type defaults to `int' in declaration of `LIST_HEAD'
memalloc.c:69: warning: parameter names (without types) in function declaration
memalloc.c:73: error: field `buffer' has incomplete type
memalloc.c:75: error: field `list' has incomplete type
memalloc.c:97:41: missing binary operator before token "("
memalloc.c:131:41: missing binary operator before token "("
memalloc.c: In function `mark_pages':
memalloc.c:240: error: invalid use of undefined type `struct page'
memalloc.c:242: warning: implicit declaration of function `SetPageReserved'
memalloc.c:242: error: increment of pointer to unknown structure
memalloc.c:242: error: arithmetic on pointer to an incomplete type
memalloc.c: In function `unmark_pages':
memalloc.c:247: error: invalid use of undefined type `struct page'
memalloc.c:249: warning: implicit declaration of function `ClearPageReserved'
memalloc.c:249: error: increment of pointer to unknown structure
memalloc.c:249: error: arithmetic on pointer to an incomplete type
memalloc.c: At top level:
memalloc.c:261: error: parse error before "size"
memalloc.c:262: warning: function declaration isn't a prototype
memalloc.c: In function `snd_malloc_pages':
memalloc.c:268: warning: implicit declaration of function `get_order'
memalloc.c:268: error: `size' undeclared (first use in this function)
memalloc.c:269: warning: implicit declaration of function `__get_free_pages'
memalloc.c:269: error: `gfp_flags' undeclared (first use in this function)
memalloc.c:269: error: `NULL' undeclared (first use in this function)
memalloc.c:270: warning: implicit declaration of function `virt_to_page'
memalloc.c:270: warning: passing arg 1 of `mark_pages' makes pointer from integer without a cast
memalloc.c: At top level:
memalloc.c:283: error: parse error before "size_t"
memalloc.c:284: warning: function declaration isn't a prototype
memalloc.c: In function `snd_free_pages':
memalloc.c:287: error: `ptr' undeclared (first use in this function)
memalloc.c:287: error: `NULL' undeclared (first use in this function)
memalloc.c:289: error: `size' undeclared (first use in this function)
memalloc.c:291: warning: passing arg 1 of `unmark_pages' makes pointer from integer without a cast
memalloc.c:292: warning: implicit declaration of function `free_pages'
memalloc.c: At top level:
memalloc.c:302: error: parse error before "size_t"
memalloc.c:303: warning: function declaration isn't a prototype
memalloc.c: In function `snd_malloc_dev_pages':
memalloc.c:310: error: `size' undeclared (first use in this function)
memalloc.c:312: error: `GFP_KERNEL' undeclared (first use in this function)
memalloc.c:313: error: `__GFP_NORETRY' undeclared (first use in this function)
memalloc.c:313: error: `__GFP_NOWARN' undeclared (first use in this function)
memalloc.c:314: warning: implicit declaration of function `pci_alloc_consistent'
memalloc.c:314: error: `dev' undeclared (first use in this function)
memalloc.c:314: error: `PAGE_SIZE' undeclared (first use in this function)
memalloc.c:314: error: `dma' undeclared (first use in this function)
memalloc.c:314: warning: assignment makes pointer from integer without a cast
memalloc.c:315: error: `NULL' undeclared (first use in this function)
memalloc.c:317: warning: passing arg 1 of `mark_pages' makes pointer from integer without a cast
memalloc.c: At top level:
memalloc.c:326: error: parse error before "size_t"
memalloc.c:328: warning: function declaration isn't a prototype
memalloc.c: In function `snd_free_dev_pages':
memalloc.c:331: error: `ptr' undeclared (first use in this function)
memalloc.c:331: error: `NULL' undeclared (first use in this function)
memalloc.c:333: error: `size' undeclared (first use in this function)
memalloc.c:336: warning: passing arg 1 of `unmark_pages' makes pointer from integer without a cast
memalloc.c:338: warning: implicit declaration of function `pci_free_consistent'
memalloc.c:338: error: `dev' undeclared (first use in this function)
memalloc.c:338: error: `PAGE_SIZE' undeclared (first use in this function)
memalloc.c:338: error: `dma' undeclared (first use in this function)
memalloc.c: At top level:
memalloc.c:394: error: parse error before "size_t"
memalloc.c:396: warning: function declaration isn't a prototype
memalloc.c: In function `snd_dma_alloc_pages':
memalloc.c:400: error: `dmab' undeclared (first use in this function)
memalloc.c:400: error: `type' undeclared (first use in this function)
memalloc.c:401: error: `device' undeclared (first use in this function)
memalloc.c:405: error: `size' undeclared (first use in this function)
memalloc.c:417: error: `NULL' undeclared (first use in this function)
memalloc.c:420: warning: implicit declaration of function `printk'
memalloc.c:420: error: `KERN_ERR' undeclared (first use in this function)
memalloc.c:420: error: parse error before string constant
memalloc.c:423: error: `ENXIO' undeclared (first use in this function)
memalloc.c:426: error: `ENOMEM' undeclared (first use in this function)
memalloc.c: At top level:
memalloc.c:446: error: parse error before "size_t"
memalloc.c:448: warning: function declaration isn't a prototype
memalloc.c: In function `snd_dma_alloc_pages_fallback':
memalloc.c:454: error: `type' undeclared (first use in this function)
memalloc.c:454: error: `device' undeclared (first use in this function)
memalloc.c:454: error: `size' undeclared (first use in this function)
memalloc.c:454: error: `dmab' undeclared (first use in this function)
memalloc.c:455: error: `ENOMEM' undeclared (first use in this function)
memalloc.c:458: error: `PAGE_SIZE' undeclared (first use in this function)
memalloc.c: In function `snd_dma_free_pages':
memalloc.c:475: error: dereferencing pointer to incomplete type
memalloc.c:477: error: dereferencing pointer to incomplete type
memalloc.c:477: error: dereferencing pointer to incomplete type
memalloc.c:485: error: dereferencing pointer to incomplete type
memalloc.c:485: error: dereferencing pointer to incomplete type
memalloc.c:485: error: dereferencing pointer to incomplete type
memalloc.c:485: error: dereferencing pointer to incomplete type
memalloc.c:491: error: `KERN_ERR' undeclared (first use in this function)
memalloc.c:491: error: parse error before string constant
memalloc.c: At top level:
memalloc.c:506: error: parse error before "snd_dma_get_reserved_buf"
memalloc.c:507: warning: return type defaults to `int'
memalloc.c: In function `snd_dma_get_reserved_buf':
memalloc.c:513: warning: implicit declaration of function `down'
memalloc.c:513: error: `list_mutex' undeclared (first use in this function)
memalloc.c:514: warning: implicit declaration of function `list_for_each'
memalloc.c:514: error: `mem_list_head' undeclared (first use in this function)
memalloc.c:514: error: parse error before '{' token
memalloc.c:517: warning: implicit declaration of function `memcmp'
memalloc.c:517: error: dereferencing pointer to incomplete type
memalloc.c:517: error: dereferencing pointer to incomplete type
memalloc.c:518: warning: implicit declaration of function `list_del'
memalloc.c:519: error: dereferencing pointer to incomplete type
memalloc.c:520: warning: implicit declaration of function `kfree'
memalloc.c:521: warning: implicit declaration of function `up'
memalloc.c:522: error: dereferencing pointer to incomplete type
memalloc.c: At top level:
memalloc.c:525: error: parse error before '&' token
memalloc.c:525: warning: type defaults to `int' in declaration of `up'
memalloc.c:525: warning: function declaration isn't a prototype
memalloc.c:525: warning: data definition has no type or storage class
memalloc.c: In function `snd_dma_reserve_buf':
memalloc.c:543: warning: implicit declaration of function `kmalloc'
memalloc.c:543: error: `GFP_KERNEL' undeclared (first use in this function)
memalloc.c:543: warning: assignment makes pointer from integer without a cast
memalloc.c:545: error: `ENOMEM' undeclared (first use in this function)
memalloc.c:546: error: `list_mutex' undeclared (first use in this function)
memalloc.c:547: error: dereferencing pointer to incomplete type
memalloc.c:549: warning: implicit declaration of function `list_add_tail'
memalloc.c:549: error: `mem_list_head' undeclared (first use in this function)
memalloc.c: In function `free_all_reserved_pages':
memalloc.c:562: error: `list_mutex' undeclared (first use in this function)
memalloc.c:563: warning: implicit declaration of function `list_empty'
memalloc.c:563: error: `mem_list_head' undeclared (first use in this function)
memalloc.c:565: warning: implicit declaration of function `list_entry'
memalloc.c:565: error: parse error before "struct"
memalloc.c: At top level:
memalloc.c:693: error: parse error before "snd_mem_init"
memalloc.c:694: warning: return type defaults to `int'
memalloc.c:702: error: parse error before "snd_mem_exit"
memalloc.c:703: warning: return type defaults to `int'
memalloc.c: In function `snd_mem_exit':
memalloc.c:704: warning: implicit declaration of function `remove_proc_entry'
memalloc.c:704: error: `NULL' undeclared (first use in this function)
memalloc.c:707: error: `KERN_ERR' undeclared (first use in this function)
memalloc.c:707: error: parse error before string constant
memalloc.c:707: warning: left-hand operand of comma expression has no effect
memalloc.c:707: error: parse error before ')' token
memalloc.c: At top level:
memalloc.c:712: error: parse error before "module_exit"
memalloc.c:718: error: parse error before "EXPORT_SYMBOL"
memalloc.c:718: warning: type defaults to `int' in declaration of `EXPORT_SYMBOL'
memalloc.c:718: warning: parameter names (without types) in function declaration
memalloc.c:718: warning: data definition has no type or storage class
memalloc.c:719: warning: type defaults to `int' in declaration of `EXPORT_SYMBOL'
memalloc.c:719: warning: parameter names (without types) in function declaration
memalloc.c:719: warning: data definition has no type or storage class
memalloc.c:720: warning: type defaults to `int' in declaration of `EXPORT_SYMBOL'
memalloc.c:720: warning: parameter names (without types) in function declaration
memalloc.c:720: warning: data definition has no type or storage class
memalloc.c:722: warning: type defaults to `int' in declaration of `EXPORT_SYMBOL'
memalloc.c:722: warning: parameter names (without types) in function declaration
memalloc.c:722: warning: data definition has no type or storage class
memalloc.c:723: warning: type defaults to `int' in declaration of `EXPORT_SYMBOL'
memalloc.c:723: warning: parameter names (without types) in function declaration
memalloc.c:723: warning: data definition has no type or storage class
memalloc.c:725: warning: type defaults to `int' in declaration of `EXPORT_SYMBOL'
memalloc.c:725: warning: parameter names (without types) in function declaration
memalloc.c:725: warning: data definition has no type or storage class
memalloc.c:726: warning: type defaults to `int' in declaration of `EXPORT_SYMBOL'
memalloc.c:726: warning: parameter names (without types) in function declaration
memalloc.c:726: warning: data definition has no type or storage class
In file included from memalloc.c:728:
memalloc.inc1:2:40: missing binary operator before token "("
In file included from memalloc.c:728:
memalloc.inc1:31: warning: type defaults to `int' in declaration of `EXPORT_SYMBOL'
memalloc.inc1:31: warning: parameter names (without types) in function declaration
memalloc.inc1:31: warning: data definition has no type or storage class
memalloc.inc1:34: warning: type defaults to `int' in declaration of `EXPORT_SYMBOL'
memalloc.inc1:34: warning: parameter names (without types) in function declaration
memalloc.inc1:34: warning: data definition has no type or storage class
memalloc.inc1:35: warning: type defaults to `int' in declaration of `EXPORT_SYMBOL'
memalloc.inc1:35: warning: parameter names (without types) in function declaration
memalloc.inc1:35: warning: data definition has no type or storage class
memalloc.inc1:39: warning: type defaults to `int' in declaration of `EXPORT_SYMBOL'
memalloc.inc1:39: warning: parameter names (without types) in function declaration
memalloc.inc1:39: warning: data definition has no type or storage class
memalloc.c:68: warning: `DECLARE_MUTEX' declared `static' but never defined
memalloc.c:69: warning: `LIST_HEAD' declared `static' but never defined
make[1]: *** [memalloc.o] Error 1
make[1]: Leaving directory `/home/deathprawn/install/alsa-driver-1.0.7/acore'
make: *** [compile] Error 1

Last edited by DeathPrawn; 11-18-2004 at 11:49 PM.
 
Old 11-25-2004, 04:17 PM   #8
otchie1
Registered User
 
Registered: Apr 2004
Posts: 560

Rep: Reputation: 30
You need to install your linux kernel source files B4 you tackle building anything from source.

Have a shufty on your installation CDs for the kernel source files -- use whatever package utilty Debian issues to do the work; on Slack it's pkgtool but there will be something similar in Debian.

After that go through the ALSA sequence again making sure that the 'make install' and 'modprobe' bits are done as root.
 
  


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
Configure dhcpd (Configure DHCP Server) hanserver2004 LinuxQuestions.org Member Success Stories 3 10-23-2006 06:39 AM
Configure dhcpd (Configure DHCP Server) hanserver2004 General 1 08-16-2004 01:39 PM
How to use GNU autoconf to generate a new configure from configure.in ?? vanhelsing Programming 5 08-05-2004 10:02 AM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM
How to configure line-in with an Audigy 2 Diewi Linux - Newbie 7 10-03-2003 06:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:52 PM.

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