Skip to contentSkip to conversation

Alsa driver PCMCIA question.

DISCUSSION James Courtier-Dutton 1 participant 1 message Apr 21, 2005

lore
Share & tools
lore
#0 lore raw

I have a PCMCIA sound card that as soon as I insert it, it appears as a PCI device, and lspci lists it.
It even appears if cardmgr is not running.
pci commands work on it.
e.g.
pci_read_config_byte(pci, PCI_REVISION_ID, &revision);

and
port = pci_resource_start(pci, 0);

does return the base port io for the card, as listed by lspci.

The problem comes when I do:
value = inl(port);

The whole PC just hangs at that point, and I have to reboot it.

Is there some extra api calls I have to make in order to get the inl() command to work?

James

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click