All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
To: Hao Yao <hao.yao@intel.com>
Cc: linux-media@vger.kernel.org, Jason Chen <jason.z.chen@intel.com>,
	Bingbu Cao <bingbu.cao@intel.com>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Hans de Goede <hdegoede@redhat.com>,
	arun.t@intel.com
Subject: Re: [PATCH] media: ov08x40: Fix the horizontal flip control
Date: Fri, 25 Apr 2025 08:10:29 +0200	[thread overview]
Message-ID: <aAsnVYXFJ0IEumNM@linux.intel.com> (raw)
In-Reply-To: <20250425043328.208804-1-hao.yao@intel.com>

On Fri, Apr 25, 2025 at 12:33:25PM +0800, Hao Yao wrote:
> The datasheet of ov08x40 doesn't match the hardware behavior.
> 0x3821[2] == 1 is the original state and 0 the horizontal flip enabled.
> 
> Signed-off-by: Hao Yao <hao.yao@intel.com>

Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>

Regards
Stanislaw

> ---
>  drivers/media/i2c/ov08x40.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/i2c/ov08x40.c b/drivers/media/i2c/ov08x40.c
> index cf0e41fc3071..17112c02408a 100644
> --- a/drivers/media/i2c/ov08x40.c
> +++ b/drivers/media/i2c/ov08x40.c
> @@ -1627,7 +1627,7 @@ static int ov08x40_set_ctrl_hflip(struct ov08x40 *ov08x, u32 ctrl_val)
>  
>  	return ov08x40_write_reg(ov08x, OV08X40_REG_MIRROR,
>  				 OV08X40_REG_VALUE_08BIT,
> -				 ctrl_val ? val | BIT(2) : val & ~BIT(2));
> +				 ctrl_val ? val & ~BIT(2) : val | BIT(2));
>  }
>  
>  static int ov08x40_set_ctrl_vflip(struct ov08x40 *ov08x, u32 ctrl_val)
> -- 
> 2.43.0
> 
> 

  reply	other threads:[~2025-04-25  6:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-25  4:33 [PATCH] media: ov08x40: Fix the horizontal flip control Hao Yao
2025-04-25  6:10 ` Stanislaw Gruszka [this message]
2025-08-29 14:48 ` Hans de Goede

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=aAsnVYXFJ0IEumNM@linux.intel.com \
    --to=stanislaw.gruszka@linux.intel.com \
    --cc=arun.t@intel.com \
    --cc=bingbu.cao@intel.com \
    --cc=hao.yao@intel.com \
    --cc=hdegoede@redhat.com \
    --cc=jason.z.chen@intel.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    /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.