linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drxk: Fix regression introduced by commit '[media] Remove Annex A/C selection via roll-off factor'
@ 2012-01-04 18:45 Oliver Endriss
  2012-01-06 19:11 ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 3+ messages in thread
From: Oliver Endriss @ 2012-01-04 18:45 UTC (permalink / raw)
  To: Linux Media Mailing List

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.

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>

diff --git a/drivers/media/dvb/frontends/drxk_hard.c b/drivers/media/dvb/frontends/drxk_hard.c
index 36e1c82..13f22a1 100644
--- a/drivers/media/dvb/frontends/drxk_hard.c
+++ b/drivers/media/dvb/frontends/drxk_hard.c
@@ -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;
 	}

-- 
----------------------------------------------------------------
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/
----------------------------------------------------------------

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drxk: Fix regression introduced by commit '[media] Remove Annex A/C selection via roll-off factor'
  2012-01-04 18:45 [PATCH] drxk: Fix regression introduced by commit '[media] Remove Annex A/C selection via roll-off factor' Oliver Endriss
@ 2012-01-06 19:11 ` Mauro Carvalho Chehab
  2012-01-07  0:45   ` Oliver Endriss
  0 siblings, 1 reply; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2012-01-06 19:11 UTC (permalink / raw)
  To: Oliver Endriss; +Cc: Linux Media Mailing List

On 04-01-2012 16:45, Oliver Endriss wrote:
> 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.
> 
> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
> 
> diff --git a/drivers/media/dvb/frontends/drxk_hard.c b/drivers/media/dvb/frontends/drxk_hard.c
> index 36e1c82..13f22a1 100644
> --- a/drivers/media/dvb/frontends/drxk_hard.c
> +++ b/drivers/media/dvb/frontends/drxk_hard.c
> @@ -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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drxk: Fix regression introduced by commit '[media] Remove Annex A/C selection via roll-off factor'
  2012-01-06 19:11 ` Mauro Carvalho Chehab
@ 2012-01-07  0:45   ` Oliver Endriss
  0 siblings, 0 replies; 3+ messages in thread
From: Oliver Endriss @ 2012-01-07  0:45 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: Linux Media Mailing List

On Friday 06 January 2012 20:11:56 Mauro Carvalho Chehab wrote:
> On 04-01-2012 16:45, Oliver Endriss wrote:
> > 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.
> > 
> > Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
> > 
> > diff --git a/drivers/media/dvb/frontends/drxk_hard.c b/drivers/media/dvb/frontends/drxk_hard.c
> > index 36e1c82..13f22a1 100644
> > --- a/drivers/media/dvb/frontends/drxk_hard.c
> > +++ b/drivers/media/dvb/frontends/drxk_hard.c
> > @@ -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

Agreed.

> 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.old	2012-01-07 01:40:00.000000000 +0100
+++ drxk_hard.c	2012-01-07 01:40:30.000000000 +0100
@@ -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

-- 
----------------------------------------------------------------
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/
----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-07  0:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-04 18:45 [PATCH] drxk: Fix regression introduced by commit '[media] Remove Annex A/C selection via roll-off factor' Oliver Endriss
2012-01-06 19:11 ` Mauro Carvalho Chehab
2012-01-07  0:45   ` Oliver Endriss

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