All of lore.kernel.org
 help / color / mirror / Atom feed
From: Klaus Schmidinger <Klaus.Schmidinger@tvdr.de>
To: linux-media@vger.kernel.org
Subject: Re: [linux-media] [PATCH 1/2] stb0899: set FE_HAS_SIGNAL flag in read_status
Date: Wed, 29 Feb 2012 09:25:21 +0100	[thread overview]
Message-ID: <4F4DE0F1.60407@tvdr.de> (raw)
In-Reply-To: <4F4D1FA8.1090100@gmx.de>

On 28.02.2012 19:40, Andreas Regel wrote:
> In stb0899_read_status the FE_HAS_SIGNAL flag was not set in case of a
> successful carrier lock. This change fixes that.
>
> Signed-off-by: Andreas Regel <andreas.regel@gmx.de>
> ---
>  drivers/media/dvb/frontends/stb0899_drv.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/dvb/frontends/stb0899_drv.c b/drivers/media/dvb/frontends/stb0899_drv.c
> index 38565be..4a58afc 100644
> --- a/drivers/media/dvb/frontends/stb0899_drv.c
> +++ b/drivers/media/dvb/frontends/stb0899_drv.c
> @@ -1071,7 +1071,7 @@ static int stb0899_read_status(struct dvb_frontend *fe, enum fe_status *status)
>              reg  = stb0899_read_reg(state, STB0899_VSTATUS);
>              if (STB0899_GETFIELD(VSTATUS_LOCKEDVIT, reg)) {
>                  dprintk(state->verbose, FE_DEBUG, 1, "--------> FE_HAS_CARRIER | FE_HAS_LOCK");
> -                *status |= FE_HAS_CARRIER | FE_HAS_LOCK;
> +                *status |= FE_HAS_SIGNAL | FE_HAS_CARRIER | FE_HAS_LOCK;
>                   reg = stb0899_read_reg(state, STB0899_PLPARM);
>                  if (STB0899_GETFIELD(VITCURPUN, reg)) {
> @@ -1088,7 +1088,7 @@ static int stb0899_read_status(struct dvb_frontend *fe, enum fe_status *status)
>          if (internal->lock) {
>              reg = STB0899_READ_S2REG(STB0899_S2DEMOD, DMD_STAT2);
>              if (STB0899_GETFIELD(UWP_LOCK, reg) && STB0899_GETFIELD(CSM_LOCK, reg)) {
> -                *status |= FE_HAS_CARRIER;
> +                *status |= FE_HAS_SIGNAL | FE_HAS_CARRIER;
>                  dprintk(state->verbose, FE_DEBUG, 1,
>                      "UWP & CSM Lock ! ---> DVB-S2 FE_HAS_CARRIER");

Acked-by: Klaus Schmidinger <Klaus.Schmidinger@tvdr.de>

      reply	other threads:[~2012-02-29  8:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-28 18:40 [PATCH 1/2] stb0899: set FE_HAS_SIGNAL flag in read_status Andreas Regel
2012-02-29  8:25 ` Klaus Schmidinger [this message]

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=4F4DE0F1.60407@tvdr.de \
    --to=klaus.schmidinger@tvdr.de \
    --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.