Skip to contentSkip to conversation

drxk: Fix regression introduced by commit '[media] Remove Annex A/C selection via roll-off factor'

PATCH In review Oliver Endriss 2 participants 3 messages Jan 4, 2012 – Jan 7, 2012 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drxk: Fix regression introduced by commit '[media] Remove Annex A/C selection via roll-off factor'

Fix regression introduced by commit '[media] Remove Annex A/C selection via roll-off factor' As a result of this commit, DVB-T tuning did not work anymore.

drivers/media/dvb/frontends/drxk_hard.c +2 -0
index 36e1c82..13f22a1 100644
@@ -6235,6 +6235,8 @@ static int drxk_set_parameters(struct dvb_frontend *fe)
 	case SYS_DVBC_ANNEX_C:
 		state->m_itut_annex_c = true;
 		break;
+	case SYS_DVBT:
+		break;
 	default:
 		return -EINVAL;
 	}
Signature · 5 lines
----------------------------------------------------------------
VDR Remote Plugin 0.4.0: http://www.escape-edv.de/endriss/vdr/
4 MByte Mod: http://www.escape-edv.de/endriss/dvb-mem-mod/
Full-TS Mod: http://www.escape-edv.de/endriss/dvb-full-ts-mod/
----------------------------------------------------------------
#1 lore raw
Quoted 11 lines · Oliver Endriss

Fix regression introduced by commit '[media] Remove Annex A/C selection via roll-off factor' As a result of this commit, DVB-T tuning did not work anymore.

drivers/media/dvb/frontends/drxk_hard.c +0 -0
index 36e1c82..13f22a1 100644

drivers/media/dvb/frontends/drxk_hard.c static int drxk_set_parameters(struct dvb_frontend *fe) · line 6242

Quoted 8 lines
drivers/media/dvb/frontends/drxk_hard.c +2 -0
@@ -6235,6 +6235,8 @@ static int drxk_set_parameters(struct dvb_frontend *fe)
 	case SYS_DVBC_ANNEX_C:
 		state->m_itut_annex_c = true;
 		break;
+	case SYS_DVBT:
+		break;
 	default:
 		return -EINVAL;
 	}

Hi Oliver,

Thanks for the patch!

It become obsoleted by the patch that converted the driver to create just one frontend:

	http://git.linuxtv.org/media_tree.git/commitdiff/fa4b2a171d42ffc512b3a86922ad68e1355eb17a

While I don't have DVB-T signal here, the logs were showing that the driver is switching properly between DVB-T and DVB-C.

Yet, I'd appreciate if you could test it with a real signal, for us to be 100% sure that everything is working as expected.

Thanks!
Mauro

#2 lore raw
Quoted 22 lines · On Friday 06 January 2012 20:11:56 Mauro Carvalho Chehab wrote:
Quoted 11 lines · Oliver Endriss

Fix regression introduced by commit '[media] Remove Annex A/C selection via roll-off factor' As a result of this commit, DVB-T tuning did not work anymore.

drivers/media/dvb/frontends/drxk_hard.c +0 -0
index 36e1c82..13f22a1 100644

drivers/media/dvb/frontends/drxk_hard.c static int drxk_set_parameters(struct dvb_frontend *fe) · line 6242

Quoted 8 lines
drivers/media/dvb/frontends/drxk_hard.c +2 -0
@@ -6235,6 +6235,8 @@ static int drxk_set_parameters(struct dvb_frontend *fe)
 	case SYS_DVBC_ANNEX_C:
 		state->m_itut_annex_c = true;
 		break;
+	case SYS_DVBT:
+		break;
 	default:
 		return -EINVAL;
 	}

Hi Oliver,

Quoted 5 lines

Thanks for the patch!

It become obsoleted by the patch that converted the driver to create just one frontend:

	http://git.linuxtv.org/media_tree.git/commitdiff/fa4b2a171d42ffc512b3a86922ad68e1355eb17a

Agreed.

Quoted 5 lines

While I don't have DVB-T signal here, the logs were showing that the driver is switching properly between DVB-T and DVB-C.

Yet, I'd appreciate if you could test it with a real signal, for us to be 100% sure that everything is working as expected.

A quick test showed that switching to DVB-T works. Sorry, I do not have a DVB-C signal here.

Btw, there are two lines, which are not harmful, but should be removed (bad formatting/dead code).

drxk_hard.c renamed from drxk_hard.c.old +0 -2
@@ -6236,8 +6236,6 @@ static int drxk_set_parameters(struct dv
 				SetOperationMode(state, OM_QAM_ITU_C);
 			else
 				SetOperationMode(state, OM_QAM_ITU_A);
-				break;
-			state->m_itut_annex_c = true;
 			break;
 		case SYS_DVBT:
 			if (!state->m_hasDVBT)

CU
Oliver

Signature · 5 lines
----------------------------------------------------------------
VDR Remote Plugin 0.4.0: http://www.escape-edv.de/endriss/vdr/
4 MByte Mod: http://www.escape-edv.de/endriss/dvb-mem-mod/
Full-TS Mod: http://www.escape-edv.de/endriss/dvb-full-ts-mod/
----------------------------------------------------------------