diff options
author | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-08-26 15:12:55 +0000 |
---|---|---|
committer | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-08-26 15:12:55 +0000 |
commit | 2f920f544915dfbe93557e575c0b19df9993eacc (patch) | |
tree | 108c4cf6e7d1c476ce4d2be4e016c83f00ed83a5 /stream | |
parent | 0593b7b6f8b7b27984fc1dc028e18dbff5057b32 (diff) | |
download | mpv-2f920f544915dfbe93557e575c0b19df9993eacc.tar.bz2 mpv-2f920f544915dfbe93557e575c0b19df9993eacc.tar.xz |
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
Diffstat (limited to 'stream')
-rw-r--r-- | stream/tvi_bsdbt848.c | 11 |
1 files changed, 11 insertions, 0 deletions
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: |