linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Antti Palosaari <crope@iki.fi>
To: Mauro Carvalho Chehab <mchehab@redhat.com>,
	linux-media <linux-media@vger.kernel.org>
Subject: Q: c->bandwidth_hz = (c->symbol_rate * rolloff) / 100
Date: Sun, 12 Aug 2012 03:22:39 +0300	[thread overview]
Message-ID: <5026F74F.5060606@iki.fi> (raw)

Hellou

I saw there is nowadays logic in dvb-frontend which calculates 
bandwidth_hz value in cache. Calculation formula seems to be correct. 
But that makes me wonder if that is wise as it gives occupied bandwidth 
instead of nominal. For example I have typical DVB-C annex A, 8 MHz 
bandwidth, symbol rate 6875000 and roll-off factor 0.15. That gives 
calculation result is 7 906 250 Hz for nominal 8 000 000 Hz channel.

This value is used only by tuner. Only visible effect is thus every 
tuner driver should use if statement to compare to find out nominal 
value as tuner chips usually configures low-pass filter steps of 8/7/6/5 
MHz.

For me it sounds better if tuner just gets nominal bandwidth - maybe 
calculating real used bw could be nice too as it is possible to return 
userspace.

Shortly: I see it better to give nominal RF channel value for tuner.

regards
Antti

-- 
http://palosaari.fi/

             reply	other threads:[~2012-08-12  0:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-12  0:22 Antti Palosaari [this message]
2012-08-12  1:24 ` Q: c->bandwidth_hz = (c->symbol_rate * rolloff) / 100 Mauro Carvalho Chehab

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=5026F74F.5060606@iki.fi \
    --to=crope@iki.fi \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@redhat.com \
    /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;
as well as URLs for NNTP newsgroup(s).