[MPlayer-cvslog] r24212 - trunk/stream/tvi_bsdbt848.c

voroshil subversion at mplayerhq.hu
Sun Aug 26 17:12:55 CEST 2007


Author: voroshil
Date: Sun Aug 26 17:12:55 2007
New Revision: 24212

Log:
Implement TVI_CONTROL_TUN_GET_SIGNAL in *BSD BT848 driver.
This will enable TV channels scanning feature under *BSD.



Modified:
   trunk/stream/tvi_bsdbt848.c

Modified: trunk/stream/tvi_bsdbt848.c
==============================================================================
--- trunk/stream/tvi_bsdbt848.c	(original)
+++ trunk/stream/tvi_bsdbt848.c	Sun Aug 26 17:12:55 2007
@@ -250,6 +250,17 @@ static int control(priv_t *priv, int cmd
 
         return(TVI_CONTROL_TRUE);        
         }
+    case TVI_CONTROL_TUN_GET_SIGNAL:
+        {
+        int status;
+        if(ioctl(priv->tunerfd, TVTUNER_GETSTATUS, &status) < 0)
+            {
+            perror("GETSTATUS:ioctl");
+            return(0);
+            }
+        *(int*)arg=(status & 0x02)? 100 : 0;
+        return (TVI_CONTROL_TRUE);
+        }
 
     case TVI_CONTROL_TUN_GET_TUNER:
     case TVI_CONTROL_TUN_SET_TUNER:



More information about the MPlayer-cvslog mailing list