linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] This brings the genpix line of devices snr reporting in line with other drivers
@ 2013-07-23 15:12 Chris Lee
  2013-08-01 15:12 ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Lee @ 2013-07-23 15:12 UTC (permalink / raw)
  To: linux-media; +Cc: Chris Lee

Signed-off-by: Chris Lee <updatelee@gmail.com>

---
 drivers/media/usb/dvb-usb/gp8psk-fe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/dvb-usb/gp8psk-fe.c b/drivers/media/usb/dvb-usb/gp8psk-fe.c
index 67957dd..5864f37 100644
--- a/drivers/media/usb/dvb-usb/gp8psk-fe.c
+++ b/drivers/media/usb/dvb-usb/gp8psk-fe.c
@@ -45,7 +45,7 @@ static int gp8psk_fe_update_status(struct gp8psk_fe_state *st)
 	if (time_after(jiffies,st->next_status_check)) {
 		gp8psk_usb_in_op(st->d, GET_SIGNAL_LOCK, 0,0,&st->lock,1);
 		gp8psk_usb_in_op(st->d, GET_SIGNAL_STRENGTH, 0,0,buf,6);
-		st->snr = (buf[1]) << 8 | buf[0];
+		st->snr = ((buf[1]) << 8 | buf[0]) << 4;
 		st->next_status_check = jiffies + (st->status_check_interval*HZ)/1000;
 	}
 	return 0;
-- 
1.8.1.2


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

* Re: [PATCH] This brings the genpix line of devices snr reporting in line with other drivers
  2013-07-23 15:12 [PATCH] This brings the genpix line of devices snr reporting in line with other drivers Chris Lee
@ 2013-08-01 15:12 ` Mauro Carvalho Chehab
  0 siblings, 0 replies; 2+ messages in thread
From: Mauro Carvalho Chehab @ 2013-08-01 15:12 UTC (permalink / raw)
  To: Chris Lee; +Cc: linux-media

Em Tue, 23 Jul 2013 09:12:06 -0600
Chris Lee <updatelee@gmail.com> escreveu:

> Signed-off-by: Chris Lee <updatelee@gmail.com>


Hi Chris,

Please better describe your patches. It is not clear what you're
wanting to do on them.

A good patch should contain a detailed explanation about it,
describing the changes with some detail. Please don't be shy in it.

In this specific case, I'm seeing that you're doing some changes at
SNR, but it is not clear if the change is just extending the range
of a SNR relative measurement, or if you need that change to put
the unit as 0.1dB (that's the default unit that most DVBv3 stats
do).

Also, while you are there, the better is to add support on this
driver for DVBv5 stats, were the units of each statistics is properly
docummented.

For this reason, I'll this this patch and your next ones as
"Changes requested" at patchwork. Please re-submit them when ready.

Thanks!
Mauro

> 
> ---
>  drivers/media/usb/dvb-usb/gp8psk-fe.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/usb/dvb-usb/gp8psk-fe.c b/drivers/media/usb/dvb-usb/gp8psk-fe.c
> index 67957dd..5864f37 100644
> --- a/drivers/media/usb/dvb-usb/gp8psk-fe.c
> +++ b/drivers/media/usb/dvb-usb/gp8psk-fe.c
> @@ -45,7 +45,7 @@ static int gp8psk_fe_update_status(struct gp8psk_fe_state *st)
>  	if (time_after(jiffies,st->next_status_check)) {
>  		gp8psk_usb_in_op(st->d, GET_SIGNAL_LOCK, 0,0,&st->lock,1);
>  		gp8psk_usb_in_op(st->d, GET_SIGNAL_STRENGTH, 0,0,buf,6);
> -		st->snr = (buf[1]) << 8 | buf[0];
> +		st->snr = ((buf[1]) << 8 | buf[0]) << 4;
>  		st->next_status_check = jiffies + (st->status_check_interval*HZ)/1000;
>  	}
>  	return 0;


-- 

Cheers,
Mauro

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

end of thread, other threads:[~2013-08-01 15:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-23 15:12 [PATCH] This brings the genpix line of devices snr reporting in line with other drivers Chris Lee
2013-08-01 15:12 ` 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;
as well as URLs for NNTP newsgroup(s).