static int vxpocket_event(event_t event, int priority, event_callback_args_t *args) 
int vxpocket_event(event_t event, int priority, event_callback_args_t *args) 
static int vxpocket_event(event_t event, int priority, event_callback_args_t *args){	dev_link_t *link = args->client_data;	vx_core_t *chip = link->priv;	switch (event) {	case CS_EVENT_CARD_REMOVAL:		snd_printdd(KERN_DEBUG "CARD_REMOVAL..\n");		link->state &= ~DEV_PRESENT;		if (link->state & DEV_CONFIG) {			chip->chip_status |= VX_STAT_IS_STALE;		}		break;	case CS_EVENT_CARD_INSERTION:		snd_printdd(KERN_DEBUG "CARD_INSERTION..\n");		link->state |= DEV_PRESENT | DEV_CONFIG_PENDING;		vxpocket_config(link);		break;#ifdef CONFIG_PM	case CS_EVENT_PM_SUSPEND:		snd_printdd(KERN_DEBUG "SUSPEND\n");		link->state |= DEV_SUSPEND;		if (chip && chip->card->pm_suspend) {			snd_printdd(KERN_DEBUG "snd_vx_suspend calling\n");			chip->card->pm_suspend(chip->card, PMSG_SUSPEND);		}		/* Fall through... */	case CS_EVENT_RESET_PHYSICAL:		snd_printdd(KERN_DEBUG "RESET_PHYSICAL\n");		if (link->state & DEV_CONFIG)			pcmcia_release_configuration(link->handle);		break;	case CS_EVENT_PM_RESUME:		snd_printdd(KERN_DEBUG "RESUME\n");		link->state &= ~DEV_SUSPEND;		/* Fall through... */	case CS_EVENT_CARD_RESET:		snd_printdd(KERN_DEBUG "CARD_RESET\n");		if (DEV_OK(link)) {			//struct snd_vxpocket *vxp = (struct snd_vxpocket *)chip;			snd_printdd(KERN_DEBUG "requestconfig...\n");			pcmcia_request_configuration(link->handle, &link->conf);			if (chip && chip->card->pm_resume) {				snd_printdd(KERN_DEBUG "calling snd_vx_resume\n");				chip->card->pm_resume(chip->card);			}		}		snd_printdd(KERN_DEBUG "resume done!\n");		break;#endif	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1e212f3645a6b355de8c43a23376bc0e2ac49a63/vx_entry.c/buggy/sound/pcmcia/vx/vx_entry.c