Mailing List archive

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

[linux-dvb] AW: can not open device /dev/ost/qpskfe0



Hi Tim,

you cannot open the "/dev/ost/qpskfe0" with O_RDWR set...just O_RDONLY

Regards,

rh

-----Ursprüngliche Nachricht-----
Von: Tim Lapawa [mailto:lapawa@formfehler.de]
Gesendet: Montag, 28. Mai 2001 11:19
An: linux-dvb@linuxtv.org
Betreff: [linux-dvb] can not open device /dev/ost/qpskfe0


Hello list,

this small test program fails in opening the device /dev/ost/qpskfe0.
I tried to play a little bit with the API, but already the first step
became a dilemma.

>int main()
>{
>  int fd_frontend=open("/dev/ost/qpskfe0", O_RDWR);
>  if(fd_frontend == -1){
>    perror("Can not open device \"/dev/ost/qpskfe0\"");
>    return -1;
>  }
>  printf("selftest result=%d\n", ioctl(fd_frontend, OST_SELFTEST));
>  return 0;
>}

Started as root it writes to the standard error pipe:
>Can not open device "/dev/ost/qpskfe0": Invalid argument" 


I collected the system information which should be helpfull:

- Debian woody with kernelversion 2.4.4 and device drivers from todays CVS
(28.Mai)

- the character device :
# ls -l /dev/ost/qpskfe0
crw-rw-rw-    1 root     root     250,   3 May 28 10:36 /dev/ost/qpskfe0

- A "dmesg" after "make insmod" in DVB/driver prints this:
>Linux video capture interface: v1.00
>i2c-core.o: i2c core module
>i2c-algo-bit.o: i2c bit algorithm module
>bttv: driver version 0.7.57 loaded
>bttv: using 2 buffers with 2080k (4160k total) for capture
>i2c-core.o: i2c core module
>Linux video capture interface: v1.00
>i2c-core.o: driver VES1893 DVB DECODER registered.
>i2c-core.o: driver VES1820 DVB DECODER registered.
>i2c-core.o: driver stv0299 DVB DECODER registered.
>i2c-core.o: driver i2c TV tuner driver registered.
>saa7146_core.o: saa7146(1): bus:0, rev:1, mem:0xc8867000.
>VES1820: attaching VES1820 at 0x12
>i2c-core.o: client [VES1820] registered to adapter [saa7146(1)](pos. 0).
>VES1820: attached to adapter saa7146(1)
>tuner: chip found @ 0x61
>i2c-core.o: client [i2c tv tuner chip] registered to adapter
[saa7146(1)](pos.
>1).
>i2c-core.o: adapter saa7146(1) registered as adapter 0.
>dvb: AV7110  firm f0240009, rtsl b0250014, vid 00010065, app 01010001
>dvb: 1 dvb(s) found!
>

The modules i2c-core and videodev are from the original kernel sources.

The device modules registered the correct major numbers:
# cat /proc/devices 
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 ttyS
  5 cua
  7 vcs
 10 misc
 14 sound
 21 sg
 81 video_capture
128 ptm
136 pts
162 raw
250 DVB

Block devices:
  2 fd
 11 sr

And the card uses a not shared interrupt:
# cat /proc/interrupts 
           CPU0       
  0:     258804          XT-PIC  timer
  1:       9372          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  5:          1          XT-PIC  soundblaster
  8:          1          XT-PIC  rtc
 11:     220664          XT-PIC  eth0
 12:     182790          XT-PIC  PS/2 Mouse
 14:          0          XT-PIC  saa7146(1)
 15:         34          XT-PIC  aic7xxx
NMI:          0 
ERR:          0


Why am I unable to open the device? What is the meaning of the opens return
value EINVAL? Is it a problem with the device itself, or is it a general
problem
of the open system call? I hope the problem does not depend on the kernel
version.


Thanks  Tim


                \\\///   
  Tim Lapawa    (o  -)   lapawa@formfehler.de
-------------oo0-(_)-0oo----------------------
   ,ooo0                 Where do you want
  (     )         0ooo,     to go tomorrow?
---\   (---------(     )----------------------
    \ _ )         )   / 
                 ( _ / 


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe
linux-dvb" as subject.


--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index