Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nforce-audio for 2.6 kernel?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
suso
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2004
Posts: 137
Location: Bloomington, IN

PostPosted: Fri Nov 12, 2004 2:50 pm    Post subject: nforce-audio for 2.6 kernel? Reply with quote

I'm using the 2.6 kernel and when I emerge nforce-audio it installs it for the 2.4.27 kernel, which I used to have. Is there something I'm missing to do to install it for 2.6?
_________________
Use saferdomainsearch.com to safely search for domain availability.
Back to top
View user's profile Send private message
suso
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2004
Posts: 137
Location: Bloomington, IN

PostPosted: Fri Nov 12, 2004 2:57 pm    Post subject: Reply with quote

Well, I just saw that my linux symlink in /usr/src was pointing to the 2.4.27 source tree, I fixed that to point to the 2.6.7-gentoo-r11 tree, but when I try to reemerge it, it fails with:

Code:

Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/nforce-audio-1.0.0261 to /
>>> md5 src_uri ;-) NVIDIA_nforce-1.0-0261.tar.gz
>>> Unpacking source...
>>> Unpacking NVIDIA_nforce-1.0-0261.tar.gz to /var/tmp/portage/nforce-audio-1.0                                                                           .0261/work
>>> Source unpacked.
make nvaudio.o
make[1]: Entering directory `/var/tmp/portage/nforce-audio-1.0.0261/work/nforce/                                                                           nvaudio'
gcc -D__KERNEL__  -I/usr/src/linux/include -Wall -Wstrict-prototypes -O -fno-str                                                                           ict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODU                                                                           LE -DREMAP_NEW    -c -o nvhw.o nvhw.c
In file included from /usr/src/linux/include/asm/smp.h:18,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from nvhw.c:12:
/usr/src/linux/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directo                                                                           ry
In file included from /usr/src/linux/include/asm/smp.h:18,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from nvhw.c:12:
/usr/src/linux/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (n                                                                           ot in a function)
/usr/src/linux/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (n                                                                           ot in a function)
/usr/src/linux/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (                                                                           not in a function)
/usr/src/linux/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (                                                                           not in a function)
/usr/src/linux/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not                                                                            in a function)
/usr/src/linux/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (                                                                           not in a function)
/usr/src/linux/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_                                                                           to_type'
/usr/src/linux/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id                                                                           _to_type'
/usr/src/linux/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here                                                                            (not in a function)
/usr/src/linux/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (                                                                           not in a function)
/usr/src/linux/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_                                                                           to_pci_bus'
/usr/src/linux/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_i                                                                           d_to_pci_bus'
/usr/src/linux/include/asm/mpspec.h:43: error: `MAX_APICS' undeclared here (not                                                                            in a function)
In file included from /usr/src/linux/include/asm/smp.h:20,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from nvhw.c:12:
/usr/src/linux/include/asm/io_apic.h:160: error: `MAX_IRQ_SOURCES' undeclared he                                                                           re (not in a function)
/usr/src/linux/include/asm/io_apic.h:160: error: conflicting types for `mp_irqs'
/usr/src/linux/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from nvhw.c:12:
/usr/src/linux/include/asm/smp.h:71:26: mach_apicdef.h: No such file or director                                                                           y
In file included from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from nvhw.c:12:
/usr/src/linux/include/asm/smp.h: In function `hard_smp_processor_id':
/usr/src/linux/include/asm/smp.h:75: warning: implicit declaration of function `                                                                           GET_APIC_ID'
In file included from /usr/src/linux/include/linux/irq.h:20,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from nvhw.h:31,
                 from nvhw.c:16:
/usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/src/linux/include/asm/hardirq.h:6,
                 from nvhw.h:31,
                 from nvhw.c:16:
/usr/src/linux/include/linux/irq.h: At top level:
/usr/src/linux/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in                                                                            a function)
In file included from /usr/src/linux/include/linux/irq.h:72,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from nvhw.h:31,
                 from nvhw.c:16:
/usr/src/linux/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here                                                                            (not in a function)
/usr/src/linux/include/asm/hw_irq.h:32: error: `NR_IRQS' undeclared here (not in                                                                            a function)
make[1]: *** [nvhw.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/nforce-audio-1.0.0261/work/nforce/n                                                                           vaudio'
make: *** [all] Error 2

!!! ERROR: media-sound/nforce-audio-1.0.0261 failed.
!!! Function src_compile, Line 27, Exitcode 2
!!! (no error message)

_________________
Use saferdomainsearch.com to safely search for domain availability.
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Fri Nov 12, 2004 3:02 pm    Post subject: Reply with quote

Use kernel support for it. You do not have to emerge that package.

[edit]
In your 2.6.x kernel, go to

Device Drivers > Sound > Advanced Linux Sound Architecture > PCI Devices

and activate this.
Code:
<M> Intel i8x0/MX440, SiS 7012; Ali 5455; NForce Audio; AMD768/8111

[/edit]
Back to top
View user's profile Send private message
suso
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2004
Posts: 137
Location: Bloomington, IN

PostPosted: Fri Nov 12, 2004 3:10 pm    Post subject: Reply with quote

Ok, I loaded the module for snd_intel8x0. But its only working through oss. And I had to change oss to use the /dev/sound/ directory in XMMS. Can this module be used with ALSA?

I've also tried starting a few games that use sound. Torcs seems to detect the sound ok but Neverball, supertux do not.
_________________
Use saferdomainsearch.com to safely search for domain availability.
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Fri Nov 12, 2004 3:30 pm    Post subject: Reply with quote

suso wrote:
Can this module be used with ALSA?


This module is ALSA. You also have to enable that, perhaps it works better then.

Code:
<*> Advanced Linux Sound Architecture
<*> Sequencer support
< >   Sequencer dummy client
<*> OSS Mixer API
<*> OSS PCM (digital audio) API


And please also test the other possible module. Perhaps you remember that there are two nforce audio module possible.

Code:
< > Intel i8x0/MX440, SiS 7012; Ali 5455; NForce Audio; AMD768/8111
< > Intel i8x0/MX440; SiS 7013; NForce; AMD768/8111 modems (EXPERIMENTAL)
Back to top
View user's profile Send private message
suso
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2004
Posts: 137
Location: Bloomington, IN

PostPosted: Fri Nov 12, 2004 3:50 pm    Post subject: Reply with quote

I have the ALSA and OSS API stuff setup exactly as you showed. I tried using the experimental "Intel i8x0/MX440; SiS 7013; NForce; AMD768/8111 modems", but that didn't work at all. I'm wonder if its a problem with the /dev files:

Code:

lata dev # ls -la sound/
total 24
drwxr-xr-x    2 root     root         4096 Oct  3 15:27 .
drwxr-xr-x    7 root     root        20480 Nov 12 10:43 ..
crw-------    1 suso     audio     14,   4 Oct  3 15:27 audio
crw-------    1 suso     audio     14,   0 Oct  3 15:27 mixer
crw-------    1 suso     audio     14,   6 Oct  3 15:27 sndstat
lata dev # ls -la audio mixer sndstat
crw-------    1 suso     audio     14,   4 Apr 12  2004 audio
crw-------    1 suso     audio     14,   0 Apr 12  2004 mixer
crw-------    1 suso     audio     14,   6 Apr 12  2004 sndstat
lata dev # cat sndstat
cat: sndstat: No such device
lata dev # cat sound/sndstat
cat: sound/sndstat: No such device
lata dev #



Is that right? I thought that if you cat the sndstat devices they should tell you what sound card is enabled.
_________________
Use saferdomainsearch.com to safely search for domain availability.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum