Skip to contentSkip to conversation

Add FEC rates, S2X modulations and 64K transmission

PATCH Superseded Daniel Scheller 1 participant 4 messages Dec 21, 2017 – Jan 6, 2018

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover Add FEC rates, S2X modulations and 64K transmission

From: Daniel Scheller <[email protected]>

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(-)
Signature · 1 line
2.13.6
#1 lore raw

PATCH 1/2 media: dvb_frontend: add FEC modes, S2X modulations and 64K transmission

From: Daniel Scheller <[email protected]>

Add 1/4 and 1/3 FEC ratios, 64/128/256-APSK S2X modulations and 64K transmission mode. Update relevant doc items aswell.

---
 Documentation/media/frontend.h.rst.exceptions |  6 ++++++
 include/uapi/linux/dvb/frontend.h             | 13 +++++++++++++
 2 files changed, 19 insertions(+)
Documentation/media/frontend.h.rst.exceptions +6 -0
index f7c4df620a52..ae1148be0a39 100644
@@ -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
include/uapi/linux/dvb/frontend.h +13 -0
index 4f9b4551c534..227268a657cd 100644
@@ -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,
 };
 
 /**
Signature · 1 line
2.13.6
#2 lore raw

PATCH 2/2 media: dvb-frontends/stv0910: report FEC 1/4 and 1/3 in get_frontend()

In reply to Daniel Scheller

From: Daniel Scheller <[email protected]>

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.

---
 drivers/media/dvb-frontends/stv0910.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/dvb-frontends/stv0910.c +1 -1
index a8c99f41478b..7cf90d435083 100644
@@ -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,
Signature · 1 line
2.13.6
#3 lore raw
In reply to Daniel Scheller

Am Thu, 21 Dec 2017 21:23:19 +0100
schrieb Daniel Scheller <[email protected]>:

Quoted 18 lines

From: Daniel Scheller <[email protected]>

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()

Quoted 4 lines
 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

Signature · 1 line
https://github.com/herrnst