Page 1 of 11 123 ... LastLast
Results 1 to 10 of 109

Thread: Camera -> Bugfix

777
  1. [translate]    #1
    Senior Member
    Join Date
    May 2010
    Posts
    853

    Default Camera -> Bugfix

    Now as people start to overclock their poor Spica i thought it is
    time to fix the camera bug, as it is no good idea to have it run
    overclocked at full speed all the time after using the camera.

    Add / Change the following in "s3c_camera_driver.c
    "

    #include <linux/cpufreq.h>


    void s3c_camif_unregister_sensor(camif_cis_t *cis)
    {
    __TRACE_CAMERA_DRV(printk("[CAM-DRV] +s3c_camif_unregister_sensor\n"));

    cis->init_sensor = 0;

    __TRACE_CAMERA_DRV(printk("[CAM-DRV] -s3c_camif_unregister_sensor\n"));

    /*-------------------------------------------------------------*/
    /* antibyte - little hack to restore the conservative governor */
    int ret = cpufreq_set_policy(0, "conservative ");
    printk("[CAM-DRV] set conservative cpufreq governor : %s\n", ret ? "failed":"ok");
    /*-------------------------------------------------------------*/
    }
    Last edited by antibyte; 08-26-2010 at 11:46 PM.

  2. [translate]    #2
    Senior Member
    Join Date
    Mar 2010
    Location
    Kiev, Ukraine
    Posts
    303

    Default

    Wow! cool antibyte! is it work for you?
    How about dark camera at start bug fix also? Is this possible?
    SamdroidMod + FE1->FE3->FE2->FE3->FE4->FE3->FE5->FE6->FE3->FE_prebeta7_5_MT->LK2.09.3+FE3->FE7b6->LK2.09.4+FE3->FE7->LK2.09.5+FE3->FE8_1+loop_v0.2->FE8_3+system_ext2/data_ext2->FE8_4+system_ext2/data_ext4 with ext2 loop device inside->Froyo_CM5.2+full ext2 - quadrant=670->CM6.1+full ext2->FE8b9UVSF+ext2/4->CM6.5->CM8.x+ext2/4

  3. [translate]    #3
    Member
    Join Date
    Jun 2010
    Location
    Poland
    Posts
    66

    Default

    Wouldn't it be better to (for example while turning on camera, in driver) save somewhere present governor and restore, it rather than setting it to conservative??

  4. [translate]    #4
    Junior Member
    Join Date
    Jun 2010
    Location
    usa
    Posts
    28

    Default

    wat is the wrong with the camera sombody tell me :?

  5. [translate]    #5
    Senior Member
    Join Date
    Jun 2010
    Location
    of_address_to_resource
    Posts
    114

    Default

    Would be better to set it to whatever governor it was running before than conservative...

  6. [translate]    #6
    Senior Member
    Join Date
    May 2010
    Posts
    853

    Default

    Quote Originally Posted by golecpch View Post
    Wouldn't it be better to (for example while turning on camera, in driver) save somewhere present governor and restore, it rather than setting it to conservative??
    Its just a quick hack, i thought about that too but was too lazy to figure out if the gouvernor is changed in the driver.
    I think it is changed in Androids Framework.

    ---------- Post added at 10:59 PM ---------- Previous post was at 10:56 PM ----------

    Quote Originally Posted by islam_ashraf View Post
    wat is the wrong with the camera sombody tell me :?
    After using the camera the cpu is stuck at 800 MHz and never goes back to powersaving lower frequencies until reboot.

  7. [translate]    #7
    Senior Member
    Join Date
    May 2010
    Location
    Луцьк, Україна
    Posts
    448

    Default

    Аntibyte,
    Thanks, I waited for it
    Если у вас есть интересные новости об Андроиде, то пишите мне в ЛС
    -------------------------------------------------------------------------------------
    If you have interesting news about the Android write to me in РМ

  8. [translate]    #8
    Junior Member
    Join Date
    Jun 2010
    Location
    usa
    Posts
    28

    Default

    Quote Originally Posted by antibyte View Post
    Its just a quick hack, i thought about that too but was too lazy to figure out if the gouvernor is changed in the driver.
    I think it is changed in Androids Framework.

    ---------- Post added at 10:59 PM ---------- Previous post was at 10:56 PM ----------



    After using the camera the cpu is stuck at 800 MHz and never goes back to powersaving lower frequencies until reboot.
    aah thanks alot ^^

  9. [translate]    #9
    Member
    Join Date
    Jun 2010
    Location
    Poland
    Posts
    66

    Default

    Quote Originally Posted by antibyte View Post
    Its just a quick hack, i thought about that too but was too lazy to figure out if the gouvernor is changed in the driver.
    I think it is changed in Androids Framework.
    If we would build eclair from source, will it have working camera?? If yes, we could check there for this bug. If it is in framework, we shouldn't have bug, if not, it could be code in driver or some kind of camera library (according to Camera | Android Open Source ).

  10. [translate]    #10
    Senior Member
    Join Date
    Mar 2010
    Location
    Kiev, Ukraine
    Posts
    303

    Default

    Quote Originally Posted by islam_ashraf View Post
    wat is the wrong with the camera sombody tell me :?
    When you by a spica?
    There is two bugs - dark camera at start and 800 mhz saving after close. But some new phones is not have this bugs... Am look prorerly worked camera on my friend's new phone
    Last edited by Pizzmaker; 08-27-2010 at 12:19 AM.
    SamdroidMod + FE1->FE3->FE2->FE3->FE4->FE3->FE5->FE6->FE3->FE_prebeta7_5_MT->LK2.09.3+FE3->FE7b6->LK2.09.4+FE3->FE7->LK2.09.5+FE3->FE8_1+loop_v0.2->FE8_3+system_ext2/data_ext2->FE8_4+system_ext2/data_ext4 with ext2 loop device inside->Froyo_CM5.2+full ext2 - quadrant=670->CM6.1+full ext2->FE8b9UVSF+ext2/4->CM6.5->CM8.x+ext2/4

Page 1 of 11 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •