[Q] cm7 nightly camera preview freeze

Search This thread

slugthru

Senior Member
Feb 18, 2012
54
33
@slugthru
nice work, you should submit this on the cm gerrit review. None of their devs who manage the vivo read this section anymore and I don't see anyone ever dev'ing for the vivo except kali- / Guilio.

You should do it so that they are aware of it and can implement a patch.

Thanks, I plan to submit it but will have to wait until next week.
Besides, I only tested it one one device, it would be nice to see if there's some feedback.

Sent from my Incredible S using XDA
 

slugthru

Senior Member
Feb 18, 2012
54
33
Will it work with tiamat/lordclockans kernel or only cyanogen stock kernel?

Sent from my Incredible S using Tapatalk

I don't see why not, they share the same code. But the fix will have to get in the cm7 kernel git and in the tiamat git - only after that a new build of the tiamat kernel can be done with the fix. Or you can clone the tiamat kernel git, apply the fix and build it for yourself.

As for the zip file I uploaded - it contains an entire kernel and will overwrite any kernel you already have.


Sent from my Incredible S using XDA
 
  • Like
Reactions: SandySemenov

Psyloid

Senior Member
May 26, 2011
971
237
@slugthru
nice work, you should submit this on the cm gerrit review. None of their devs who manage the vivo read this section anymore and I don't see anyone ever dev'ing for the vivo except kali- / Guilio.

You should do it so that they are aware of it and can implement a patch.

Word !!! Do it, submit it !!

Sent from my HTC Incredible S using xda premium
 

Nonverbose

Senior Member
Sep 18, 2011
1,644
992
Adelaide
You're welcome! Good to know it is working for somebody else besides me :)

Sent from my HTC Incredible S using XDA

I installed it the other day, works brilliant. Lost it when I updated to 7.2 though and haven't reapplied yet. Nice work solving what has been the biggest issue with this Rom for most users on this device since day one. :cool:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Fixed CM7 nightly camera freeze

    Ok, I've had some time today and finally settled on a fix - don't know if it's the "right one" but it solves my problem.

    That means that camera works ok, camcorder works ok with the CM7 nightly.

    The fix: for vivo it will no longer reset the force update override in the panel setup (for everyone interested see below the file changed with diffs).

    For who wants to test this I've attached a kernel update (based on the vanilla cm7 gingerbread): View attachment cm7_kernel_cam_fix.zip. (PS: no support for this).

    Have fun!

    diff --git a/arch/arm/mach-msm/board-vivow-panel.c b/arch/arm/mach-msm/board-vivow-panel.c
    index 94ebc62..b91d3c3 100644
    --- a/arch/arm/mach-msm/board-vivow-panel.c
    +++ b/arch/arm/mach-msm/board-vivow-panel.c
    @@ -1106,13 +1106,15 @@ int __init vivow_init_panel(unsigned int sys_rev)

    B(KERN_INFO "%s(%d): enter. panel_type 0x%08x\n", __func__, __LINE__, panel_type);

    +#ifndef CONFIG_MACH_VIVO
    //use dmap for hitachi panel
    if(panel_type == PANEL_VIVOW_HITACHI)
    {
    mdp_pdata.overrides = 0;
    pr_err("%s: mdp_pdata.overrides = 0\n", __func__);
    }
    -
    +#endif
    +
    msm_device_mdp.dev.platform_data = &mdp_pdata;
    rc = platform_device_register(&msm_device_mdp);
    if (rc)
    2
    It works!!! Thank you man!!!

    You're welcome! Good to know it is working for somebody else besides me :)

    Sent from my HTC Incredible S using XDA
    1
    Hello everybody,

    I've noticed on my incs that for every cm7 nightly I tried the camera preview has a bug: the preview starts and freezes immediately. The preview only updates when there's some interaction with the screen (like changing the zoom level) .

    The camera is working, it takes pictures and the flash is functional.
    This behaviour is not present in the 7.1 stable version, but all nightly exibit the same behaviours - including a self build one from yesterday's git.

    Also, this happens with the standard camera app and with camera360, but lg camera works ok.

    Has anyone seen this behaviour - and is there a fix for it?
    Thanks.

    known bug; no Fix
    1
    Use Tiamat kernel. I had that with LordMod's kernel.