Menu

#530 Tuner refuses to tell us the current frequency:

closed-duplicate
nobody
5
2005-04-20
2005-04-19
Anonymous
No

Using the pcHDTV HD-3000 card on /dev/video1

cx88[1]: subsystem: 7063:3000, board: pcHDTV HD3000
HDTV [card=22,autodetected]
tuner 3-0061: chip found @ 0xc2 (cx88[1])
tuner 3-0061: type set to 52 (Thomson DDT 7610 (ATSC/NTSC))
tda9885/6/7: chip found @ 0x86
cx88[1]/0: found at 0000:01:0a.0, rev: 5, irq: 11,
latency: 32, mmio: 0xe3000000
cx88[1]/0: registered device video1 [v4l2]
cx88[1]/0: registered device vbi1
cx88[1]/0: registered device radio1

Message output from TVTime are:

videoinput: Tuner refuses to tell us the current
frequency: Invalid argument
videoinput: Please file a bug report at http://tvtime.net/
Restarting tvtime.
Reading configuration from /etc/tvtime/tvtime.xml
Reading configuration from /home/vw/.tvtime/tvtime.xml
videoinput: Tuner refuses to tell us the current
frequency: Invalid argument
videoinput: Please file a bug report at http://tvtime.net/

Same from Gentoo and fc3

Thanks for your efforts, I hope this helps!

Discussion

  • Steven Walter

    Steven Walter - 2005-04-20

    Logged In: YES
    user_id=175708

    I too have this problem and have corrected it. The issue is
    that tvtime does not initialize the v4l2_frequency structure
    that it passes into VIDIOC_G_FREQUENCY. The cx88 driver
    checks that freq->tuner == 0, failing with -EINVAL if this
    is not the case. I suppose this makes sense for cards that
    could have multiple tuners.

    In any case, this patch fixes it

    --- tvtime-0.9.15/src/videoinput.c 2004-10-20
    11:17:31.000000000 -0400
    +++ tvtime-new/src/videoinput.c 2005-04-19
    20:10:25.000000000 -0400
    @@ -1289,6 +1289,8 @@
    if( vidin->isv4l2 ) {
    struct v4l2_frequency freqinfo;

    + freqinfo.tuner = 0;
    +
    if( ioctl( vidin->grab_fd, VIDIOC_G_FREQUENCY,
    &freqinfo ) < 0 ) {
    fprintf( stderr, "videoinput: Tuner refuses
    to tell us the current frequency: %s\n",
    strerror( errno ) );

     
  • Billy Biggs

    Billy Biggs - 2005-04-20

    Logged In: YES
    user_id=153320

    Fixed by the 0.99 release I just posted. Sorry for the trouble.

     
  • Billy Biggs

    Billy Biggs - 2005-04-20
    • milestone: --> Fixed in CVS for next release
    • status: open --> closed-duplicate
     

Log in to post a comment.

MongoDB Logo MongoDB