* [RFC] media: dvb: add SYS_ISDBS3 delivery system
@ 2026-11-11 14:24 Ryuki Maruyama
2026-12-06 9:12 ` Ryuki Maruyama
2026-12-06 9:51 ` Mauro Carvalho Chehab
0 siblings, 2 replies; 5+ messages in thread
From: Ryuki Maruyama @ 2026-11-11 14:24 UTC (permalink / raw)
To: linux-media@vger.kernel.org; +Cc: mchehab@kernel.org, tskd08@gmail.com
Hi,
I'd like to ask for feedback on adding a delivery system for ISDB-S3
before I prepare a patch.
Background
----------
ISDB-S3 (ARIB STD-B44, Rec. ITU-R BO.2098) is the transmission system
used for the 4K/8K satellite broadcasts in Japan, on the BS and the
110-degree-East CS satellites since December 2018. It is a separate
system from ISDB-S (ARIB STD-B20), not an extension of it:
- the frame structure and the TMCC (Transmission and Multiplexing
Configuration Control) are different, the inner code is LDPC, the
roll-off is 0.03, and the modulations go up to 32APSK
- a carrier holds up to 16 streams, each identified by a 16-bit
transmission stream ID: a TS_ID for a TS stream, or a TLV stream ID
for a TLV stream
- each stream is either an MPEG-2 TS or a TLV stream (ITU-R BT.1869,
carrying IP packets), signalled per stream in TMCC; the 4K/8K
services in Japan use TLV with MMT on top
ISDB-S and ISDB-S3 carriers share the same satellite band, so the
frequency alone does not tell the receiver which system to
demodulate.
What exists today
-----------------
There is no ISDB-S3 entry in enum fe_delivery_system. The out-of-tree
driver for the TBS6812 (also known as "PT4K" in Japan,
https://github.com/otya128/tbs6812_drv) reports SYS_ISDBT and
SYS_ISDBS in DTV_ENUM_DELSYS and receives ISDB-S3 through SYS_ISDBS.
It decides the system from the value of DTV_STREAM_ID: values below 8
are relative TS numbers, IDs whose upper 4 bits are 0xB or 0xC are
ISDB-S3 TLV stream IDs, and anything else is an ISDB-S TSID.
This relies on how IDs are allocated in Japan, not on the standard.
Both special ranges overlap the documented ISDB-S TSID range (1 to
65535): TSIDs 1 to 7 would be taken as relative TS numbers, and
0xBxxx and 0xCxxx are valid TSIDs as well. A TS stream inside an
ISDB-S3 carrier has an ordinary TS_ID, which this convention would
treat as ISDB-S. Applications also cannot learn from DTV_ENUM_DELSYS
whether a frontend can receive ISDB-S3 at all.
Proposal
--------
1. Add SYS_ISDBS3 to enum fe_delivery_system. As with SYS_DVBS2 next
to SYS_DVBS, a separate generation gets a separate value. DVB-S2X
reuses SYS_DVBS2 because it extends DVB-S2 (commit 6508a50fe84f
("media: dvb: add DVB-C2 and DVB-S2X parameter values")), which is
not the case for ISDB-S3 and ISDB-S. The Android tuner HAL also
has ISDB-S3 as its own frontend type, next to ISDB-S
(FrontendIsdbs3Settings).
2. Properties for SYS_ISDBS3:
- DTV_FREQUENCY (kHz, as for SYS_ISDBS), DTV_VOLTAGE
- 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
- DTV_STREAM_ID: the 16-bit transmission stream ID (TS_ID or TLV
stream ID) of the stream to output
- read only: DTV_MODULATION and DTV_INNER_FEC (point 4)
The carriers on left-hand circular polarization use intermediate
frequencies above the 950-2150 MHz range that the in-tree ISDB-S
frontend (tc90522) advertises, so drivers would advertise a wider
range.
3. dvb_frontend.c gets SYS_ISDBS3 everywhere it handles SYS_ISDBS:
the DVBv3 type for FE_GET_INFO, the kHz frequency limits and step
size, the default zigzag parameters, the cache defaults, and the
bandwidth calculation (with a roll-off of 0.03; DTV_ROLLOFF is not
used, as no ROLLOFF_* value matches). A carrier holds several
streams, so dvb_frontend_check_parameters() would reject a stream
ID above 0xffff, including NO_STREAM_ID_FILTER, with -EINVAL: the
demodulator outputs one stream at a time and has no unfiltered
output (see question c).
4. The cache defaults for SYS_ISDBS3 set DTV_MODULATION to QAM_AUTO
and DTV_INNER_FEC to FEC_AUTO, and get_frontend() sets them back
while not locked. Once locked, it reports the transmission mode
that carries most of the selected stream's slots. ISDB-S3 can mix
up to 8 modes in a frame, more than the 3 entries of layer[] that
tc90522 uses for the two ISDB-S hierarchies. APSK_16 and APSK_32
already exist, and all 11 nominal code rates of ISDB-S3 already
have FEC_* values. pi/2-BPSK has no value; like tc90522 for the
BPSK of ISDB-S, a driver can report QPSK until one is needed.
5. A stream selected with SYS_ISDBS3 is either TS or TLV. For TS, the
driver feeds the demux as usual. For TLV, the driver calls
dvb_dmx_swfilter_raw(), and the application opens a single TS feed
(for example PID 0x2000 with DMX_OUT_TS_TAP) and reads the DVR
device. The DVR device returns the received TLV packets back to
back; read() boundaries do not follow packet boundaries. PID and
section filters have no meaning for TLV. dvb-usb-v2 also uses
dvb_dmx_swfilter_raw(), for the ATSC-M/H frontend (lg2160) of
mxl111sf, but there the payload type is fixed per frontend. Here
one frontend would switch between TS and raw depending on the
selected stream.
dvb_dmx_swfilter_raw() passes the buffer to demux->feed (feed[0])
without checking that it is an active TS feed. If an application
opens a section filter first, the section callback would be called
through cb.ts. This affects ATSC-M/H today as well, so I would send
a separate fix first that passes the buffer to every TS feed in
feed_list that is in DMX_STATE_GO.
6. Documentation: fe_property_parameters.rst,
frontend-property-satellite-systems.rst (a section like the one for
ISDB-S) and frontend.h.rst.exceptions.
Questions
---------
a. Is it acceptable for one frontend to switch between TS and raw
output depending on the selected stream? If an application retunes
from a TLV stream to a TS stream while the DVR device is open,
should the driver stop the feed, or drop data until the next TS
sync byte?
b. SYS_ATSCMH already outputs raw data, and the delivery system is
the only hint of the format. Is that enough here, or should the
frontend report the output format (TS or TLV) with a read-only
property, since both can appear under SYS_ISDBS3?
c. The documentation says that any stream ID outside the valid range
disables filtering, and DTV_CLEAR sets NO_STREAM_ID_FILTER. In
practice tc90522 writes stream_id & 0xffff for ISDB-S, so
NO_STREAM_ID_FILTER is written to the demodulator as TSID 0xffff.
Rejecting it means an application cannot tune to a carrier whose
stream IDs it does not know yet. Is it fine to reject it in the
core for SYS_ISDBS3, or should the driver select the first stream
listed in TMCC instead?
Compatibility
-------------
Nothing changes for SYS_ISDBS (TSID 1 to 65535 as documented).
Out-of-tree drivers can keep their current convention; an in-tree
driver would use SYS_ISDBS3.
Users
-----
There is no ISDB-S3 driver in mainline today. The out-of-tree TBS6812
driver would be the first user. Today it passes all data, including
ISDB-T and ISDB-S TS, through dvb_dmx_swfilter_raw(), and does not
output TS streams inside an ISDB-S3 carrier. An in-tree version
would have to switch the demux path per stream type as described in
point 5. Its bridge files carry GPL-3.0-or-later notices, so it
cannot be merged as is, and I do not know of a plan to submit it.
That is why I am asking about the uAPI first: it lets drivers and
applications agree on one convention now.
Would you take the uAPI change on its own, as with SYS_DVBC2, or only
together with a driver?
If the direction is fine, I can send patches for frontend.h,
dvb_frontend.c, dvb_demux.c, the documentation above, and libdvbv5 in
v4l-utils.
Thanks,
Ruk Doe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] media: dvb: add SYS_ISDBS3 delivery system
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
1 sibling, 0 replies; 5+ messages in thread
From: Ryuki Maruyama @ 2026-12-06 9:12 UTC (permalink / raw)
To: linux-media@vger.kernel.org
Cc: Mauro Carvalho Chehab, Hans Verkuil, tskd08@gmail.com
Hi Mauro, Hans,
Gentle ping on this RFC from Nov 11, which has not had a reply yet.
Adding Hans to Cc.
The question that decides the next step is whether you would take a
SYS_ISDBS3 uAPI change without an in-tree driver. If you would rather
review code than a proposal, I can send the changes described in the
RFC as patches instead. A short yes or no on the uAPI question would
already help.
Thanks,
Ruk
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] media: dvb: add SYS_ISDBS3 delivery system
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
1 sibling, 1 reply; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2026-12-06 9:51 UTC (permalink / raw)
To: Ryuki Maruyama
Cc: linux-media@vger.kernel.org, mchehab@kernel.org, tskd08@gmail.com,
Hans Verkuil
On Wed, 11 Nov 2026 14:24:09 +0000
Ryuki Maruyama <info@doany.io> wrote:
> Hi,
>
> I'd like to ask for feedback on adding a delivery system for ISDB-S3
> before I prepare a patch.
>
> Background
> ----------
> ISDB-S3 (ARIB STD-B44, Rec. ITU-R BO.2098) is the transmission system
> used for the 4K/8K satellite broadcasts in Japan, on the BS and the
> 110-degree-East CS satellites since December 2018. It is a separate
> system from ISDB-S (ARIB STD-B20), not an extension of it:
>
> - the frame structure and the TMCC (Transmission and Multiplexing
> Configuration Control) are different, the inner code is LDPC, the
> roll-off is 0.03, and the modulations go up to 32APSK
> - a carrier holds up to 16 streams, each identified by a 16-bit
> transmission stream ID: a TS_ID for a TS stream, or a TLV stream ID
> for a TLV stream
> - each stream is either an MPEG-2 TS or a TLV stream (ITU-R BT.1869,
> carrying IP packets), signalled per stream in TMCC; the 4K/8K
> services in Japan use TLV with MMT on top
Currently, DVB subsystem supports only MPEG-2 TS. Other standards like
ATSC3 IP-based is still missing.
>
> ISDB-S and ISDB-S3 carriers share the same satellite band, so the
> frequency alone does not tell the receiver which system to
> demodulate.
>
> What exists today
> -----------------
> There is no ISDB-S3 entry in enum fe_delivery_system. The out-of-tree
> driver for the TBS6812 (also known as "PT4K" in Japan,
> https://github.com/otya128/tbs6812_drv) reports SYS_ISDBT and
> SYS_ISDBS in DTV_ENUM_DELSYS and receives ISDB-S3 through SYS_ISDBS.
> It decides the system from the value of DTV_STREAM_ID: values below 8
> are relative TS numbers, IDs whose upper 4 bits are 0xB or 0xC are
> ISDB-S3 TLV stream IDs, and anything else is an ISDB-S TSID.
>
> This relies on how IDs are allocated in Japan, not on the standard.
Sounds a lot of hacks to me.
> Both special ranges overlap the documented ISDB-S TSID range (1 to
> 65535): TSIDs 1 to 7 would be taken as relative TS numbers, and
> 0xBxxx and 0xCxxx are valid TSIDs as well. A TS stream inside an
> ISDB-S3 carrier has an ordinary TS_ID, which this convention would
> treat as ISDB-S. Applications also cannot learn from DTV_ENUM_DELSYS
> whether a frontend can receive ISDB-S3 at all.
>
> Proposal
> --------
> 1. Add SYS_ISDBS3 to enum fe_delivery_system. As with SYS_DVBS2 next
> to SYS_DVBS, a separate generation gets a separate value. DVB-S2X
> reuses SYS_DVBS2 because it extends DVB-S2 (commit 6508a50fe84f
> ("media: dvb: add DVB-C2 and DVB-S2X parameter values")), which is
> not the case for ISDB-S3 and ISDB-S. The Android tuner HAL also
> has ISDB-S3 as its own frontend type, next to ISDB-S
> (FrontendIsdbs3Settings).
Makes sense, but v4l-utils (libdvbv5) also need updates.
>
> 2. Properties for SYS_ISDBS3:
> - DTV_FREQUENCY (kHz, as for SYS_ISDBS), DTV_VOLTAGE
> - 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?
> - DTV_STREAM_ID: the 16-bit transmission stream ID (TS_ID or TLV
> stream ID) of the stream to output
> - read only: DTV_MODULATION and DTV_INNER_FEC (point 4)
> The carriers on left-hand circular polarization use intermediate
> frequencies above the 950-2150 MHz range that the in-tree ISDB-S
> frontend (tc90522) advertises, so drivers would advertise a wider
> range.
>
> 3. dvb_frontend.c gets SYS_ISDBS3 everywhere it handles SYS_ISDBS:
> the DVBv3 type for FE_GET_INFO, the kHz frequency limits and step
> size, the default zigzag parameters, the cache defaults, and the
> bandwidth calculation (with a roll-off of 0.03; DTV_ROLLOFF is not
> used, as no ROLLOFF_* value matches). A carrier holds several
> streams, so dvb_frontend_check_parameters() would reject a stream
> ID above 0xffff, including NO_STREAM_ID_FILTER, with -EINVAL: the
> demodulator outputs one stream at a time and has no unfiltered
> output (see question c).
We likely need DTV_ROLLOFF to associate bandwidth and symbol rate.
Those can be used on userspace when trying to scan new channels.
> 4. The cache defaults for SYS_ISDBS3 set DTV_MODULATION to QAM_AUTO
> and DTV_INNER_FEC to FEC_AUTO, and get_frontend() sets them back
> while not locked. Once locked, it reports the transmission mode
> that carries most of the selected stream's slots. ISDB-S3 can mix
> up to 8 modes in a frame, more than the 3 entries of layer[] that
> tc90522 uses for the two ISDB-S hierarchies. APSK_16 and APSK_32
> already exist, and all 11 nominal code rates of ISDB-S3 already
> have FEC_* values. pi/2-BPSK has no value; like tc90522 for the
> BPSK of ISDB-S, a driver can report QPSK until one is needed.
Hmm... we need to double-check how expanding layer[] can be done
without breaking backward-compatibility.
> 5. A stream selected with SYS_ISDBS3 is either TS or TLV.
We need a DTV property for stream type (MPEG-TS, TLV or ALP - when
we add ATSC/3 support).
> For TS, the
> driver feeds the demux as usual. For TLV, the driver calls
> dvb_dmx_swfilter_raw(), and the application opens a single TS feed
> (for example PID 0x2000 with DMX_OUT_TS_TAP) and reads the DVR
> device. The DVR device returns the received TLV packets back to
> back; read() boundaries do not follow packet boundaries. PID and
> section filters have no meaning for TLV. dvb-usb-v2 also uses
> dvb_dmx_swfilter_raw(), for the ATSC-M/H frontend (lg2160) of
> mxl111sf, but there the payload type is fixed per frontend. Here
> one frontend would switch between TS and raw depending on the
> selected stream.
I'm not convinced on using dvb_dmx_swfilter_raw() instead of having
a TLV decoder in Kernel. If we move this to userspace, we need a
decoder at libdvbv5.
> dvb_dmx_swfilter_raw() passes the buffer to demux->feed (feed[0])
> without checking that it is an active TS feed. If an application
> opens a section filter first, the section callback would be called
> through cb.ts. This affects ATSC-M/H today as well, so I would send
> a separate fix first that passes the buffer to every TS feed in
> feed_list that is in DMX_STATE_GO.
>
> 6. Documentation: fe_property_parameters.rst,
> frontend-property-satellite-systems.rst (a section like the one for
> ISDB-S) and frontend.h.rst.exceptions.
>
> Questions
> ---------
> a. Is it acceptable for one frontend to switch between TS and raw
> output depending on the selected stream? If an application retunes
> from a TLV stream to a TS stream while the DVR device is open,
> should the driver stop the feed, or drop data until the next TS
> sync byte?
Good questions. I'm not familiar with TLV (or ALP) IP-based streams,
but I would assume it may also have multiple different virtual channels
on it. If so, at some point, the stream IDs have to be filtered
somehow.
I prefer to keep the dvb stream filtering in kernel, as it reduces the
amount of data copied to userspace. Also, it makes easier to support
in-hardware filtering. TV sets and STBs usually have dedicated hardware
for those. This is not so common on PC receivers, but I won't doubt
that some hardware could come with hardware filtering.
> b. SYS_ATSCMH already outputs raw data, and the delivery system is
> the only hint of the format. Is that enough here, or should the
> frontend report the output format (TS or TLV) with a read-only
> property, since both can appear under SYS_ISDBS3?
ATSCMH is not a good example. It was meant to a mobile ATSC. There is
just one driver supporting it for some obscure hardware.
> c. The documentation says that any stream ID outside the valid range
> disables filtering, and DTV_CLEAR sets NO_STREAM_ID_FILTER. In
> practice tc90522 writes stream_id & 0xffff for ISDB-S, so
> NO_STREAM_ID_FILTER is written to the demodulator as TSID 0xffff.
> Rejecting it means an application cannot tune to a carrier whose
> stream IDs it does not know yet. Is it fine to reject it in the
> core for SYS_ISDBS3, or should the driver select the first stream
> listed in TMCC instead?
Let's first decide about how TSV data will be passed.
>
> Compatibility
> -------------
> Nothing changes for SYS_ISDBS (TSID 1 to 65535 as documented).
> Out-of-tree drivers can keep their current convention; an in-tree
> driver would use SYS_ISDBS3.
>
> Users
> -----
> There is no ISDB-S3 driver in mainline today. The out-of-tree TBS6812
> driver would be the first user. Today it passes all data, including
> ISDB-T and ISDB-S TS, through dvb_dmx_swfilter_raw(), and does not
> output TS streams inside an ISDB-S3 carrier. An in-tree version
> would have to switch the demux path per stream type as described in
> point 5. Its bridge files carry GPL-3.0-or-later notices, so it
> cannot be merged as is, and I do not know of a plan to submit it.
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
> That is why I am asking about the uAPI first: it lets drivers and
> applications agree on one convention now.
>
> Would you take the uAPI change on its own, as with SYS_DVBC2, or only
> together with a driver?
We do prefer to do it together with driver, specially on cases like
this where it is not just a bunch of new properties to be added, but
it also involves handling different stream types.
> If the direction is fine, I can send patches for frontend.h,
> dvb_frontend.c, dvb_demux.c, the documentation above, and libdvbv5 in
> v4l-utils.
We can discuss using a RFC patch series for the API, but merging
without a driver doesn't sound a good idea.
Thanks,
Mauro
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] media: dvb: add SYS_ISDBS3 delivery system
2026-12-06 9:51 ` Mauro Carvalho Chehab
@ 2026-12-06 10:03 ` Ryuki Maruyama
2026-12-06 12:49 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 5+ messages in thread
From: Ryuki Maruyama @ 2026-12-06 10:03 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: linux-media@vger.kernel.org, Mauro Carvalho Chehab,
tskd08@gmail.com, Hans Verkuil
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.
> 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.
> 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.
> 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?
> 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
- cxd2857er.c is GPL-2.0-or-later (its SPDX line is misspelled as
"SPX-License-Identifier" and would need fixing)
- cxd2857.h and cxd2857_priv.h have no notice
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.
> 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.
Thanks,
Ruk
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] media: dvb: add SYS_ISDBS3 delivery system
2026-12-06 10:03 ` Ryuki Maruyama
@ 2026-12-06 12:49 ` Mauro Carvalho Chehab
0 siblings, 0 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2026-12-06 12:49 UTC (permalink / raw)
To: Ryuki Maruyama
Cc: linux-media@vger.kernel.org, Mauro Carvalho Chehab,
tskd08@gmail.com, Hans Verkuil
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-12-06 12:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox