# HG changeset patch # User voroshil # Date 1188141175 0 # Node ID 588a590819f0df211612d6bfc72eb93699eb7601 # Parent e6221b1a7322f98de390f7be2d0579d12159c45b Implement TVI_CONTROL_TUN_GET_SIGNAL in *BSD BT848 driver. This will enable TV channels scanning feature under *BSD. diff -r e6221b1a7322 -r 588a590819f0 stream/tvi_bsdbt848.c --- 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: