Re: Further question about I2C and BTTV

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



1) Make sure the bttv driver is loaded.
2) Make sure the i2c-dev module is loaded / compiled into the kernel.
3) Make sure which bus to use (you can use the detection scripts from
lm-sensors and/or the dmesg output after loading bttv module).
4) Verify which device to use - some distros only have /dev/i2c/0

If all else fails, read the documentation at the lmsenors site...

-justin

ho ho wrote:
> Dear Justin Schoeman and all:
> 
> Thanks to Justin, I have some ideas of writing I2C for
> my card.  I've wrote a program just to open the i2c,
> but the program didn't successfully go thru.  The
> following is my program:
> 
> //
> #include <fcntl.h>
> #include <stdio.h>
> #include <linux/i2c.h>
> #include <linux/i2c-dev.h>
>                                                       
>                          
> int main()
> {
>   int file;
>   printf("Opening device...\n");
>   if ((file = open("/dev/i2c-0",O_RDWR)) < 0)
>   {
>     printf("\nError:%d\n", file);
>     perror("open() failed");
>   }
>   printf("Done\n");
>                                                       
>                          
>   close(file);
> }
> //
> The error message is like:
> 
> Opening device...
>  
> Error:-1
> open() failed: No such device
> Done
> //
> I already "cat" the bus and it said:
> i2c-0   i2c             bt848 #0         Bit-shift
> algorithm
> 
> Does anyone know what I should do to fix it?  My PCI
> card is there, and a bt878 is on there.  Thanks!!!
> 
> _________________________________________________________
> 最新鈴聲推介:十面埋伏,多謝失戀,心淡...
> http://ringtone.yahoo.com.hk
> 
> 
> --
> video4linux-list mailing list
> Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/video4linux-list
> 




[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