All of lore.kernel.org
 help / color / mirror / Atom feed
From: Malcolm Priestley <tvboxspy@gmail.com>
To: linux-media@vger.kernel.org
Subject: [PATCH 6/7] af9013 Stop OFSM while channel changing.
Date: Sat, 12 Nov 2011 15:56:03 +0000	[thread overview]
Message-ID: <4ebe9717.5b6be30a.26ea.ffff9ad7@mx.google.com> (raw)

To minimise corruptions on channel change.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
---
 drivers/media/dvb/frontends/af9013.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/media/dvb/frontends/af9013.c b/drivers/media/dvb/frontends/af9013.c
index 38a6ea2..6a5b40c 100644
--- a/drivers/media/dvb/frontends/af9013.c
+++ b/drivers/media/dvb/frontends/af9013.c
@@ -629,6 +629,10 @@ static int af9013_set_frontend(struct dvb_frontend *fe,
 		params->u.ofdm.bandwidth);
 
 	state->frequency = params->frequency;
+	/* Stop OFSM */
+	ret = af9013_write_reg(state, 0xffff, 1);
+	if (ret)
+		goto error;
 
 	/* program tuner */
 	if (mutex_lock_interruptible(state->fe_mutex) < 0)
-- 
1.7.5.4





             reply	other threads:[~2011-11-12 15:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-12 15:56 Malcolm Priestley [this message]
2011-11-12 16:39 ` [PATCH 6/7] af9013 Stop OFSM while channel changing Antti Palosaari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ebe9717.5b6be30a.26ea.ffff9ad7@mx.google.com \
    --to=tvboxspy@gmail.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.