Skip to contentSkip to conversation

media: ov02c10: h/vflip fixes

GIT FIXES for v6.19 Hans de Goede 4 participants 6 messages Dec 19, 2025 – Jan 7 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi Hans, Mauro,

As discussed in:

https://lore.kernel.org/linux-media/[email protected]/

Here is a pull-request for a set of ov02c10: h/vflip fixes.

Note the tag has a -2 suffix, because for -1 I had accidentally used a random post v6.19-rc1 commit from Torvald's tree instead of v6.19-rc1. The -2 tag is correctly based on top of v6.19-rc1.

The following changes since commit 8f0b4cce4481fb22653697cced8d0d04027cb1e8:

Linux 6.19-rc1 (2025-12-14 16:05:07 +1200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/hansg/linux.git tags/ov02c10-fixes-for-6.19-2

for you to fetch changes up to ddf8d8757cb36654cb146f90c4af6a82d0edff25:

media: ov02c10: Remove unnecessary hflip and vflip pointers (2025-12-19 15:50:49 +0100)

----------------------------------------------------------------
media: ov02c10: h/vflip fixes for 6.19-2

This fixes various problems for laptops with a ov02c10 sensors caused by commit 69fe27173396 ("media: ov02c10: Fix default vertical flip"):

1. This changes the vflip default but does not update the bayer-order leading to debayer artifacts and wrong colors

2. The ov02c10 driver was originally developed on a XPS 16 9640 which has its sensor upside down. Changing the vflip (and hflip) default values fixes the image being upside down on other laptops, but will cause a regression on Dell XPS models causing the image to be upside down there.

3. The mentioned commit only changes vflip, so the image now is upside-up, but it is still mirrored.

----------------------------------------------------------------
Hans de Goede (5):
media: ov02c10: Fix bayer-pattern change after default vflip change
media: ov02c10: Adjust x-win/y-win when changing flipping to preserve bayer-pattern
media: ov02c10: Fix the horizontal flip control
media: ipu-bridge: Add DMI quirk for Dell XPS laptops with upside down sensors
media: ov02c10: Remove unnecessary hflip and vflip pointers

 drivers/media/i2c/ov02c10.c          | 28 +++++++++++-----------------
 drivers/media/pci/intel/Kconfig      |  2 +-
 drivers/media/pci/intel/ipu-bridge.c | 29 +++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+), 18 deletions(-)

Regards,

Hans

#1 lore raw

Hi Hans,

Quoted 16 lines · Hans de Goede

Hi Hans, Mauro,

As discussed in:

https://lore.kernel.org/linux-media/[email protected]/

Here is a pull-request for a set of ov02c10: h/vflip fixes.

Note the tag has a -2 suffix, because for -1 I had accidentally used a random post v6.19-rc1 commit from Torvald's tree instead of v6.19-rc1. The -2 tag is correctly based on top of v6.19-rc1.

The following changes since commit 8f0b4cce4481fb22653697cced8d0d04027cb1e8:

Linux 6.19-rc1 (2025-12-14 16:05:07 +1200)

Quoted 7 lines

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/hansg/linux.git tags/ov02c10-fixes-for-6.19-2

for you to fetch changes up to ddf8d8757cb36654cb146f90c4af6a82d0edff25:

media: ov02c10: Remove unnecessary hflip and vflip pointers (2025-12-19 15:50:49 +0100)

The patches are for this v2 series:

https://patchwork.linuxtv.org/project/linux-media/cover/[email protected]/

However, this series is marked as Superseded in patchwork. Is that a mistake?

The v1 series https://patchwork.linuxtv.org/project/linux-media/list/?series=20131
is still marked as 'New'. Did you mark the wrong series as Superseded?

Also, most of the v2 patches are delegated to Sakari, not Hans de Goede.

I just wanted to clarify this before merging anything to the fixes branch, and make sure you and Sakari are on the same page.

Regards,

Hans

Quoted 39 lines

----------------------------------------------------------------
media: ov02c10: h/vflip fixes for 6.19-2

This fixes various problems for laptops with a ov02c10 sensors caused by commit 69fe27173396 ("media: ov02c10: Fix default vertical flip"):

1. This changes the vflip default but does not update the bayer-order leading to debayer artifacts and wrong colors

2. The ov02c10 driver was originally developed on a XPS 16 9640 which has its sensor upside down. Changing the vflip (and hflip) default values fixes the image being upside down on other laptops, but will cause a regression on Dell XPS models causing the image to be upside down there.

3. The mentioned commit only changes vflip, so the image now is upside-up, but it is still mirrored.

----------------------------------------------------------------
Hans de Goede (5):
media: ov02c10: Fix bayer-pattern change after default vflip change
media: ov02c10: Adjust x-win/y-win when changing flipping to preserve bayer-pattern
media: ov02c10: Fix the horizontal flip control
media: ipu-bridge: Add DMI quirk for Dell XPS laptops with upside down sensors
media: ov02c10: Remove unnecessary hflip and vflip pointers

 drivers/media/i2c/ov02c10.c          | 28 +++++++++++-----------------
 drivers/media/pci/intel/Kconfig      |  2 +-
 drivers/media/pci/intel/ipu-bridge.c | 29 +++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+), 18 deletions(-)

Regards,

Hans

#2 lore raw

Hi Hans,

Quoted 33 lines · Hans Verkuil

Hi Hans,

Quoted 16 lines · Hans de Goede

Hi Hans, Mauro,

As discussed in:

https://lore.kernel.org/linux-media/[email protected]/

Here is a pull-request for a set of ov02c10: h/vflip fixes.

Note the tag has a -2 suffix, because for -1 I had accidentally used a random post v6.19-rc1 commit from Torvald's tree instead of v6.19-rc1. The -2 tag is correctly based on top of v6.19-rc1.

The following changes since commit 8f0b4cce4481fb22653697cced8d0d04027cb1e8:

Linux 6.19-rc1 (2025-12-14 16:05:07 +1200)

Quoted 7 lines

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/hansg/linux.git tags/ov02c10-fixes-for-6.19-2

for you to fetch changes up to ddf8d8757cb36654cb146f90c4af6a82d0edff25:

media: ov02c10: Remove unnecessary hflip and vflip pointers (2025-12-19 15:50:49 +0100)

The patches are for this v2 series:

https://patchwork.linuxtv.org/project/linux-media/cover/[email protected]/

However, this series is marked as Superseded in patchwork. Is that a mistake?

Quoted 7 lines

The v1 series https://patchwork.linuxtv.org/project/linux-media/list/?series=20131
is still marked as 'New'. Did you mark the wrong series as Superseded?

Also, most of the v2 patches are delegated to Sakari, not Hans de Goede.

I just wanted to clarify this before merging anything to the fixes branch, and make sure you and Sakari are on the same page.

I did not make any changes in patchwork, so I assume those were done by Sakari.

I guess Sakari may have marked these for picking up by him, but since these fix a regression in 6.19-rc# these should get picked up as fixes, rather then go to media-committers/next.

Sakari ?

Regards,

Hans

Quoted 39 lines
Quoted 38 lines

----------------------------------------------------------------
media: ov02c10: h/vflip fixes for 6.19-2

This fixes various problems for laptops with a ov02c10 sensors caused by commit 69fe27173396 ("media: ov02c10: Fix default vertical flip"):

1. This changes the vflip default but does not update the bayer-order leading to debayer artifacts and wrong colors

2. The ov02c10 driver was originally developed on a XPS 16 9640 which has its sensor upside down. Changing the vflip (and hflip) default values fixes the image being upside down on other laptops, but will cause a regression on Dell XPS models causing the image to be upside down there.

3. The mentioned commit only changes vflip, so the image now is upside-up, but it is still mirrored.

----------------------------------------------------------------
Hans de Goede (5):
media: ov02c10: Fix bayer-pattern change after default vflip change
media: ov02c10: Adjust x-win/y-win when changing flipping to preserve bayer-pattern
media: ov02c10: Fix the horizontal flip control
media: ipu-bridge: Add DMI quirk for Dell XPS laptops with upside down sensors
media: ov02c10: Remove unnecessary hflip and vflip pointers

 drivers/media/i2c/ov02c10.c          | 28 +++++++++++-----------------
 drivers/media/pci/intel/Kconfig      |  2 +-
 drivers/media/pci/intel/ipu-bridge.c | 29 +++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+), 18 deletions(-)

Regards,

Hans

#3 lore raw

Hi Hanses,

Quoted 44 lines · Hans de Goede

Hi Hans,

Quoted 33 lines · Hans Verkuil

Hi Hans,

Quoted 16 lines · Hans de Goede

Hi Hans, Mauro,

As discussed in:

https://lore.kernel.org/linux-media/[email protected]/

Here is a pull-request for a set of ov02c10: h/vflip fixes.

Note the tag has a -2 suffix, because for -1 I had accidentally used a random post v6.19-rc1 commit from Torvald's tree instead of v6.19-rc1. The -2 tag is correctly based on top of v6.19-rc1.

The following changes since commit 8f0b4cce4481fb22653697cced8d0d04027cb1e8:

Linux 6.19-rc1 (2025-12-14 16:05:07 +1200)

Quoted 7 lines

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/hansg/linux.git tags/ov02c10-fixes-for-6.19-2

for you to fetch changes up to ddf8d8757cb36654cb146f90c4af6a82d0edff25:

media: ov02c10: Remove unnecessary hflip and vflip pointers (2025-12-19 15:50:49 +0100)

The patches are for this v2 series:

https://patchwork.linuxtv.org/project/linux-media/cover/[email protected]/

However, this series is marked as Superseded in patchwork. Is that a mistake?

Quoted 7 lines

The v1 series https://patchwork.linuxtv.org/project/linux-media/list/?series=20131
is still marked as 'New'. Did you mark the wrong series as Superseded?

Also, most of the v2 patches are delegated to Sakari, not Hans de Goede.

I just wanted to clarify this before merging anything to the fixes branch, and make sure you and Sakari are on the same page.

Quoted 8 lines

I did not make any changes in patchwork, so I assume those were done by Sakari.

I guess Sakari may have marked these for picking up by him, but since these fix a regression in 6.19-rc# these should get picked up as fixes, rather then go to media-committers/next.

Sakari ?

I've squashed the changes Hans posted plus trivial fixes; I'll send v2 (and a PR) once Mehdi has tested it. The patches can be found here <URL:https://git.retiisi.eu/?p=~sailus/linux.git;a=shortlog;h=refs/heads/ov01a10>.

Signature · 3 lines
Kind regards,

Sakari Ailus
#4 lore raw

Hi Sakari,

Quoted 54 lines · Sakari Ailus

Hi Hanses,

Quoted 51 lines · Hans de Goede

Hi Hans,

Quoted 33 lines · Hans Verkuil

Hi Hans,

Quoted 16 lines · Hans de Goede

Hi Hans, Mauro,

As discussed in:

https://lore.kernel.org/linux-media/[email protected]/

Here is a pull-request for a set of ov02c10: h/vflip fixes.

Note the tag has a -2 suffix, because for -1 I had accidentally used a random post v6.19-rc1 commit from Torvald's tree instead of v6.19-rc1. The -2 tag is correctly based on top of v6.19-rc1.

The following changes since commit 8f0b4cce4481fb22653697cced8d0d04027cb1e8:

Linux 6.19-rc1 (2025-12-14 16:05:07 +1200)

Quoted 7 lines

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/hansg/linux.git tags/ov02c10-fixes-for-6.19-2

for you to fetch changes up to ddf8d8757cb36654cb146f90c4af6a82d0edff25:

media: ov02c10: Remove unnecessary hflip and vflip pointers (2025-12-19 15:50:49 +0100)

The patches are for this v2 series:

https://patchwork.linuxtv.org/project/linux-media/cover/[email protected]/

However, this series is marked as Superseded in patchwork. Is that a mistake?

Quoted 7 lines

The v1 series https://patchwork.linuxtv.org/project/linux-media/list/?series=20131
is still marked as 'New'. Did you mark the wrong series as Superseded?

Also, most of the v2 patches are delegated to Sakari, not Hans de Goede.

I just wanted to clarify this before merging anything to the fixes branch, and make sure you and Sakari are on the same page.

I did not make any changes in patchwork, so I assume those were done by Sakari.

I guess Sakari may have marked these for picking up by him, but since these fix a regression in 6.19-rc# these should get picked up as fixes, rather then go to media-committers/next.

Quoted 5 lines
Quoted 1 line

Sakari ?

I've squashed the changes Hans posted plus trivial fixes; I'll send v2 (and a PR) once Mehdi has tested it. The patches can be found here <URL:https://git.retiisi.eu/?p=~sailus/linux.git;a=shortlog;h=refs/heads/ov01a10>.

This is a different sensor the ov01a10 and not the ov02c10 or am I missing something here ?

--
Kind Regards
Mehdi Djait

#5 lore raw

Hi Mehdi, Hanses,

Quoted 57 lines · Mehdi Djait

Hi Sakari,

Quoted 54 lines · Sakari Ailus

Hi Hanses,

Quoted 51 lines · Hans de Goede

Hi Hans,

Quoted 33 lines · Hans Verkuil

Hi Hans,

Quoted 16 lines · Hans de Goede

Hi Hans, Mauro,

As discussed in:

https://lore.kernel.org/linux-media/[email protected]/

Here is a pull-request for a set of ov02c10: h/vflip fixes.

Note the tag has a -2 suffix, because for -1 I had accidentally used a random post v6.19-rc1 commit from Torvald's tree instead of v6.19-rc1. The -2 tag is correctly based on top of v6.19-rc1.

The following changes since commit 8f0b4cce4481fb22653697cced8d0d04027cb1e8:

Linux 6.19-rc1 (2025-12-14 16:05:07 +1200)

Quoted 7 lines

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/hansg/linux.git tags/ov02c10-fixes-for-6.19-2

for you to fetch changes up to ddf8d8757cb36654cb146f90c4af6a82d0edff25:

media: ov02c10: Remove unnecessary hflip and vflip pointers (2025-12-19 15:50:49 +0100)

The patches are for this v2 series:

https://patchwork.linuxtv.org/project/linux-media/cover/[email protected]/

However, this series is marked as Superseded in patchwork. Is that a mistake?

Quoted 7 lines

The v1 series https://patchwork.linuxtv.org/project/linux-media/list/?series=20131
is still marked as 'New'. Did you mark the wrong series as Superseded?

Also, most of the v2 patches are delegated to Sakari, not Hans de Goede.

I just wanted to clarify this before merging anything to the fixes branch, and make sure you and Sakari are on the same page.

I did not make any changes in patchwork, so I assume those were done by Sakari.

I guess Sakari may have marked these for picking up by him, but since these fix a regression in 6.19-rc# these should get picked up as fixes, rather then go to media-committers/next.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Sakari ?

I've squashed the changes Hans posted plus trivial fixes; I'll send v2 (and a PR) once Mehdi has tested it. The patches can be found here <URL:https://git.retiisi.eu/?p=~sailus/linux.git;a=shortlog;h=refs/heads/ov01a10>.

This is a different sensor the ov01a10 and not the ov02c10 or am I missing something here ?

Oops. Yes, you're right.

That PR is fine IMO. I've fixed the state in Patchwork (v1 is now superseded).

Signature · 3 lines
Kind regards,

Sakari Ailus