int cm206_audio_ioctl(struct cdrom_device_info *cdi, unsigned int cmd, void *arg) 
static int cm206_audio_ioctl(struct cdrom_device_info *cdi, unsigned int cmd, void *arg) 
int cm206_audio_ioctl(struct cdrom_device_info *cdi, unsigned int cmd,		      void *arg){	switch (cmd) {	case CDROMREADTOCHDR:		return read_toc_header((struct cdrom_tochdr *) arg);	case CDROMREADTOCENTRY:		get_toc_entry((struct cdrom_tocentry *) arg);		return 0;	case CDROMPLAYMSF:		play_from_to_msf((struct cdrom_msf *) arg);		return 0;	case CDROMPLAYTRKIND:	/* admittedly, not particularly beautiful */		play_from_to_track(((struct cdrom_ti *) arg)->cdti_trk0,				   ((struct cdrom_ti *) arg)->cdti_trk1);		return 0;	case CDROMSTOP:		PAUSED = 0;		if (cd->dsb & dsb_play_in_progress)			return type_0_command(c_stop, 1);		else			return 0;	case CDROMPAUSE:		get_drive_status();		if (cd->dsb & dsb_play_in_progress) {			type_0_command(c_stop, 1);			type_1_command(c_audio_status, 5,				       cd->audio_status);			PAUSED = 1;	/* say we're paused */		}		return 0;	case CDROMRESUME:		if (PAUSED)			play_from_to_track(0, 0);		PAUSED = 0;		return 0;	case CDROMSTART:	case CDROMVOLCTRL:		return 0;	case CDROMSUBCHNL:		return get_current_q((struct cdrom_subchnl *) arg);	default:		return -EINVAL;	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8b3d4a2a3ef9488d4477e8823106abfd6039eb66/cm206.c/clean/drivers/cdrom/cm206.c