Skip to contentSkip to conversation

alsa-driver-1.0.0pre3 with linux-2.2.25: pci_name?

DISCUSSION Ted 2 participants 2 messages Nov 26, 2003 – Nov 27, 2003

lore
Share & tools
lore

Ted

author
#0 lore raw

Hello,

Takashi Iwai <[email protected]> wrote on Tue, 25 Nov 2003:

Quoted 1 line

right now the ALSA 1.0.0pre3 packages are released.

[...]

Quoted 2 lines

The 2.2 kernel is still not tested well. If you can test it, please let us know.

alsa-driver-1.0.0pre3/acore/pci_compat_22.c:line 371, refers to

char *pci_name(struct pci_dev *)

which does not appear in the linux-2.2.x kernels.

In linux-2.4.x/include/linux/pci.h, struct pci_dev includes a slot_name entry that doesn't appear in the linux-2.2.25 version.

Without fully appreciating the code, the alsa-driver successfully builds by changing acore/pci_compat_22.c: line 371, like this

- pci_name(pdev));
+ res_name);

Unfortunately, the snd-interwave modules fails to load afterwards. The temporary fix above is surely not the cause of this, but I'll say more in a separate message.

Ted.

Signature · 9 lines
Ted <[email protected]>
   http://www.nowtsfree.freeserve.co.uk


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
#1 lore raw

At Wed, 26 Nov 2003 23:45:52 +0000,

Quoted 21 lines · Ted

Hello,

Takashi Iwai <[email protected]> wrote on Tue, 25 Nov 2003:

Quoted 1 line

right now the ALSA 1.0.0pre3 packages are released.

[...]

Quoted 2 lines

The 2.2 kernel is still not tested well. If you can test it, please let us know.

alsa-driver-1.0.0pre3/acore/pci_compat_22.c:line 371, refers to

char *pci_name(struct pci_dev *)

which does not appear in the linux-2.2.x kernels.

In linux-2.4.x/include/linux/pci.h, struct pci_dev includes a slot_name entry that doesn't appear in the linux-2.2.25 version.

Without fully appreciating the code, the alsa-driver successfully builds by changing acore/pci_compat_22.c: line 371, like this

Review

Quoted 2 lines
(quoted diff) +1 -1
-		pci_name(pdev));
+		res_name);

fixed now on cvs. thanks.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/