summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-09-30 10:20:18 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-09-30 10:20:18 -0300
commit3a4a805a5f31c97287eedd997fe2d3191c035d4f (patch)
tree4681f2827766843ff820a437003b0181e9466b69 /linux/drivers
parentba84783701ac8f491e853ecd0ed51a6dae86f2bf (diff)
parent83fb6c87a9c82a47fd57ffaed422eba87114dbb1 (diff)
downloadmediapointer-dvb-s2-3a4a805a5f31c97287eedd997fe2d3191c035d4f.tar.gz
mediapointer-dvb-s2-3a4a805a5f31c97287eedd997fe2d3191c035d4f.tar.bz2
merge: http://linuxtv.org/hg/~mkrufky/dvb-pll
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/bw-qcam.c18
-rw-r--r--linux/drivers/media/video/cx88/cx88-alsa.c2
2 files changed, 17 insertions, 3 deletions
diff --git a/linux/drivers/media/video/bw-qcam.c b/linux/drivers/media/video/bw-qcam.c
index a175d7810..f6d5197da 100644
--- a/linux/drivers/media/video/bw-qcam.c
+++ b/linux/drivers/media/video/bw-qcam.c
@@ -107,6 +107,17 @@ static inline void write_lpdata(struct qcam_device *q, int d)
static inline void write_lpcontrol(struct qcam_device *q, int d)
{
+ if(0x20 & d) {
+ /* Set bidirectional mode to reverse (data in) */
+ parport_data_reverse(q->pport);
+ } else {
+ /* Set bidirectional mode to forward (data out) */
+ parport_data_forward(q->pport);
+ }
+
+ /* Now issue the regular port command, but strip out the
+ * direction flag */
+ d &= ~0x20;
parport_write_control(q->pport, d);
}
@@ -347,10 +358,13 @@ static int qc_detect(struct qcam_device *q)
/* Be (even more) liberal in what you accept... */
/* if (count > 30 && count < 200) */
- if (count > 20 && count < 300)
+ if (count > 20 && count < 400)
+ {
return 1; /* found */
- else
+ } else {
+ printk(KERN_ERR "No Quickcam found on port %s\n", q->pport->name);
return 0; /* not found */
+ }
}
diff --git a/linux/drivers/media/video/cx88/cx88-alsa.c b/linux/drivers/media/video/cx88/cx88-alsa.c
index f441193eb..d858bdd5c 100644
--- a/linux/drivers/media/video/cx88/cx88-alsa.c
+++ b/linux/drivers/media/video/cx88/cx88-alsa.c
@@ -103,7 +103,7 @@ typedef struct cx88_audio_dev snd_cx88_card_t;
#define chip_t snd_cx88_card_t
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
+#ifdef COMPAT_SND_CTL_BOOLEAN_MONO
static int snd_ctl_boolean_mono_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{