[mythtv-users] Use V4L in Debian
Josu Lazkano
josu.lazkano at gmail.com
Tue Dec 4 09:46:03 UTC 2012
Thanks!
I will try it on a test machine. I want to add some patches to the V4L
sources, I read on the LinuxTV wiki this: "NB: to add a patch copy the
.patch file to the backports directory, and add the patch file as a
line to the {kernel-version}_series file in the packports dir."
I want to add this patch (it works in linux sources):
diff -Nur linux-source-3.2/drivers/media/dvb/dvb-core/dvbdev.c
linux-source-3.2/drivers/media/dvb/dvb-core/dvbdev.c
--- linux-source-3.2/drivers/media/dvb/dvb-core/dvbdev.c
+++ linux-source-3.2/drivers/media/dvb/dvb-core/dvbdev.c
@@ -83,8 +83,11 @@ static int dvb_device_open(struct inode *inode,
struct file *file)
file->f_op = old_fops;
goto fail;
}
- if(file->f_op->open)
+ if(file->f_op->open) {
+ mutex_unlock(&dvbdev_mutex);
err = file->f_op->open(inode,file);
+ mutex_lock(&dvbdev_mutex);
+ }
if (err) {
fops_put(file->f_op);
file->f_op = fops_get(old_fops);
--
How could I change the patch to get working with V4L?
Here are the steps:
mkdir -p /usr/local/src/dvb
cd /usr/local/src/dvb
git clone git://linuxtv.org/media_build.git
cd media_build
cp /root/linux-3.2-dvb-mutex.patch backports/v3.2_dvb_mutex.patch
./build
make install
Thanks for your help.
Best regards.
--
Josu Lazkano
More information about the mythtv-users
mailing list