From 2f920f544915dfbe93557e575c0b19df9993eacc Mon Sep 17 00:00:00 2001 From: voroshil Date: Sun, 26 Aug 2007 15:12:55 +0000 Subject: Implement TVI_CONTROL_TUN_GET_SIGNAL in *BSD BT848 driver. This will enable TV channels scanning feature under *BSD. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24212 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/tvi_bsdbt848.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'stream') diff --git a/stream/tvi_bsdbt848.c b/stream/tvi_bsdbt848.c index c0446a5d40..f363332558 100644 --- a/stream/tvi_bsdbt848.c +++ b/stream/tvi_bsdbt848.c @@ -250,6 +250,17 @@ static int control(priv_t *priv, int cmd, void *arg) 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: -- cgit v1.2.3