Skip to contentSkip to conversation

Alsa-devel digest, Vol 1 #1786 - 3 msgs

DISCUSSION Pavana Sharma 2 participants 2 messages Apr 1, 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

Hi,
I am new to ALSA driver impementation. I am registering the driver interface functions like (probe,remove) using driver_register call. I expect that the probe function will be called in which I am allocating sound card and registering the card using snd_card_register. When I compile the sound driver as a static module and boot my kernel I see that the init function in which I am registering the device is getting called but the probe function is not getting called.
We see a message from sound/last.c file asla_sound_last_init fucntion where it searches snd_Cards array to find whether any sound cards are registered. As our sound card card is not registered(because probe is not getting called), we see a messaged "No Soundcards found".

Can someone give us some clues like why probe function is not getting called??

Regards,
Pavana

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

#2 lore raw
Quoted 13 lines · Pavana Sharma

Hi,
I am new to ALSA driver impementation. I am registering the driver interface functions like (probe,remove) using driver_register call. I expect that the probe function will be called in which I am allocating sound card and registering the card using snd_card_register. When I compile the sound driver as a static module and boot my kernel I see that the init function in which I am registering the device is getting called but the probe function is not getting called.
We see a message from sound/last.c file asla_sound_last_init fucntion where it searches snd_Cards array to find whether any sound cards are registered. As our sound card card is not registered(because probe is not getting called), we see a messaged "No Soundcards found".

Quoted 2 lines

Can someone give us some clues like why probe function is not getting called??

The probe function is not called from ALSA, but from the kernel subsystem like PCI or ISA PnP etc. Check this code.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click