Re: Alsa on Redhat Linux 2.6 Kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the response Bill,

Here are some answers to your questions:

Version of Redhat:
Linux version 2.6.9-34.ELsmp (bhcompile@xxxxxxxxxxxxxxxxxxxxxxxxxxx)
(gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)) #1 SMP Fri Feb 24
16:54:53 EST 2006

Software that I downloaded:

drwxr-x---  27 brookew users    4096 Jul 23 19:20 alsa-driver-1.0.14rc4
-rwxr-x---   1 brookew users 2564644 Jul 23 16:46
alsa-driver-1.0.14rc4.tar.bz2
drwxr-x---  10 brookew users    4096 May  2 01:03 alsa-lib-1.0.14rc4
-rwxr-x---   1 brookew users  784451 Jul 23 16:46
alsa-lib-1.0.14rc4.tar.bz2
drwxr-x---  15 brookew users    4096 May  2 01:05 alsa-utils-1.0.14rc4
-rwxr-x---   1 brookew users 1013801 Jul 23 16:46
alsa-utils-1.0.14rc4.tar.bz2
drwxr-xr-x   2 brookew users   12288 Jun 11 01:54 doc
-rwxr-x---   1 brookew users   68594 Jul 23 16:46
mpg123-alsa-0.59o-1.i386.rpm
-rwxr-x---   1 brookew users   97369 Jul 23 16:46
mpg123-alsa-0.59o-1.src.rpm

Compile error:

make -C /lib/modules/2.6.9-34.ELsmp/source
SUBDIRS=/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4
O=/lib/modules/2.6.9-34.ELsmp/build CPP="gcc -E" CC="gcc" modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-34.EL-smp-i686'
  CC [M]
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.o
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:75: error: syntax error before "snd_pcm_link_rwlock"
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:75: warning: type defaults to `int' in declaration of
`snd_pcm_link_rwlock'
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:75: error: conflicting types for 'snd_pcm_link_rwlock'
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/include/sound/pc
m.h:463: error: previous declaration of 'snd_pcm_link_rwlock' was here
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:75: error: conflicting types for 'snd_pcm_link_rwlock'
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/include/sound/pc
m.h:463: error: previous declaration of 'snd_pcm_link_rwlock' was here
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:75: error: incompatible types in initialization
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:75: error: initializer element is not constant
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:75: warning: data definition has no type or storage class
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c: In function `snd_pcm_action_lock_irq':
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:814: warning: passing arg 1 of `_read_lock_irq' from incompatible
pointer type
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:826: warning: passing arg 1 of `_read_unlock_irq' from incompatible
pointer type
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c: In function `snd_pcm_suspend':
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:1107: warning: passing arg 1 of `_read_lock_irqsave' from
incompatible pointer type
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:1109: warning: passing arg 1 of `_read_unlock_irqrestore' from
incompatible pointer type
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c: In function `snd_pcm_link':
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:1640: warning: passing arg 1 of `_write_lock_irq' from incompatible
pointer type
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:1665: warning: passing arg 1 of `_write_unlock_irq' from incompatible
pointer type
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c: In function `snd_pcm_unlink':
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:1684: warning: passing arg 1 of `_write_lock_irq' from incompatible
pointer type
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:1700: warning: passing arg 1 of `_write_unlock_irq' from incompatible
pointer type
make[4]: ***
[/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_nativ
e.o] Error 1
make[3]: ***
[/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore] Error 2
make[2]: ***
[_module_/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4] Error
2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-34.EL-smp-i686'
make: *** [compile] Error 2


> -----Original Message-----
> From: Bill Unruh [mailto:unruh@xxxxxxxxxxxxxx] 
> Sent: Tuesday, July 24, 2007 12:06 AM
> To: Wallace, Brooke
> Cc: alsa-user@xxxxxxxxxxxxxxxx
> Subject: Re:  Alsa on Redhat Linux 2.6 Kernel
> 
> On Mon, 23 Jul 2007, Wallace, Brooke wrote:
> 
> > Hi,
> >
> > I'm trying to install ALSA on a Redhat Linux 2.6 kernel.
> >
> > I've downloaded the most recent software, ran configure, 
> but it failed
> > to compile out of the box.
> 
> Exactly which software did you download, and from where.
> 
> And what were the problems reported in the compile?
> Remember that alsa is now part of the kernel, and since it is 
> kernel code
> you MUST have the source code for the precise kernel you are running
> installed on your machine. 
> This is the 
> kernel-source*.i386.rpm
> that you must have installed on your system.
> 
> 
> >
> > Most of documentation seems to related to 2.0 and 2.2 kernels. I'm
> > wondering if someone can point me to more up-to-date documentation.
> 
> For what?
> 
> 
> >
> > I've been poking around and found that the apps aplay and 
> arecord are
> > already included as part of the distro I have installed. 
> There is some
> > talk in the docs about including ALSA as part of Linux, so I'm
> > wondering, has that already happened?
> 
> Yes, a long time ago. Of course you have not told us which version of
> redhat you are running.
> 
> 
> >
> > Obviously I'm a beginner with ALSA, and unfortunately audio 
> as well, but
> > I'm tasked with reviewing ALSA for use in our embedded 
> product, so any
> > pointers to getting started would be helpful.
> 
> Recent version of the kernel have alsa included. Now the most recent
> version of alsa may be needed for your particular card, but 
> again you have
> given no info. It is probably that your card will already 
> work out of the
> box.
> 
> 
> >
> > -Brooke
> >
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux