kernels/linux-2.4.0/drivers/usb/ibmcam.c
/*
 * usb_ibmcam_reinit_iso()
 *
 * This procedure sends couple of commands to the camera and then
 * resets the video pipe. This sequence was observed to reinit the
 * camera or, at least, to initiate ISO data stream.
 *
 * History:
 * 1/2/00   Created.
 */
usb_ibmcam_reinit_iso()
This procedure sends couple of commands to the camera and then
resets the video pipe. This sequence was observed to reinit the
camera or, at least, to initiate ISO data stream.


usb_ibmcam_reinit_iso () This procedure sends couple of commands to the camera and then resets the video pipe . This sequence was observed to reinit the camera or at least to initiate ISO data stream .
static void usb_ibmcam_reinit_iso(struct usb_ibmcam *ibmcam, int do_stop)
{
	if (ibmcam->camera_model == IBMCAM_MODEL_1) {
		if (do_stop)
			usb_ibmcam_setup_video_stop(ibmcam);
		usb_ibmcam_veio(ibmcam, 0, 0x0001, 0x0114);
		usb_ibmcam_veio(ibmcam, 0, 0x00c0, 0x010c);
		usb_clear_halt(ibmcam->dev, ibmcam->video_endp);
		usb_ibmcam_model1_setup_after_video_if(ibmcam);
	} else if (ibmcam->camera_model == IBMCAM_MODEL_2) {
		usb_ibmcam_model2_setup_after_video_if(ibmcam);
	}
}
static void usb_ibmcam_reinit_iso ( struct usb_ibmcam * ibmcam , int do_stop ) { if ( ibmcam -> camera_model == IBMCAM_MODEL_1 ) { if ( do_stop ) usb_ibmcam_setup_video_stop ( ibmcam ) ; usb_ibmcam_veio ( ibmcam , 0 , 0x0001 , 0x0114 ) ; usb_ibmcam_veio ( ibmcam , 0 , 0x00c0 , 0x010c ) ; usb_clear_halt ( ibmcam -> dev , ibmcam -> video_endp ) ; usb_ibmcam_model1_setup_after_video_if ( ibmcam ) ; } else if ( ibmcam -> camera_model == IBMCAM_MODEL_2 ) { usb_ibmcam_model2_setup_after_video_if ( ibmcam ) ; } }
usb_ibmcam_reinit_iso()
 This procedure sends couple of commands to the camera and then
 resets the video pipe.
usb_ibmcam_reinit_iso () This procedure sends couple of commands to the camera and then resets the video pipe .