linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] si2157: change command for sleep
@ 2014-08-25 18:07 Olli Salonen
  2014-08-25 18:07 ` [PATCH 2/3] si2157: avoid firmware loading if it has been loaded previously Olli Salonen
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Olli Salonen @ 2014-08-25 18:07 UTC (permalink / raw)
  To: linux-media; +Cc: Olli Salonen

Instead of sending command 13 to the tuner, send command 16 when sleeping. This 
behaviour is observed when using manufacturer provided binary-only Linux driver 
for TechnoTrend CT2-4400 (Windows driver does not do power management).

The issue with command 13 is that firmware loading is necessary after that. 
This is not an issue with tuners that do not require firmware, but resuming 
from sleep on an Si2158 takes noticeable time as firmware is loaded on resume.

Signed-off-by: Olli Salonen <olli.salonen@iki.fi>
---
 drivers/media/tuners/si2157.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c
index efb5cce..c84f7b8 100644
--- a/drivers/media/tuners/si2157.c
+++ b/drivers/media/tuners/si2157.c
@@ -197,9 +197,10 @@ static int si2157_sleep(struct dvb_frontend *fe)
 
 	s->active = false;
 
-	memcpy(cmd.args, "\x13", 1);
-	cmd.wlen = 1;
-	cmd.rlen = 0;
+	/* standby */
+	memcpy(cmd.args, "\x16\x00", 2);
+	cmd.wlen = 2;
+	cmd.rlen = 1;
 	ret = si2157_cmd_execute(s, &cmd);
 	if (ret)
 		goto err;
-- 
1.9.1


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

end of thread, other threads:[~2014-09-18 12:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-25 18:07 [PATCH 1/3] si2157: change command for sleep Olli Salonen
2014-08-25 18:07 ` [PATCH 2/3] si2157: avoid firmware loading if it has been loaded previously Olli Salonen
2014-08-25 18:07 ` [PATCH 3/3] si2168: " Olli Salonen
2014-09-05  8:36   ` Antti Palosaari
2014-09-05 18:54     ` Olli Salonen
2014-09-06 17:36       ` Olli Salonen
2014-09-06 23:06         ` Antti Palosaari
2014-09-05  8:34 ` [PATCH 1/3] si2157: change command for sleep Antti Palosaari
2014-09-18 11:22   ` Mauro Carvalho Chehab
2014-09-18 11:50     ` Mauro Carvalho Chehab
2014-09-18 12:00       ` Antti Palosaari
2014-09-18 12:11         ` 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).