Moderator Control Panel ]

Future of the Linux-Driver

Re: Future of the Linux-Driver

Postby softnhard » Sun May 22, 2011 11:21 am

Take a look to http://blog.mohammadzadeh.info/index.php/step-by-step-guide-to for a complete guide on how to install.
softnhard
 
Posts: 3
Joined: Sun May 22, 2011 11:17 am

Re: Future of the Linux-Driver

Postby smv1210 » Mon May 23, 2011 7:45 pm

The "official" 2.6.38 kernel's driver has been appeared on the Downloads page,

However... it is not in-line with real 2.6.38 driver's structure; it still uses legacy "linux/drivers/media/IR" instead of "linux/drivers/media/rc", etc, etc.
smv1210
 
Posts: 35
Joined: Wed May 19, 2010 4:13 pm

Re: Future of the Linux-Driver

Postby stevellion » Tue May 24, 2011 5:22 am

I don't suppose there are any release notes with it, or available?

It looks like there are few updated files to it, but can't tell what's been done - apart from it actually compiles now without all the hacking we've had to do.
stevellion
 
Posts: 20
Joined: Tue May 10, 2011 4:03 am

Re: Future of the Linux-Driver

Postby stevellion » Tue May 24, 2011 6:36 am

I can confirm it compiles, installs and works fine though!
stevellion
 
Posts: 20
Joined: Tue May 10, 2011 4:03 am

Re: Future of the Linux-Driver

Postby smv1210 » Tue May 24, 2011 6:55 am

Yes it does compile, however, if you are going to use vdr-sasc-ng with it, an additional patch is still needed:
Code: Select All Code
--- linux/drivers/media/dvb/dvb-core/dvbdev.c   2011-05-17 18:43:04.000000000 +0300
+++ linux/drivers/media/dvb/dvb-core/dvbdev.c   2011-05-23 22:48:40.514641108 +0300
@@ -36,7 +36,7 @@
 #include <linux/smp_lock.h>
 #include "dvbdev.h"
 
-static DEFINE_MUTEX(dvbdev_mutex);
+//static DEFINE_MUTEX(dvbdev_mutex);
 static int dvbdev_debug;
 
 module_param(dvbdev_debug, int, 0644);
@@ -70,7 +70,8 @@
 {
    struct dvb_device *dvbdev;
 
-   mutex_lock(&dvbdev_mutex);
+   lock_kernel();
+   //mutex_lock(&dvbdev_mutex);
    down_read(&minor_rwsem);
    dvbdev = dvb_minors[iminor(inode)];
 
@@ -101,12 +102,13 @@
       }
       fops_put(old_fops);
       up_read(&minor_rwsem);
-      mutex_unlock(&dvbdev_mutex);
+      //mutex_unlock(&dvbdev_mutex);
+                unlock_kernel();
       return err;
    }
 fail:
    up_read(&minor_rwsem);
-   mutex_unlock(&dvbdev_mutex);
+   //mutex_unlock(&dvbdev_mutex);
    return -ENODEV;
 }
 
@@ -169,6 +171,7 @@
             unsigned int cmd, unsigned long arg)
 {
    struct dvb_device *dvbdev = file->private_data;
+        int ret;
 
    if (!dvbdev)
       return -ENODEV;
@@ -176,7 +179,12 @@
    if (!dvbdev->kernel_ioctl)
       return -EINVAL;
 
-   return dvb_usercopy (file, cmd, arg, dvbdev->kernel_ioctl);
+   //return dvb_usercopy (file, cmd, arg, dvbdev->kernel_ioctl);
+        lock_kernel();
+        ret = dvb_usercopy(file, cmd, arg, dvbdev->kernel_ioctl);
+        unlock_kernel();
+       
+        return ret;
 }
 EXPORT_SYMBOL(dvb_generic_ioctl);
 
@@ -441,10 +449,10 @@
    }
 
    /* call driver */
-   mutex_lock(&dvbdev_mutex);
+   //mutex_lock(&dvbdev_mutex);
    if ((err = func(file, cmd, parg)) == -ENOIOCTLCMD)
       err = -EINVAL;
-   mutex_unlock(&dvbdev_mutex);
+   //mutex_unlock(&dvbdev_mutex);
 
    if (err < 0)
       goto out;
smv1210
 
Posts: 35
Joined: Wed May 19, 2010 4:13 pm

Re: Future of the Linux-Driver

Postby hda » Thu May 26, 2011 3:18 am

Could someone please point me to this new driver for 2.6.38.

I can still only see the rar file for 2.6.35 on the downloads page.

Cheers.
hda
 
Posts: 42
Joined: Thu Dec 09, 2010 2:21 am

Re: Future of the Linux-Driver

Postby smv1210 » Thu May 26, 2011 2:48 pm

http://www.tbsdtv.com/download/common/linux-tbs-drivers_110523.rar
smv1210
 
Posts: 35
Joined: Wed May 19, 2010 4:13 pm

Re: Future of the Linux-Driver

Postby hda » Thu May 26, 2011 7:30 pm

smv1210 Wrote:http://www.tbsdtv.com/download/common/linux-tbs-drivers_110523.rar


Thanks a lot.
hda
 
Posts: 42
Joined: Thu Dec 09, 2010 2:21 am

Re: Future of the Linux-Driver

Postby hda » Fri May 27, 2011 1:15 am

I'm still getting same errors as when I compiled with Andys patch.

It looks like this new rar is just a re-packaging or Andys work and not a proper solution :(
hda
 
Posts: 42
Joined: Thu Dec 09, 2010 2:21 am

Re: Future of the Linux-Driver

Postby stevellion » Mon May 30, 2011 5:55 am

What errors are you getting? I just compiled it straight away, with no problems.

Did you follow all the README instructions properly?

With these latest drivers, you shouldn't need any patches.
stevellion
 
Posts: 20
Joined: Tue May 10, 2011 4:03 am

PreviousNext

Return to Linux

Who is online

Users browsing this forum: No registered users and 2 guests