Hi Randy (& list)

Mike Cox pointed me to a bad brown paper bag problem in dsbr100.c --
the v.flags field in the VIDIOGCTUNER ioctl would remain uninitialised
after I commented out a line (for some reason I don't remember:-).  The
attached patch should fix that.

          Markus

----------------------------------
[EMAIL PROTECTED]
finger me as [EMAIL PROTECTED]
--- dsbr100.c.old       Mon Apr 24 17:00:21 2000
+++ dsbr100.c   Mon Apr 24 17:15:55 2000
@@ -15,7 +15,7 @@
  You might find some interesting stuff about this module at
  http://unimut.fsk.uni-heidelberg.de/unimut/demi/dsbr
 
- Copyright (c) 2000 Markus Demleitner
+ Copyright (c) 2000 Markus Demleitner <[EMAIL PROTECTED]>
 
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
@@ -33,9 +33,12 @@
 
  History:
 
+ Version 0.22:
+       Markus: Some (brown bag) cleanup in what VIDIOCSTUNER returns, 
+       thanks to Mike Cox for pointing the problem out.
+
  Version 0.21:
-       Markus Demleitner <[EMAIL PROTECTED]>:
-       Minor cleanup, warnings if something goes wrong, lame attempt
+       Markus: Minor cleanup, warnings if something goes wrong, lame attempt
        to adhere to Documentation/CodingStyle
 
  Version 0.2: 
@@ -212,13 +215,14 @@
                                return -EFAULT;
                        if(v.tuner)     /* Only 1 tuner */ 
                                return -EINVAL;
-                       v.rangelow=(87*16000);
-                       v.rangehigh=(108*16000);
-                       /*v.flags=VIDEO_TUNER_LOW;*/
-                       v.mode=VIDEO_MODE_AUTO;
-                       v.signal=radio->stereo;
-                       v.flags|=VIDEO_TUNER_STEREO_ON;
-                       strcpy(v.name, "FM");
+                       v.rangelow = 87*16;
+                       v.rangehigh = 108*16;
+                       v.flags = VIDEO_TUNER_LOW;
+                       v.mode = VIDEO_MODE_AUTO;
+                       v.signal = radio->stereo*0x7000;
+                               /* Don't know how to get signal strength */
+                       v.flags |= VIDEO_TUNER_STEREO_ON*radio->stereo;
+                       strcpy(v.name, "DSB R-100");
                        if(copy_to_user(arg,&v, sizeof(v)))
                                return -EFAULT;
                        return 0;

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to