All of lore.kernel.org
 help / color / mirror / Atom feed
From: Antti Palosaari <crope@iki.fi>
To: linux-media <linux-media@vger.kernel.org>
Subject: DVB USB: change USB stream settings dynamically
Date: Sat, 26 May 2012 01:47:45 +0300	[thread overview]
Message-ID: <4FC00C11.10403@iki.fi> (raw)

I was planning make DVB USB be able to switch USB streaming parameters 
dynamically. I mean [struct usb_data_stream_properties] parameters.

Currently it reserves USB streaming buffers when device is plugged. Own 
buffer is reserved for each frontend, which means currently 1-3 
streaming buffers depending on device.

Basically I see USB TS as a DVB USB device property - not property of 
frontend. USB TS is interface between computer and USB-bridge and amount 
of parallel USB TS or TS configurations depends on USB-bridge 
capabilities. Sometimes used USB TS could be configured to fit better 
used stream. Smaller buffers for the narrow radio stream and biggest 
buffers for the wide DVB-S2 stream.

I was wondering how to resolve that situation? It is not very big 
problem currently but I still want to make it better as there is surely 
coming new devices that needs better control for the USB streaming 
parameters. Currently there is mxl111sf driver which seems to offer 6 
different streaming configurations but AFAIK only three is currently 
used as there is 3 frontends and each one has own streaming parameters - 
and buffers - even only one can be used at the time.

1. Configure streaming parameters (alloc buffers) every time when 
streaming is started? IIRC that causes some problems lately for em28xx 
as memory goes dis-coherent and buffers cannot allocated.

2. Allocate buffers (streaming configuration) for all needed device use 
configurations at very beginning. Then add some logic to map streaming 
config to frontend at runtime. That is quite near what mxl111sf does 
currently.

regards
Antti
-- 
http://palosaari.fi/

             reply	other threads:[~2012-05-25 22:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-25 22:47 Antti Palosaari [this message]
2012-05-27 13:10 ` DVB USB: change USB stream settings dynamically Antti Palosaari
2012-05-27 16:43   ` Gianluca Gennari
2012-05-27 23:40     ` Antti Palosaari

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=4FC00C11.10403@iki.fi \
    --to=crope@iki.fi \
    --cc=linux-media@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.