From: Akihiro TSUKADA <tskd08@gmail.com>
To: Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: linux-media@vger.kernel.org, james.hogan@imgtec.com
Subject: Re: [PATCH 3/4] tc90522: add driver for Toshiba TC90522 quad demodulator
Date: Mon, 18 Aug 2014 03:24:29 +0900 [thread overview]
Message-ID: <53F0F35D.2090702@gmail.com> (raw)
In-Reply-To: <20140815130924.72029bfd.m.chehab@samsung.com>
On 2014年08月16日 01:09, Mauro Carvalho Chehab wrote:
>> +++ b/drivers/media/dvb-frontends/tc90522.c
............
>> +static int tc90522s_get_frontend(struct dvb_frontend *fe)
>> +{
.............
>> + c->delivery_system = SYS_ISDBS;
>> + c->symbol_rate = 28860000;
>
> Hmm... symbol rate is fixed? That looks weird on my eyes.
Though I may be totally wrong,
I set it to 28.86M because ARIB STD B20 (section 2.3) defines
the speed of the modulated carrier signal be 28.860Mbaud.
But carrier is splitted into 48 slots and
they are assigned to multiple TS's, which are modulated with
(one of or a combination of) either 8PSK or QPSK or BPSK.
Dummy slots are included in the case of QPSK/BPSK.
The output TS is chosen by TS_ID.
Should I set c->symbol_rate to
(# of slots assigned to the output TS)/48 * 28.86Mbaud
?
>> +static int tc90522t_get_frontend(struct dvb_frontend *fe)
>> +{
>> + static const fe_transmit_mode_t tm_conv[] = {
>> + TRANSMISSION_MODE_2K,
>> + TRANSMISSION_MODE_4K,
>> + TRANSMISSION_MODE_8K, 0
>
> Better to put the final 0 on a separate line, to be consistent.
>
> I would also move those tables out of get_frontend, as this improves
> readability.
Do "those tables" include generally other "static const" tables in other functions?
there are lots of small, function-scoped const tables which define register values
and just used in one function, like the following ones.
>> +static int tc90522_set_frontend(struct dvb_frontend *fe)
>> +{
>> + static const struct reg_val reset_sat = { 0x03, 0x01 };
>> + static const struct reg_val reset_ter = { 0x01, 0x40 };
>> + state = fe->demodulator_priv;
>> +
>> + if (fe->ops.tuner_ops.set_params)
>> + ret = fe->ops.tuner_ops.set_params(fe);
>
> Hmm... I'm not seeing any part of the driver parsing the ISDB
> parameters (except for the frequency).
(and TS_ID, layers).
As this demod looks into TMCC and adjusts lots of parameters automatically,
with preset defaults (for Japanese ISDB-S/T).
Thus the frequency is the minimum and sufficient parameter to demodulate.
next prev parent reply other threads:[~2014-08-17 19:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-14 15:43 [PATCH 0/4] dvb: Add support for PT3 ISDB-S/T card tskd08
2014-07-14 15:43 ` [PATCH 1/4] mxl301rf: add driver for MaxLinear MxL301RF OFDM tuner tskd08
2014-07-14 15:43 ` [PATCH 2/4] qm1d1c0042: add driver for Sharp QM1D1C0042 8PSK tuner tskd08
2014-07-14 15:43 ` [PATCH 3/4] tc90522: add driver for Toshiba TC90522 quad demodulator tskd08
2014-07-14 15:43 ` [PATCH 4/4] pt3: add support for Earthsoft PT3 ISDB-S/T receiver card tskd08
2014-08-15 16:17 ` Mauro Carvalho Chehab
2014-08-17 19:29 ` Akihiro TSUKADA
2014-08-15 16:09 ` [PATCH 3/4] tc90522: add driver for Toshiba TC90522 quad demodulator Mauro Carvalho Chehab
2014-08-17 18:24 ` Akihiro TSUKADA [this message]
2014-08-15 15:55 ` [PATCH 2/4] qm1d1c0042: add driver for Sharp QM1D1C0042 8PSK tuner Mauro Carvalho Chehab
2014-08-15 15:50 ` [PATCH 1/4] mxl301rf: add driver for MaxLinear MxL301RF OFDM tuner Mauro Carvalho Chehab
2014-08-17 16:47 ` Akihiro TSUKADA
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=53F0F35D.2090702@gmail.com \
--to=tskd08@gmail.com \
--cc=james.hogan@imgtec.com \
--cc=linux-media@vger.kernel.org \
--cc=m.chehab@samsung.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).