else
itwas = (unsigned int)ir;
rc = write_saa(peasycap->pusb_device, reg, set);
- if (0 != rc)
+ if (rc)
SAM("ERROR: failed to set SAA register "
"0x%02X to 0x%02X for JP standard\n", reg, set);
else {
else
itwas = (unsigned int)ir;
rc = write_saa(peasycap->pusb_device, reg, set);
- if (0 != rc)
+ if (rc)
SAM("ERROR: failed to set SAA register 0x%02X to 0x%02X "
"for JP standard\n", reg, set);
else {
else
set = itwas & ~0x40 ;
rc = write_saa(peasycap->pusb_device, reg, set);
- if (0 != rc)
+ if (rc)
SAM("ERROR: failed to set SAA register 0x%02X to 0x%02X\n",
reg, set);
else {
else
set = itwas & ~0x80 ;
rc = write_saa(peasycap->pusb_device, reg, set);
- if (0 != rc)
+ if (rc)
SAM("ERROR: failed to set SAA register 0x%02X to 0x%02X\n",
reg, set);
else {
*p2++ = 0;
if (3 > i) {
rc = (int) strict_strtol(p1, 10, &lng);
- if (0 != rc) {
+ if (rc) {
SAM("ERROR: %i=strict_strtol(%s,.,,)\n",
rc, p1);
mutex_unlock(&easycapdc60_dongle[kd].
}
peasycap->input = 0;
rc = reset(peasycap);
-if (0 != rc) {
+if (rc) {
SAM("ERROR: reset() returned %i\n", rc);
return -EFAULT;
}
rc = usb_set_interface(peasycap->pusb_device,
peasycap->video_interface,
peasycap->video_altsetting_off);
-if (0 != rc) {
+if (rc) {
SAM("ERROR: usb_set_interface() returned %i\n", rc);
return -EFAULT;
}
rc = stop_100(peasycap->pusb_device);
-if (0 != rc) {
+if (rc) {
SAM("ERROR: stop_100() returned %i\n", rc);
return -EFAULT;
}
if (off != peasycap->standard_offset) {
rc = adjust_standard(peasycap,
easycap_standard[off].v4l2_standard.id);
- if (0 != rc) {
+ if (rc) {
SAM("ERROR: adjust_standard() returned %i\n", rc);
return -EFAULT;
}
mood = peasycap->inputset[input].brightness;
if (mood != peasycap->brightness) {
rc = adjust_brightness(peasycap, mood);
- if (0 != rc) {
+ if (rc) {
SAM("ERROR: adjust_brightness returned %i\n", rc);
return -EFAULT;
}
mood = peasycap->inputset[input].contrast;
if (mood != peasycap->contrast) {
rc = adjust_contrast(peasycap, mood);
- if (0 != rc) {
+ if (rc) {
SAM("ERROR: adjust_contrast returned %i\n", rc);
return -EFAULT;
}
mood = peasycap->inputset[input].saturation;
if (mood != peasycap->saturation) {
rc = adjust_saturation(peasycap, mood);
- if (0 != rc) {
+ if (rc) {
SAM("ERROR: adjust_saturation returned %i\n", rc);
return -EFAULT;
}
mood = peasycap->inputset[input].hue;
if (mood != peasycap->hue) {
rc = adjust_hue(peasycap, mood);
- if (0 != rc) {
+ if (rc) {
SAM("ERROR: adjust_hue returned %i\n", rc);
return -EFAULT;
}
rc = usb_set_interface(peasycap->pusb_device,
peasycap->video_interface,
peasycap->video_altsetting_on);
-if (0 != rc) {
+if (rc) {
SAM("ERROR: usb_set_interface() returned %i\n", rc);
return -EFAULT;
}
rc = start_100(peasycap->pusb_device);
-if (0 != rc) {
+if (rc) {
SAM("ERROR: start_100() returned %i\n", rc);
return -EFAULT;
}
JOM(8, "first awakening on wq_video after %i waits\n", miss);
rc = field2frame(peasycap);
-if (0 != rc)
+if (rc)
SAM("ERROR: field2frame() returned %i\n", rc);
/*---------------------------------------------------------------------------*/
/*
JOM(8, "second awakening on wq_video after %i waits\n", miss);
rc = field2frame(peasycap);
-if (0 != rc)
+if (rc)
SAM("ERROR: field2frame() returned %i\n", rc);
/*---------------------------------------------------------------------------*/
/*
JOM(8, "defaulting initially to PAL\n");
#endif /*PREFER_NTSC*/
rc = reset(peasycap);
- if (0 != rc) {
+ if (rc) {
SAM("ERROR: reset() returned %i\n", rc);
return -EFAULT;
}
JOM(4, "initializing ALSA card\n");
rc = easycap_alsa_probe(peasycap);
- if (0 != rc) {
+ if (rc) {
err("easycap_alsa_probe() returned %i\n", rc);
return -ENODEV;
} else {
#else /* CONFIG_EASYCAP_OSS */
rc = usb_register_dev(pusb_interface, &easyoss_class);
- if (0 != rc) {
+ if (rc) {
SAY("ERROR: usb_register_dev() failed\n");
usb_set_intfdata(pusb_interface, NULL);
return -ENODEV;
}
JOT(4, "registering driver easycap\n");
rc = usb_register(&easycap_usb_driver);
- if (0 != rc)
+ if (rc)
SAY("ERROR: usb_register returned %i\n", rc);
JOT(4, "ends\n");
resubmit:
if (peasycap->audio_isoc_streaming) {
rc = usb_submit_urb(purb, GFP_ATOMIC);
- if (0 != rc) {
+ if (rc) {
if (-ENODEV != rc && -ENOENT != rc) {
SAM("ERROR: while %i=audio_idle, "
"usb_submit_urb() failed "
((fragment != (peasycap->audio_fill /
peasycap->audio_pages_per_fragment)) &&
(0 < (PAGE_SIZE - (pdata_buffer->pto - pdata_buffer->pgo))))));
- if (0 != rc) {
+ if (rc) {
SAM("aborted by signal\n");
mutex_unlock(&easycapdc60_dongle[kd].mutex_audio);
return -ERESTARTSYS;
}
/*---------------------------------------------------------------------------*/
rc = copy_to_user(puserspacebuffer, pdata_buffer->pto, more);
- if (0 != rc) {
+ if (rc) {
SAM("ERROR: copy_to_user() returned %li\n", rc);
mutex_unlock(&easycapdc60_dongle[kd].mutex_audio);
return -EFAULT;