Skip to contentSkip to conversation

Alsa-driver 1.0.6 on a SH3 Big Endian 2.4.26 kernel

Alsa-user Takashi Iwai 1 participant 1 message Aug 23, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

At Sun, 22 Aug 2004 12:25:14 +0900,

Quoted 10 lines · Alain Volmat

Hi all,

I'm trying to get the dummy (just for a start) driver of alsa-driver 1.0.6 working on my SH3 Big Endian architecture. My kernel is a 2.4.26 and I got problem which I think might come from the memalloc.c part.
I don't have any PCI on my machine but alsa-driver still want to use pci_free_consistent and pci_alloc_consistent and I got a unresolved symbol error when trying to load modules:

Quoted 8 lines

modprobe snd-dummy
/lib/modules/2.4.26-i700-av3/misc/snd-page-alloc.o: unresolved symbol pci_free_consistent /lib/modules/2.4.26-i700-av3/misc/snd-page-alloc.o: unresolved symbol pci_alloc_consistent /lib/modules/2.4.26-i700-av3/misc/snd-page-alloc.o: insmod /lib/modules/2.4.26-i700-av3/misc/snd-page-alloc.o failed /lib/modules/2.4.26-i700-av3/misc/snd-page-alloc.o: insmod snd-dummy failed

I tried to check a bit the source code but I've to admit that I don't have an enough good knowledge of ALSA to understand everything here.

[Added alsa-devel to Cc, which is a better place for such a discussion]

In the recent version, pci_alloc_consistent() is used as a generic memory allocator, and this looks apparently like a problem in the case of non-PCI system.

What would be the proper DMA memory allocator functions in the case without CONFIG_PCI on SH?

Takashi

-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285