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
This commit is contained in:
voroshil 2007-08-26 15:12:55 +00:00
parent 0593b7b6f8
commit 2f920f5449
1 changed files with 11 additions and 0 deletions

View File

@ -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: