public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrea <mariofutire@googlemail.com>
To: Florian Lohoff <flo@rfc822.org>
Cc: linux-dvb@linuxtv.org
Subject: Re: [linux-dvb] Help using DMX_SET_BUFFER_SIZE
Date: Sat, 01 Mar 2008 09:11:26 +0000	[thread overview]
Message-ID: <47C91DBE.4050409@googlemail.com> (raw)
In-Reply-To: <20080301085538.GA4003@paradigm.rfc822.org>

Florian Lohoff wrote:
> On Sat, Mar 01, 2008 at 12:20:05AM +0000, Andrea wrote:
>> on the dvr (I think), but it does not make much of a change. The ioctl call returns success.
>> I've printed a lot of debug output (adding a few dprintk) and this is what I see when I run gnutv.
>> Now, I set the buffer to 1024 * 1024 which is nowhere in the log.
>> I cannot see in the log the 2 functions (demux and dvr) handling this ioctl call:
>> dvb_demux_do_ioctl and dvb_dvr_do_ioctl (I've added some printk as well).
> 
> In 2.6.25-rc3 the dvr kernel side looks like this:
> 
> 1015         switch (cmd) {
> 1016         case DMX_SET_BUFFER_SIZE:
> 1017                 // FIXME: implement
> 1018                 ret = 0;
> 1019                 break;
> 
> i guess its clear why it doesnt make a difference ;)
> 
> Flo

Yes I had noticed that and I was trying to see what I can do.
My problem is that I replace the // FIXME with a printk() and it does not get called
How is it supposed to work?

I open /dev/dvb/adapter0/dvr0, I get back a file descriptor and the I call the ioctl with that file 
descriptor.

This code comes from gnutv_data.c plus my additional code

		// open dvr device
		dvrfd = dvbdemux_open_dvr(adapter_id, 0, 1, 0);
		if (dvrfd < 0) {
			fprintf(stderr, "Failed to open DVR device\n");
			exit(1);
		}

		if (buffer_size > 0)
		{
		  int res = dvbdemux_set_buffer(dvrfd, buffer_size);
		  if (res < 0) {
		    fprintf(stderr, "Failed to set ring buffer size\n");
		    exit(1);
		  }
		}

Regardless of what is implemented or not, would that be correct?

Andrea

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

  reply	other threads:[~2008-03-01  9:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-01  0:20 [linux-dvb] Help using DMX_SET_BUFFER_SIZE Andrea
2008-03-01  8:55 ` Florian Lohoff
2008-03-01  9:11   ` Andrea [this message]
2008-03-02 23:08   ` Andrea
     [not found] <mailman.7.1204534746.20845.linux-dvb@linuxtv.org>
2008-03-03 19:49 ` Andrea

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47C91DBE.4050409@googlemail.com \
    --to=mariofutire@googlemail.com \
    --cc=flo@rfc822.org \
    --cc=linux-dvb@linuxtv.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox