From: Mauro Carvalho Chehab <m.chehab@samsung.com>
To: CrazyCat <crazycat69@narod.ru>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH] tda18271-fe: Fix dvb-c standard selection
Date: Sat, 02 Nov 2013 19:21:12 -0200 [thread overview]
Message-ID: <20131102192112.1bc7bbc0@samsung.com> (raw)
In-Reply-To: <5275690A.3080108@narod.ru>
Em Sat, 02 Nov 2013 23:05:14 +0200
CrazyCat <crazycat69@narod.ru> escreveu:
> Fix dvb-c standard selection - qam8 for ANNEX_AC
>
> Signed-off-by: Evgeny Plehov <EvgenyPlehov@ukr.net>
> diff --git a/drivers/media/tuners/tda18271-fe.c b/drivers/media/tuners/tda18271-fe.c
> index 4995b89..6a385c8 100644
> --- a/drivers/media/tuners/tda18271-fe.c
> +++ b/drivers/media/tuners/tda18271-fe.c
> @@ -960,16 +960,12 @@ static int tda18271_set_params(struct dvb_frontend *fe)
> break;
> case SYS_DVBC_ANNEX_B:
> bw = 6000000;
> - /* falltrough */
> + map = &std_map->qam_6;
> + break;
> case SYS_DVBC_ANNEX_A:
> case SYS_DVBC_ANNEX_C:
> - if (bw <= 6000000) {
> - map = &std_map->qam_6;
> - } else if (bw <= 7000000) {
> - map = &std_map->qam_7;
> - } else {
> - map = &std_map->qam_8;
> - }
> + bw = 8000000;
> + map = &std_map->qam_8;
This is wrong, as it breaks for 6MHz-spaced channels, like what's used
in Brazil and Japan.
What happens here is that, if the tuner uses a too wide lowpass filter,
the interference will be higher at the demod, and it may not be able
to decode.
As the bandwidth is already estimated by the DVB frontend core, the
tuners should be adjusted to get the closest filter for a given
bandwidth.
So, the driver is correct (and it is tested under 6MHz spaced channels).
> break;
> default:
> tda_warn("modulation type not supported!\n");
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Cheers,
Mauro
next prev parent reply other threads:[~2013-11-02 21:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-02 21:05 [PATCH] tda18271-fe: Fix dvb-c standard selection CrazyCat
2013-11-02 21:21 ` Mauro Carvalho Chehab [this message]
[not found] ` <52756F4E.3030805@narod.ru>
2013-11-03 0:19 ` Mauro Carvalho Chehab
-- strict thread matches above, loose matches on Subject: below --
2013-11-01 19:31 CrazyCat
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=20131102192112.1bc7bbc0@samsung.com \
--to=m.chehab@samsung.com \
--cc=crazycat69@narod.ru \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox