Mercurial > mplayer.hg
changeset 24192:588a590819f0
Implement TVI_CONTROL_TUN_GET_SIGNAL in *BSD BT848 driver.
This will enable TV channels scanning feature under *BSD.
author | voroshil |
---|---|
date | Sun, 26 Aug 2007 15:12:55 +0000 |
parents | e6221b1a7322 |
children | 6e016c7f9907 |
files | stream/tvi_bsdbt848.c |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/tvi_bsdbt848.c Sun Aug 26 15:03:43 2007 +0000 +++ b/stream/tvi_bsdbt848.c Sun Aug 26 15:12:55 2007 +0000 @@ -250,6 +250,17 @@ 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: