diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-07-30 11:49:58 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-07-30 11:49:58 -0400 |
commit | caf9d83bfef78ed4ed1a46f9927e056237a111e7 (patch) | |
tree | 36b6275d2d80ba7295a42b8050c5ab201808b252 | |
parent | 85c51e753c39f725e39aad2eeb0d27abed0c0426 (diff) | |
download | mediapointer-dvb-s2-caf9d83bfef78ed4ed1a46f9927e056237a111e7.tar.gz mediapointer-dvb-s2-caf9d83bfef78ed4ed1a46f9927e056237a111e7.tar.bz2 |
ivtv: fix semaphore / mutex compat for kernels 2.6.15 and earlier
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
-rw-r--r-- | linux/drivers/media/video/ivtv/ivtv-driver.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-driver.h b/linux/drivers/media/video/ivtv/ivtv-driver.h index 7d69337ee..f4fe889d9 100644 --- a/linux/drivers/media/video/ivtv/ivtv-driver.h +++ b/linux/drivers/media/video/ivtv/ivtv-driver.h @@ -729,7 +729,11 @@ struct ivtv { int search_pack_header; spinlock_t dma_reg_lock; /* lock access to DMA engine registers */ +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) struct mutex serialize_lock; /* lock used to serialize starting streams */ +#else + struct semaphore serialize_lock; /* lock used to serialize starting streams */ +#endif /* User based DMA for OSD */ struct ivtv_user_dma udma; |