From: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
To: Ryuki Maruyama <info@doany.io>
Cc: "linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
"tskd08@gmail.com" <tskd08@gmail.com>,
Hans Verkuil <hverkuil@kernel.org>
Subject: Re: [RFC] media: dvb: add SYS_ISDBS3 delivery system
Date: Sun, 6 Dec 2026 13:49:49 +0100 [thread overview]
Message-ID: <20261206134949.1f8a6d49@foz.lan> (raw)
In-Reply-To: <20261206-isdbs3-rfc-reply1-8d41b7c2e9f3@doany.io>
On Sun, 6 Dec 2026 10:03:53 +0000
Ryuki Maruyama <info@doany.io> wrote:
> Hi Mauro,
>
> Thanks for the review. Answers inline; I trimmed the parts without
> questions.
>
> On Sun, 6 Dec 2026 10:51:04 +0100
> Mauro Carvalho Chehab <mchehab+huawei@kernel.org> wrote:
> > Makes sense, but v4l-utils (libdvbv5) also need updates.
>
> Yes, the RFC series would include the libdvbv5 changes.
>
> >> - DTV_SYMBOL_RATE: ISDB-S3 does not fix the symbol rate; the cache
> >> default would be the example rate of ARIB STD-B44 (33756100),
> >> just as SYS_ISDBS defaults to 28860000
> >
> > How is it controlled? via bandwidth?
>
> The application sets DTV_SYMBOL_RATE, as for DVB-S2. The bandwidth
> is derived from it. The carriers in Japan use the example rate, which
> is why I proposed it as the default.
Ok, makes sense, if DTV_SYMBOL_RATE is zero, to use default, although
the best would be for programs (and libdvbv5) to always set it, as
this is something that can be changed anytime by the carrier.
>
> > We likely need DTV_ROLLOFF to associate bandwidth and symbol rate.
>
> Agreed. ISDB-S3 always uses a roll-off of 0.03, and there is no
> ROLLOFF_* value for it. I would add ROLLOFF_3, use it in the
> bandwidth calculation and report it through DTV_ROLLOFF.
Ok.
>
> > Hmm... we need to double-check how expanding layer[] can be done
> > without breaking backward-compatibility.
>
> The proposal does not expand layer[]. DTV_MODULATION and
> DTV_INNER_FEC would report only the mode that carries most of the
> selected stream, and layer[] would not be used for SYS_ISDBS3.
In principle, sounds ok, but only if all hardware can autodetect
and autodetect is mandatory at ARIB docs.
> > We need a DTV property for stream type (MPEG-TS, TLV or ALP - when
> > we add ATSC/3 support).
>
> Agreed. A read-only property, set by the driver once it is locked,
> with values for MPEG-TS and TLV, and later ALP.
>
> > I prefer to keep the dvb stream filtering in kernel, as it reduces the
> > amount of data copied to userspace.
>
> Some background on TLV for this. The demodulator selects one stream
> of the carrier by DTV_STREAM_ID, so only one TS or TLV stream
> reaches the host. A TLV stream (ITU-R BT.1869) is a sequence of
> variable-length packets. Each packet starts with the sync byte 0x7F,
> a packet type (IPv4, IPv6, header-compressed IP, transmission control
> signal or null) and a 16-bit length. The services in it are IP flows
> (MMT over UDP). A filter inside the stream would select packets by
> packet type, and then by the context ID for header-compressed IP or
> by the IP and UDP fields for plain IPv4 and IPv6 packets, not by
> PID.
>
> So, to keep filtering in the kernel, would a new demux filter type
> that splits the stream into TLV packets and selects them by packet
> type, and then by context ID or IP/UDP fields, be the direction you
> have in mind?
Yes, something like that. The DVB subsystem has already support for
a network adapter. It could make sense to have the stream arriving
via such adapter.
> > Can you ask its authors to extend its license to GPL-2.0?
> >
> > On a quick search, it sounds that there is a driver for such hardware
> > under GPLv2:
> > https://github.com/otya128/tbs6812_drv/blob/master/LICENSE
>
> The LICENSE file there is GPL-2.0, but the per-file notices differ:
>
> - the tbsecp3 bridge files say "version 3 of the License, or (at
> your option) any later version", except tbsecp3-asi.c, which has
> no notice
Ok. If the author of the bridge acks and the major contributors, this
can be changed.
> - cxd2857er.c is GPL-2.0-or-later (its SPDX line is misspelled as
> "SPX-License-Identifier" and would need fixing)
OK.
> - cxd2857.h and cxd2857_priv.h have no notice
Without an specific license, IMHO the project license applies. Also,
as cxd2857er.c is GPL-2.0 compatible, the original intent were
probably to release it at the same license.
> The bridge code comes from TBS's own out-of-tree tbsecp3 driver,
> which has the same GPLv3 notices. Its MODULE_AUTHOR is Luis Alves,
> so a relicense would need the repository author, Luis Alves and
> TBS, after checking who else holds copyright. I will ask them and
> report back.
That sounds the right way to do.
Funny enough, https://github.com/otya128/tbs6812_drv/blob/master/tbsecp3-core.c
shows:
MODULE_LICENSE("GPL");
Which is GPLv2:
https://docs.kernel.org/process/license-rules.html#id1
At minimum, there is a licensing issue there, as there is a
conflict between the license header and MODULE_LICENSE().
GPLv3 would require "Proprietary", as license is not compatible with
GPLv2.
> > We can discuss using a RFC patch series for the API, but merging
> > without a driver doesn't sound a good idea.
>
> Understood. I will hold the uAPI until there is a driver to go with
> it, and send the RFC series once the license question is settled.
Ok, thanks!
Thanks,
Mauro
prev parent reply other threads:[~2026-12-06 12:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 14:24 [RFC] media: dvb: add SYS_ISDBS3 delivery system Ryuki Maruyama
2026-12-06 9:12 ` Ryuki Maruyama
2026-12-06 9:51 ` Mauro Carvalho Chehab
2026-12-06 10:03 ` Ryuki Maruyama
2026-12-06 12:49 ` Mauro Carvalho Chehab [this message]
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=20261206134949.1f8a6d49@foz.lan \
--to=mchehab+huawei@kernel.org \
--cc=hverkuil@kernel.org \
--cc=info@doany.io \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=tskd08@gmail.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