__u8 *p1, *p2;
__s16 s16;
int i, j, more, much, leap, rc;
-#if defined(UPSAMPLE)
+#ifdef UPSAMPLE
int k;
__s16 oldaudio, newaudio, delta;
#endif /*UPSAMPLE*/
* PROCEED HERE WHEN NO ERROR
*/
/*---------------------------------------------------------------------------*/
-#if defined(UPSAMPLE)
+#ifdef UPSAMPLE
oldaudio = peasycap->oldaudio;
#endif /*UPSAMPLE*/
more = purb->iso_frame_desc[i].actual_length;
-#if defined(TESTTONE)
+#ifdef TESTTONE
if (!more)
more = purb->iso_frame_desc[i].length;
#endif
if (PAGE_SIZE == (paudio_buffer->pto -
paudio_buffer->pgo)) {
-#if defined(TESTTONE)
+#ifdef TESTTONE
easyoss_testtone(peasycap,
peasycap->audio_fill);
#endif /*TESTTONE*/
p1 += much;
more -= much;
} else {
-#if defined(UPSAMPLE)
+#ifdef UPSAMPLE
if (much % 16)
JOM(8, "MISTAKE? much"
" is not divisible by 16\n");
purb->iso_frame_desc[i].status);
}
-#if defined(UPSAMPLE)
+#ifdef UPSAMPLE
peasycap->oldaudio = oldaudio;
#endif /*UPSAMPLE*/
struct easycap *peasycap;
int subminor;
/*vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv*/
-#if defined(EASYCAP_IS_VIDEODEV_CLIENT)
-#if defined(EASYCAP_NEEDS_V4L2_DEVICE_H)
+#ifdef EASYCAP_IS_VIDEODEV_CLIENT
+#ifdef EASYCAP_NEEDS_V4L2_DEVICE_H
struct v4l2_device *pv4l2_device;
#endif /*EASYCAP_NEEDS_V4L2_DEVICE_H*/
#endif /*EASYCAP_IS_VIDEODEV_CLIENT*/
return -1;
}
/*---------------------------------------------------------------------------*/
-#if (!defined(EASYCAP_IS_VIDEODEV_CLIENT))
+#ifndef EASYCAP_IS_VIDEODEV_CLIENT
#
/*vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv*/
#else
-#if defined(EASYCAP_NEEDS_V4L2_DEVICE_H)
+#ifdef EASYCAP_NEEDS_V4L2_DEVICE_H
/*---------------------------------------------------------------------------*/
/*
* SOME VERSIONS OF THE videodev MODULE OVERWRITE THE DATA WHICH HAS
int caps;
JOM(8, "SNDCTL_DSP_GETCAPS\n");
-#if defined(UPSAMPLE)
+#ifdef UPSAMPLE
if (true == peasycap->microphone)
caps = 0x04400000;
else
int incoming;
JOM(8, "SNDCTL_DSP_GETFMTS\n");
-#if defined(UPSAMPLE)
+#ifdef UPSAMPLE
if (true == peasycap->microphone)
incoming = AFMT_S16_LE;
else
}
JOM(8, "........... %i=incoming\n", incoming);
-#if defined(UPSAMPLE)
+#ifdef UPSAMPLE
if (true == peasycap->microphone)
outgoing = AFMT_S16_LE;
else
}
JOM(8, "........... %i=incoming\n", incoming);
-#if defined(UPSAMPLE)
+#ifdef UPSAMPLE
if (true == peasycap->microphone)
incoming = 1;
else
}
JOM(8, "........... %i=incoming\n", incoming);
-#if defined(UPSAMPLE)
+#ifdef UPSAMPLE
if (true == peasycap->microphone)
incoming = 32000;
else