summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Knorr <devnull@localhost>2004-05-28 16:21:29 +0000
committerGerd Knorr <devnull@localhost>2004-05-28 16:21:29 +0000
commita0dac2cdb3964e807e3ffb5df8dd1dd19fd8a91f (patch)
tree7f1efab2ab9d4a124ced3d55e6bf18bd04a9e875
parent7e61a4f39058b0fcb4b5f6a5454b968ed8a7925a (diff)
downloadmediapointer-dvb-s2-a0dac2cdb3964e807e3ffb5df8dd1dd19fd8a91f.tar.gz
mediapointer-dvb-s2-a0dac2cdb3964e807e3ffb5df8dd1dd19fd8a91f.tar.bz2
- userptr fix.
- add KEY_TEXT define for 2.4.
-rw-r--r--linux/drivers/media/video/video-buf.c2
-rw-r--r--linux/include/media/ir-common.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/video/video-buf.c b/linux/drivers/media/video/video-buf.c
index 49b1d8d1c..b3d64a6aa 100644
--- a/linux/drivers/media/video/video-buf.c
+++ b/linux/drivers/media/video/video-buf.c
@@ -629,6 +629,8 @@ videobuf_qbuf(struct file *file, struct videobuf_queue *q,
case V4L2_MEMORY_USERPTR:
if (b->length < buf->bsize)
goto done;
+ if (STATE_NEEDS_INIT != buf->state && buf->baddr != b->m.userptr)
+ q->ops->buf_release(file,buf);
buf->baddr = b->m.userptr;
break;
case V4L2_MEMORY_OVERLAY:
diff --git a/linux/include/media/ir-common.h b/linux/include/media/ir-common.h
index 9095bb923..4c0e15ad0 100644
--- a/linux/include/media/ir-common.h
+++ b/linux/include/media/ir-common.h
@@ -37,6 +37,7 @@
# define KEY_TV 0x179
# define KEY_CD 0x17f
# define KEY_TUNER 0x182
+# define KEY_TEXT 0x184
# define KEY_DVD 0x185
# define KEY_AUDIO 0x188
# define KEY_VIDEO 0x189