From: Simon Yuan <Simon.Yuan@navico.com>
To: Kieran Bingham <kbingham@kernel.org>
Cc: "linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
"linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>,
"mchehab@kernel.org" <mchehab@kernel.org>,
"niklas.soderlund@ragnatech.se" <niklas.soderlund@ragnatech.se>,
Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Subject: Re: [PATCH] media: i2c: adv748x: Map v4l2_std_id to the internal reg value
Date: Mon, 11 Sep 2017 22:38:03 +0000 [thread overview]
Message-ID: <1668699.pcEPlNxhTE@siyuan> (raw)
In-Reply-To: <1505168813-13529-1-git-send-email-kbingham@kernel.org>
On Tuesday, 12 September 2017 10:26:53 NZST Kieran Bingham wrote:
> From: Simon Yuan <simon.yuan@navico.com>
>
> The video standard was not mapped to the corresponding value of the
> internal video standard in adv748x_afe_querystd, causing the wrong
> video standard to be selected.
>
> Fixes: 3e89586a64df ("media: i2c: adv748x: add adv748x driver")
> Signed-off-by: Simon Yuan <simon.yuan@navico.com>
> [Kieran: Obtain the std from the afe->curr_norm]
> Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
>
> ---
> Simon,
>
> I've added your implicit Signed-off-by tag as part of resubmitting this
> patch. Please confirm your agreement to this!
>
> drivers/media/i2c/adv748x/adv748x-afe.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/media/i2c/adv748x/adv748x-afe.c
> b/drivers/media/i2c/adv748x/adv748x-afe.c index 134d981d69d3..5188178588c9
> 100644
> --- a/drivers/media/i2c/adv748x/adv748x-afe.c
> +++ b/drivers/media/i2c/adv748x/adv748x-afe.c
> @@ -217,6 +217,7 @@ static int adv748x_afe_querystd(struct v4l2_subdev *sd,
> v4l2_std_id *std) {
> struct adv748x_afe *afe = adv748x_sd_to_afe(sd);
> struct adv748x_state *state = adv748x_afe_to_state(afe);
> + int afe_std;
> int ret;
>
> mutex_lock(&state->mutex);
> @@ -235,8 +236,12 @@ static int adv748x_afe_querystd(struct v4l2_subdev *sd,
> v4l2_std_id *std) /* Read detected standard */
> ret = adv748x_afe_status(afe, NULL, std);
>
> + afe_std = adv748x_afe_std(afe->curr_norm);
> + if (afe_std < 0)
> + goto unlock;
> +
> /* Restore original state */
> - adv748x_afe_set_video_standard(state, afe->curr_norm);
> + adv748x_afe_set_video_standard(state, afe_std);
>
> unlock:
> mutex_unlock(&state->mutex);
Hi Kieran,
No problem from me, please go ahead.
Best regards,
Simon
prev parent reply other threads:[~2017-09-11 22:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-11 22:26 [PATCH] media: i2c: adv748x: Map v4l2_std_id to the internal reg value Kieran Bingham
2017-09-11 22:38 ` Simon Yuan [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=1668699.pcEPlNxhTE@siyuan \
--to=simon.yuan@navico.com \
--cc=kbingham@kernel.org \
--cc=kieran.bingham+renesas@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=niklas.soderlund@ragnatech.se \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox