Hi, > > Yep, /dev/radio from tuner module (bttv driver) > > And where did you get the output from?? ? Output ? What do you mean by output, at the moment I'm just opening device, nothing else and on _each_ open() call I get 'out of range' errors. > > > > Some ioctl( .. VIDIOCSFREQ .. ) too early ?! > > > > > > ioctl() before open()??? > > > > Nope. No ioctls in my C program (yet). > > It's something like : > > > > if( ( fd = open( dev_name, O_RDONLY ) ) > 0 ) { > > printf( "Hurray!\n" ); > > } else { > > fprintf( stderr, "No interface found!\n" ); > > exit(1); > > } > > open() is allowed to return 0; check against -1. Replace the fprintf > with perror("it's me") and guess... > ....send the output of your program. if( ( fd = open( dev_name, O_RDONLY ) ) != -1 ) { printf( "Hurray!\n" ); } else { printf( "Ooops!\n" ); fprintf( stderr, "No interface found!\n" ); exit(1); } And YES, I get 'Hurray!' ! It looks like on every open(), tuner module calls set_radio_freq(), like some garbage leftovers in struct variables .. . investigating further .. -- FUBared. -------------------- H T h i n e t - - W e b M a i l -------------------- Ova poruka poslana je upotrebom HThinet WebMail usluge. http://webmail.hinet.hr