Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overlay: Swap flips on 90 only for older mdp version.
Older mdp rotator does 90 first and flip next, forcing HAL to swap flips, in presence of 90. Newer mdp does flip first and 90 next, owing to DMA pipe. (Also similar to GPU flip handling). So we can pass flips as-is. Change-Id: I379509a07e45966262005666e7727e7923079d3a
- Loading branch information
Showing
5 changed files
with
34 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0e7dadd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using your repos in the last 3 months and display works very good. Only bug that I can't find where it comes from is this:
The above log is captured while opening camera. There is no preview on camera but capturing photos/videos works perfectly.
I can't find any info on the net or anyone with the same problem fixed. I'd be glad if someone can help, I'm struggling to find a solution to this in the past 2 months without success
0e7dadd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, pmem and genlock drivers are up-to-date in kernel, and include files in device overlay matches kernel?
Try also setting these permissions in ueventd.qcom.rc
/dev/genlock 0666 system system
/dev/kgsl 0666 system system
/dev/kgsl-3d0 0666 system system
/dev/kgsl-2d0 0666 root root
/dev/kgsl-2d1 0666 root root
/dev/pmem_smipool* 0660 system camera
0e7dadd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, drivers & overlay includes are up to date (3.4 kernel)
I was missing some of the ueventd entries, I'm going to try again and report back.
0e7dadd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I gave the right ueventd permissions but locat is still flooded by these errors:
0e7dadd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more info: this happens with the old 2.6.32 kernel too, 3.0.8 and 3.4.50 too
Camera libs are from ICS, I tried the -DICS_CAMERA_BLOB flag without success (also, front camera broke with this flag).
Preview works with this hack but preview image is stretched: LegacyXperia/android_packages_apps_Gallery2@08b8d56
0e7dadd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange. But it's ok if you revert this patch?
0e7dadd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry if I was confusing by commenting on this commit, you mean revert this commit?
No, it doesn't work, it never worked with any display repository I tried on cm-10.1.
I'm not sure of the behaviour in cm10, I think it doesn't work there too since we had to use LegacyCamera. I'll try cm10 with the normal camera app and report back.
0e7dadd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok. I thought you meant this patch was causing it, since you posted here.. :)
It sounds to me like it's your camera libs that's the fault here. That it's not quite compatible with pmem/genlock in kernel, or gralloc HAL.
0e7dadd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the hints, the errors are gone with 2 lines reverted from stock 2.6.32 kernel in kernel pmem driver.
Preview is still broken, now instead of solid grey color, it flashes between green & gray artifacts, kernel panic on shot/video. More work needed...
0e7dadd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, if you're interested in building cm-10.2, you can save some time using my updated repos here:
https://github.com/LegacyXperia/android_hardware_qcom_display-legacy/tree/cm-10.2
https://github.com/LegacyXperia/android_hardware_qcom_media-legacy/tree/cm-10.2
For now, build completes successfully but I haven't tested on actual device.
0e7dadd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, thanks. :)
0e7dadd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, ive been trying the last day to compile cm10.2 and im getting the error:
libandroid_runtime (/home/doadin/CM10.2/out/target/product/ancora_tmo/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/LINKED/libandroid_runtime.so)
frameworks/av/media/libstagefright/AwesomePlayer.cpp:1012: error: undefined reference to 'android::LPAPlayer::mObjectsAlive'
frameworks/av/media/libstagefright/AwesomePlayer.cpp:1084: error: undefined reference to 'android::LPAPlayer::LPAPlayer(android::spandroid::MediaPlayerBase::AudioSink const&, bool&, android::AwesomePlayer_)'
frameworks/av/media/libstagefright/AwesomePlayer.cpp:1685: error: undefined reference to 'android::LPAPlayer::mObjectsAlive'
collect2: error: ld returned 1 exit status
make: *_* [/home/doadin/CM10.2/out/target/product/ancora_tmo/obj/SHARED_LIBRARIES/libstagefright_intermediates/LINKED/libstagefright.so] Error 1
make: *** Waiting for unfinished jobs....
doadin@doadinbigbuildbox:~/CM10.2$
Sources:
https://github.com/doadin/Cyanogenmod-local_manifests/blob/master/cm10.2/local_manifest.xml
If anyone has any ideas(besides wait for the source to be cleaned/updated).(is there any better way?) Id appreciate it thank you.
0e7dadd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://review.cyanogenmod.org/#/c/46451/
0e7dadd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Do you have one booting yet?
0e7dadd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, haven't even worked on CM-10.2 for the Galaxy W yet. Too busy with the S4 Mini right now, so I don't know when I will have time to work on it.