1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-11 17:37:23 +00:00

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

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: