2002-04-16 15:38:07

by Downing, Thomas

[permalink] [raw]
Subject: Compiling ALSA with 2.5.7

If this is off-topic, my apologies.

I am unable to build ALSA for 2.5.7 on i386. The problem is that
the ALSA code uses a function virt_to_bus( ). This is #defined in
asm/io.h as virt_to_bus_not_defined_use_pci_map( ). So there is
an unresolved external.

The correct replacement of virt_to_bus( ) to pci_map_*( ) is not
obvious to a newbie from a look at pci.h.

Am I missing something? I think I must be. So , is there
a kernel config option that needs to be set/unset, or is there
a patch I should get?

BTW I tried building 2.5.8, but that failed spectacularly in other
areas not related to ALSA... Hmmmm, I've never had kernel build
problems before, I must be regressing!

thanks
td


2002-04-16 15:44:58

by Alan

[permalink] [raw]
Subject: Re: Compiling ALSA with 2.5.7

> The correct replacement of virt_to_bus( ) to pci_map_*( ) is not
> obvious to a newbie from a look at pci.h.

Have a look at the DMA-Mapping.txt documentation file. Its not a trivial
replacement but its maybe one to have a go at.

Alan

2002-04-16 16:03:11

by Takashi Iwai

[permalink] [raw]
Subject: Re: Compiling ALSA with 2.5.7

At Tue, 16 Apr 2002 11:35:17 -0400,
Downing, Thomas <[email protected]> wrote:
>
> If this is off-topic, my apologies.
>
> I am unable to build ALSA for 2.5.7 on i386. The problem is that
> the ALSA code uses a function virt_to_bus( ). This is #defined in
> asm/io.h as virt_to_bus_not_defined_use_pci_map( ). So there is
> an unresolved external.

is include/asm correctly symlinked to asm-i386?

all ALSA drivers (except for rme9652-mem and ppc ones) don't use
virt_to_bus() any more.


Takashi