Re: [PATCH] cxd2820r_c: Fix if_ctl calculation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03.11.2013 19:18, Antti Palosaari wrote:
CrazyCat,

Could you fix your mailer? Or tell me the command I can import that
patch to my local git tree for testing?

git send-email is at least know to break patches.

*not* to break patches!



I will manually applying that patch and testing, but..



error: drivers/media/dvb-frontends/cxd2820r_c.c: patch does not apply


I tested it, by manually copy & pasting that single line. I didn't noticed any change to existing behavior, but I have no reason to suspect patch is wrong.

I am not going to apply that via my tree as patch fails.

It is up to subsystem maintainers to pick it up.


Acked-by: Antti Palosaari <crope@xxxxxx>
Reviewed-by: Antti Palosaari <crope@xxxxxx>
Tested-by: Antti Palosaari <crope@xxxxxx>


regards
Antti




On 02.11.2013 23:04, CrazyCat wrote:
Fix tune for DVB-C.

Signed-off-by: Evgeny Plehov <EvgenyPlehov@xxxxxxx>
diff --git a/drivers/media/dvb-frontends/cxd2820r_c.c
b/drivers/media/dvb-frontends/cxd2820r_c.c
index 125a440..5c6ab49 100644
--- a/drivers/media/dvb-frontends/cxd2820r_c.c
+++ b/drivers/media/dvb-frontends/cxd2820r_c.c
@@ -78,7 +78,7 @@ int cxd2820r_set_frontend_c(struct dvb_frontend *fe)

      num = if_freq / 1000; /* Hz => kHz */
      num *= 0x4000;
-    if_ctl = cxd2820r_div_u64_round_closest(num, 41000);
+    if_ctl = 0x4000 - cxd2820r_div_u64_round_closest(num, 41000);
      buf[0] = (if_ctl >> 8) & 0x3f;
      buf[1] = (if_ctl >> 0) & 0xff;


--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




--
http://palosaari.fi/
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux