* [PATCH 0/2] Add FEC rates, S2X modulations and 64K transmission
@ 2017-12-21 20:23 Daniel Scheller
2017-12-21 20:23 ` [PATCH 1/2] media: dvb_frontend: add FEC modes, " Daniel Scheller
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Daniel Scheller @ 2017-12-21 20:23 UTC (permalink / raw)
To: linux-media, mchehab, mchehab; +Cc: rjkm
From: Daniel Scheller <d.scheller@gmx.net>
As the DVB API is bumped to 5.11 for the next cycle.
dddvb brings a few additional FEC rates (1/4 and 1/3), 64/128/256APSK
modulations (DVB-S2X) and the 64K transmission mode. These two rather
trivial patches bring them to mainline, and puts these missing bits
into the stv0910's get_frontend() callback (FEC 1/4 and 1/3 are handled
throughout the rest of the demod driver already).
Let's have these enums as a part of DVB core 5.11.
Daniel Scheller (2):
media: dvb_frontend: add FEC modes, S2X modulations and 64K
transmission
media: dvb-frontends/stv0910: report FEC 1/4 and 1/3 in get_frontend()
Documentation/media/frontend.h.rst.exceptions | 6 ++++++
drivers/media/dvb-frontends/stv0910.c | 2 +-
include/uapi/linux/dvb/frontend.h | 13 +++++++++++++
3 files changed, 20 insertions(+), 1 deletion(-)
--
2.13.6
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] media: dvb_frontend: add FEC modes, S2X modulations and 64K transmission
2017-12-21 20:23 [PATCH 0/2] Add FEC rates, S2X modulations and 64K transmission Daniel Scheller
@ 2017-12-21 20:23 ` Daniel Scheller
2017-12-21 20:23 ` [PATCH 2/2] media: dvb-frontends/stv0910: report FEC 1/4 and 1/3 in get_frontend() Daniel Scheller
2018-01-06 12:08 ` [PATCH 0/2] Add FEC rates, S2X modulations and 64K transmission Daniel Scheller
2 siblings, 0 replies; 4+ messages in thread
From: Daniel Scheller @ 2017-12-21 20:23 UTC (permalink / raw)
To: linux-media, mchehab, mchehab; +Cc: rjkm
From: Daniel Scheller <d.scheller@gmx.net>
Add 1/4 and 1/3 FEC ratios, 64/128/256-APSK S2X modulations and 64K
transmission mode. Update relevant doc items aswell.
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
---
Documentation/media/frontend.h.rst.exceptions | 6 ++++++
include/uapi/linux/dvb/frontend.h | 13 +++++++++++++
2 files changed, 19 insertions(+)
diff --git a/Documentation/media/frontend.h.rst.exceptions b/Documentation/media/frontend.h.rst.exceptions
index f7c4df620a52..ae1148be0a39 100644
--- a/Documentation/media/frontend.h.rst.exceptions
+++ b/Documentation/media/frontend.h.rst.exceptions
@@ -84,6 +84,9 @@ ignore symbol APSK_16
ignore symbol APSK_32
ignore symbol DQPSK
ignore symbol QAM_4_NR
+ignore symbol APSK_64
+ignore symbol APSK_128
+ignore symbol APSK_256
ignore symbol SEC_VOLTAGE_13
ignore symbol SEC_VOLTAGE_18
@@ -117,6 +120,8 @@ ignore symbol FEC_AUTO
ignore symbol FEC_3_5
ignore symbol FEC_9_10
ignore symbol FEC_2_5
+ignore symbol FEC_1_4
+ignore symbol FEC_1_3
ignore symbol TRANSMISSION_MODE_AUTO
ignore symbol TRANSMISSION_MODE_1K
@@ -129,6 +134,7 @@ ignore symbol TRANSMISSION_MODE_C1
ignore symbol TRANSMISSION_MODE_C3780
ignore symbol TRANSMISSION_MODE_2K
ignore symbol TRANSMISSION_MODE_8K
+ignore symbol TRANSMISSION_MODE_64K
ignore symbol GUARD_INTERVAL_AUTO
ignore symbol GUARD_INTERVAL_1_128
diff --git a/include/uapi/linux/dvb/frontend.h b/include/uapi/linux/dvb/frontend.h
index 4f9b4551c534..227268a657cd 100644
--- a/include/uapi/linux/dvb/frontend.h
+++ b/include/uapi/linux/dvb/frontend.h
@@ -296,6 +296,8 @@ enum fe_spectral_inversion {
* @FEC_3_5: Forward Error Correction Code 3/5
* @FEC_9_10: Forward Error Correction Code 9/10
* @FEC_2_5: Forward Error Correction Code 2/5
+ * @FEC_1_4: Forward Error Correction Code 1/4
+ * @FEC_1_3: Forward Error Correction Code 1/3
*
* Please note that not all FEC types are supported by a given standard.
*/
@@ -313,6 +315,8 @@ enum fe_code_rate {
FEC_3_5,
FEC_9_10,
FEC_2_5,
+ FEC_1_4,
+ FEC_1_3,
};
/**
@@ -331,6 +335,9 @@ enum fe_code_rate {
* @APSK_32: 32-APSK modulation
* @DQPSK: DQPSK modulation
* @QAM_4_NR: 4-QAM-NR modulation
+ * @APSK_64: 64-APSK modulation
+ * @APSK_128: 128-APSK modulation
+ * @APSK_256: 256-APSK modulation
*
* Please note that not all modulations are supported by a given standard.
*
@@ -350,6 +357,9 @@ enum fe_modulation {
APSK_32,
DQPSK,
QAM_4_NR,
+ APSK_64,
+ APSK_128,
+ APSK_256,
};
/**
@@ -374,6 +384,8 @@ enum fe_modulation {
* Single Carrier (C=1) transmission mode (DTMB only)
* @TRANSMISSION_MODE_C3780:
* Multi Carrier (C=3780) transmission mode (DTMB only)
+ * @TRANSMISSION_MODE_64K:
+ * Transmission mode 64K
*
* Please note that not all transmission modes are supported by a given
* standard.
@@ -388,6 +400,7 @@ enum fe_transmit_mode {
TRANSMISSION_MODE_32K,
TRANSMISSION_MODE_C1,
TRANSMISSION_MODE_C3780,
+ TRANSMISSION_MODE_64K,
};
/**
--
2.13.6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] media: dvb-frontends/stv0910: report FEC 1/4 and 1/3 in get_frontend()
2017-12-21 20:23 [PATCH 0/2] Add FEC rates, S2X modulations and 64K transmission Daniel Scheller
2017-12-21 20:23 ` [PATCH 1/2] media: dvb_frontend: add FEC modes, " Daniel Scheller
@ 2017-12-21 20:23 ` Daniel Scheller
2018-01-06 12:08 ` [PATCH 0/2] Add FEC rates, S2X modulations and 64K transmission Daniel Scheller
2 siblings, 0 replies; 4+ messages in thread
From: Daniel Scheller @ 2017-12-21 20:23 UTC (permalink / raw)
To: linux-media, mchehab, mchehab; +Cc: rjkm
From: Daniel Scheller <d.scheller@gmx.net>
The first two missing FECs in the modcod2fec fe_code_rate table were 1/4
and 1/3. Add them as they're now defined by the API.
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
---
drivers/media/dvb-frontends/stv0910.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/dvb-frontends/stv0910.c b/drivers/media/dvb-frontends/stv0910.c
index a8c99f41478b..7cf90d435083 100644
--- a/drivers/media/dvb-frontends/stv0910.c
+++ b/drivers/media/dvb-frontends/stv0910.c
@@ -1551,7 +1551,7 @@ static int get_frontend(struct dvb_frontend *fe,
APSK_32,
};
const enum fe_code_rate modcod2fec[0x20] = {
- FEC_NONE, FEC_NONE, FEC_NONE, FEC_2_5,
+ FEC_NONE, FEC_1_4, FEC_1_3, FEC_2_5,
FEC_1_2, FEC_3_5, FEC_2_3, FEC_3_4,
FEC_4_5, FEC_5_6, FEC_8_9, FEC_9_10,
FEC_3_5, FEC_2_3, FEC_3_4, FEC_5_6,
--
2.13.6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Add FEC rates, S2X modulations and 64K transmission
2017-12-21 20:23 [PATCH 0/2] Add FEC rates, S2X modulations and 64K transmission Daniel Scheller
2017-12-21 20:23 ` [PATCH 1/2] media: dvb_frontend: add FEC modes, " Daniel Scheller
2017-12-21 20:23 ` [PATCH 2/2] media: dvb-frontends/stv0910: report FEC 1/4 and 1/3 in get_frontend() Daniel Scheller
@ 2018-01-06 12:08 ` Daniel Scheller
2 siblings, 0 replies; 4+ messages in thread
From: Daniel Scheller @ 2018-01-06 12:08 UTC (permalink / raw)
To: mchehab, mchehab; +Cc: linux-media, rjkm
Am Thu, 21 Dec 2017 21:23:19 +0100
schrieb Daniel Scheller <d.scheller.oss@gmail.com>:
> From: Daniel Scheller <d.scheller@gmx.net>
>
> As the DVB API is bumped to 5.11 for the next cycle.
>
> dddvb brings a few additional FEC rates (1/4 and 1/3), 64/128/256APSK
> modulations (DVB-S2X) and the 64K transmission mode. These two rather
> trivial patches bring them to mainline, and puts these missing bits
> into the stv0910's get_frontend() callback (FEC 1/4 and 1/3 are
> handled throughout the rest of the demod driver already).
>
> Let's have these enums as a part of DVB core 5.11.
>
> Daniel Scheller (2):
> media: dvb_frontend: add FEC modes, S2X modulations and 64K
> transmission
> media: dvb-frontends/stv0910: report FEC 1/4 and 1/3 in
> get_frontend()
>
> Documentation/media/frontend.h.rst.exceptions | 6 ++++++
> drivers/media/dvb-frontends/stv0910.c | 2 +-
> include/uapi/linux/dvb/frontend.h | 13 +++++++++++++
> 3 files changed, 20 insertions(+), 1 deletion(-)
(Rather early) Ping - any chance these few constants/enums can make it
as part of DVB core 5.11?
Best regards,
Daniel Scheller
--
https://github.com/herrnst
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-01-06 12:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-21 20:23 [PATCH 0/2] Add FEC rates, S2X modulations and 64K transmission Daniel Scheller
2017-12-21 20:23 ` [PATCH 1/2] media: dvb_frontend: add FEC modes, " Daniel Scheller
2017-12-21 20:23 ` [PATCH 2/2] media: dvb-frontends/stv0910: report FEC 1/4 and 1/3 in get_frontend() Daniel Scheller
2018-01-06 12:08 ` [PATCH 0/2] Add FEC rates, S2X modulations and 64K transmission Daniel Scheller
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).