public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [linux-dvb] opening dvr for writing
@ 2008-06-13 15:36 Steven Dorigotti
  2008-06-13 21:16 ` Andrea
  2008-06-16  9:09 ` Steven Dorigotti
  0 siblings, 2 replies; 4+ messages in thread
From: Steven Dorigotti @ 2008-06-13 15:36 UTC (permalink / raw)
  To: linux-dvb

Hello,

   I am trying to write data to the dvr device in order to playback  
recorded streams back on the frontend device for testing purposes.

   I have tried the following test taken from linuxtv-dvb- 
apps-1.1.1.tar.gz (as well as others):

# ./test_dvr_play ../james.mpg 33 34
Playing '../james.mpg', video PID 0x0021, audio PID 0x0022
Failed to open '/dev/dvb/adapter0/dvr0': 22 Invalid argument

both on mips (custom) and x86 (Ubuntu Etch) architectures with the  
following hardware: DiB0070 and wt220u.

   If the open() mode is changed to RDWR instead of WRONLY, errno  
changes to "Operation not supported".

   Is this a known bug and is there a patch available? I have done  
similar tests with a much older version of linux-dvb in the past with  
no problems.

cheers,
Steven


_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-dvb] opening dvr for writing
  2008-06-13 15:36 [linux-dvb] opening dvr for writing Steven Dorigotti
@ 2008-06-13 21:16 ` Andrea
  2008-06-13 21:21   ` Andrea
  2008-06-16  9:09 ` Steven Dorigotti
  1 sibling, 1 reply; 4+ messages in thread
From: Andrea @ 2008-06-13 21:16 UTC (permalink / raw)
  To: Steven Dorigotti; +Cc: linux-dvb

Steven Dorigotti wrote:
> Hello,
> 
> 
>    If the open() mode is changed to RDWR instead of WRONLY, errno  
> changes to "Operation not supported".

The only 2 supported modes are O_RDONLY and O_WRONLY.

in dmxdev.c around line 160.

Andrea

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-dvb] opening dvr for writing
  2008-06-13 21:16 ` Andrea
@ 2008-06-13 21:21   ` Andrea
  0 siblings, 0 replies; 4+ messages in thread
From: Andrea @ 2008-06-13 21:21 UTC (permalink / raw)
  Cc: linux-dvb

Andrea wrote:
> Steven Dorigotti wrote:
>> Hello,
>>
>>
>>    If the open() mode is changed to RDWR instead of WRONLY, errno  
>> changes to "Operation not supported".
> 
> The only 2 supported modes are O_RDONLY and O_WRONLY.
> 
> in dmxdev.c around line 160.

sorry...

... unless the device has the capability DMXDEV_CAP_DUPLEX which I can't really see what it is.

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-dvb] opening dvr for writing
  2008-06-13 15:36 [linux-dvb] opening dvr for writing Steven Dorigotti
  2008-06-13 21:16 ` Andrea
@ 2008-06-16  9:09 ` Steven Dorigotti
  1 sibling, 0 replies; 4+ messages in thread
From: Steven Dorigotti @ 2008-06-16  9:09 UTC (permalink / raw)
  To: linux-dvb


[-- Attachment #1.1: Type: text/plain, Size: 1505 bytes --]


Thankyou for the reply, but the original test (in linuxtv-dvb- 
apps-1.1.1.tar.gz) was run with O_WRONLY and I still got "Invalid  
argument".

Has anyone else had problems opening DVR for writing? (test case shown  
below).

thanks,
Steven

>> The only 2 supported modes are O_RDONLY and O_WRONLY.
>> in dmxdev.c around line 160.
>
> sorry...
>
> ... unless the device has the capability DMXDEV_CAP_DUPLEX which I  
> can't really see what it is.
>>
>>> Hello,
>>>
>>>   I am trying to write data to the dvr device in order to playback
>>> recorded streams back on the frontend device for testing purposes.
>>>
>>>   I have tried the following test taken from linuxtv-dvb-
>>> apps-1.1.1.tar.gz (as well as others):
>>>
>>> # ./test_dvr_play ../james.mpg 33 34
>>> Playing '../james.mpg', video PID 0x0021, audio PID 0x0022
>>> Failed to open '/dev/dvb/adapter0/dvr0': 22 Invalid argument
>>>
>>> both on mips (custom) and x86 (Ubuntu Etch) architectures with the
>>> following hardware: DiB0070 and wt220u.
>>>
>>>   If the open() mode is changed to RDWR instead of WRONLY, errno
>>> changes to "Operation not supported".
>>>
>>>   Is this a known bug and is there a patch available? I have done
>>> similar tests with a much older version of linux-dvb in the past  
>>> with
>>> no problems.
>>>
>>> cheers,
>>> Steven
>>>
>>>
>>> _______________________________________________
>>> linux-dvb mailing list
>>> linux-dvb@linuxtv.org
>>> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
>>>
>>

[-- Attachment #1.2: Type: text/html, Size: 2212 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-16  9:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-13 15:36 [linux-dvb] opening dvr for writing Steven Dorigotti
2008-06-13 21:16 ` Andrea
2008-06-13 21:21   ` Andrea
2008-06-16  9:09 ` Steven Dorigotti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox