Re: open( /dev/radio ) ???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



From: Mario Mikoèeviæ <mario.mikocevic@xxxxxxxxxxx>

> > > tuner: radio freq set to 400.00
> > > tuner: radio freq (400.00) out of range (65-108)
> > > 
> > > Hum?
> > 
> > Is this the radio device from bttv?
> 
> Yep, /dev/radio from tuner module (bttv driver)

And where did you get the output from??

> > > 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.


Bye,
	Robert





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux