-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi folks -

I am running Development stuff from Fedora, they are gearing up for FC2 and 
have moved over to the 2.6 kernel.  Currently they have a version 2.6.1-1.65 
kernel.

Using this kernel, compiling the Alsa Driver package has some troubles.

First attempting the compile (with intel8x0 and usbaudio selected in configure 
only) gives this:

  CC [M]  /usr/src/alsa-driver-1.0.2/kbuild/../acore/memalloc.o
In file included from /usr/src/alsa-driver-1.0.2/acore/memalloc.inc:13,
                 from /usr/src/alsa-driver-1.0.2/acore/memalloc.c:1:
/usr/src/alsa-driver-1.0.2/include/adriver.h:425: error: conflicting types for
`class_simple_device_add'
include/linux/device.h:255: error: previous declaration of
`class_simple_device_add'
/usr/src/alsa-driver-1.0.2/include/adriver.h:426: error: conflicting types for
`class_simple_device_remove'
include/linux/device.h:256: error: previous declaration of
`class_simple_device_remove'
make[3]: *** [/usr/src/alsa-driver-1.0.2/kbuild/../acore/memalloc.o] Error 1
make[2]: *** [/usr/src/alsa-driver-1.0.2/kbuild/../acore] Error 2
make[1]: *** [/usr/src/alsa-driver-1.0.2/kbuild] Error 2
make[1]: Leaving directory `/lib/modules/2.6.1-1.65/build'
make: *** [compile] Error 2
[EMAIL PROTECTED] alsa-driver-1.0.2]#

Bob Chiondi on the Fedora User ml found a great workaround:

''...1.0.2.  Try changing  KERNEL_VERSION(2, 6, 2) to KERNEL_VERSION(2, 6, 1)
at line 423 in adriver.h.''

This did indeed get the thing compiled.  My snd-intel8x0 module worked great!  
Well done and thanks to Bob.  Maybe you can consider to make this small 
change in the sources?  But when I came to try the snd-usb-audio.ko guy -- 
which compiled fine -- I 

[EMAIL PROTECTED] alsa-driver-1.0.2]# modprobe snd-usb-audio
FATAL: Error inserting snd_usb_audio
(/lib/modules/2.6.1-1.65/kernel/sound/usb/snd-usb-audio.ko): Unknown symbol
in module, or unknown parameter (see dmesg)
[EMAIL PROTECTED] alsa-driver-1.0.2]#

Here is the error in /var/log/messages

Feb  6 14:39:11 fastcat kernel: snd_usb_audio: Unknown symbol
usb_get_device_descriptor

I also posted about this to the Fedora user ml and Dave Jones brought in 
[EMAIL PROTECTED] to discuss if it was right that this should not be exported.

''
 > > usb_get_device_descriptor doesn't seem to get exported in the current
 > > 2.6 tree, and frankly I'm not sure if it should be. Greg ?
 > 
 > No, it shouldn't be, and I did fix up the snd_usb_audio file to reflect
 > this change.  What kernel version is this?  I don't see the problem in
 > 2.6.2.
Ah, original bug reporter was using an older FC2 kernel tree, which was
based on 2.6.2rc.
''

There the thread rested for a few days while I waited to see if there would be 
an update to the kernel in Fedora Development, but there wasn't.  So I went 
into usbaudio.c and commented out the reference to the missing API, since it 
was sitting an a routine snd_usb_extigy_boot_quirk() which I didn't need.  (I 
just commented a couple of lines starting at line 263).

Then I was able to compile and use the snd-usb-audio.ko and it did indeed fix 
the bad behaviours I was having with a Logitech headset.  So this made me 
happy in the end :-)

Greg emailed me asking me if I pointed this out to the Alsa people and I have 
now done so :-)

- -Andy

- -- 
Note: all HTML Email to me is filtered as spam
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAKXw6jKeDCxMJCTIRApzbAJ403bhJh/qjmFIaMozAaoTUsPJa8QCfevHt
WAen8SwRmtaZgFO0aDp7gZ8=
=REZb
-----END PGP SIGNATURE-----


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to