Post Go back to editing

Image feed Issues with Frequent Stream on stream off operations

Category: Hardware
Product Number: ADV7280A

Product Number: ADV7280A-M

Environment

  • Platform: Linux kernel-based embedded system (i.MX)

  • Interface: MIPI-CSI-2

Issue Description

We're experiencing image quality degradation when frequently cycling the power state of the ADV7280A-M decoder. After debugging the kernel driver, we discovered that our application's stream-on/stream-off operations trigger a repetitive power cycling sequence (power-on → stream-on → stream-off → power-down).

With our application performing these cycles extensively, the camera image eventually exhibits various anomalies:

  • Color distortion

  • Image darkening

  • Black and white image instead of color

  • Other color space inconsistencies

---

The power management register (0x0F) is being accessed as follows in the kernel driver:

  • Power ON: Writing 0x04 to register 0x0F (PWRDWN bit = 0)

  • Power DOWN: Writing 0x24 to register 0x0F (PWRDWN bit = 1)

These operations can be traced in the Linux kernel implementation here:

https://github.com/nxp-imx/linux-imx/blob/lf-6.12.y/drivers/media/i2c/adv7180.c#L516-L546

Workaround

We've implemented a delayed power-off mechanism in our driver that only powers down the device if no power-on operations are requested within a configurable time window. This approach has fixed the issue in our testing.

Questions

  • What are the possible implications of setting the power down bit multiple times that could affect image quality?

  • Is the issue related specifically to the PWRDWN bit transitions (1 or 0), or could it be caused by other register settings that make the PWRDWN operations problematic?

  • Are there recommended practices for managing power states when applications require frequent stream cycling?

  • Is there a specified minimum time that should be maintained between power-down and subsequent power-up operations?

Thank you for your assistance.



The decoder
[edited by: Veethree at 8:37 AM (GMT -4) on 9 Apr 2025]
  • Hi,

     When performing the multiple Power down commands on the ADV728x (i.e. putting the ADV728x into and out of power down mode multiple times quickly) you may notice that the output from the ADV728x will become distorted.

    The color information may be swapped (red outputs appear blue), the output appears black and white, or the output image is very noisy.

    Unfortunately the toggling the powerdown command repeatedly will cause the ADV728x digital core to go into an undetermined state. This results in distorted output video.

    This is true if the powerdown pin or the powerdown bit is used.

    The only way to prevent this issue is to perform a software or hardware reset after the powerdown feature is used. i.e. perform the following sequence. 

    1) powerdown the ADV728x

    2) exit powerdown

    3) reset the ADV728x

    4) Exit reset and reprogram the ADV728x

    Thanks,

    Poornima