Remove All Ads from XDA
Honor View 10

[SM-T31x] Unoffical CyanogenMod 11 front camera

24 posts
Thanks Meter: 19
By lee_w, Junior Member on 12th February 2014, 01:02 PM
Post Reply Email Thread
@ketut.kumajaya (this should be in your
[ROM][SM-T31x][JB/KK][4.3.1/4.4.2] CyanogenMod unofficial builds
thread but I don't have enough posts)

I was still having issues with the front camera recording video in my builds of your CM11 port, not that I really use it but I know lots of people were reporting issues with the cameras and saw a fix committed, so I thought I'd have a poke around.

It looks like a discrepency between the HAL and the media_profiles.xml config for the front camera frame rates. Your recent commit to android_device_samsung_lt01-common/camera/exynos_camera.c changes the front camera frame rates to 25,15 but
android_device_samsung_smdk4412-common/config/media_profiles.xml still uses 30 fps as the frameRate for all the EncoderProfiles for the front camera CamcorderProfile.

Changing media_profiles.xml to use 25 fps fixes front camera recording for me; not sure if this is the correct fix though, can't find definitive information on the supported frame rates for the SR130PC20.
The Following User Says Thank You to lee_w For This Useful Post: [ View ] Gift lee_w Ad-Free
12th February 2014, 01:17 PM |#2  
Recognized Developer
Flag Bekasi
Thanks Meter: 14,112
Donate to Me
Good finding. I just a bit tried working on CM for T31x and lonely Maybe @daavvis have a better idea about this media profile.
12th February 2014, 02:02 PM |#3  
OP Junior Member
Thanks Meter: 19
It's interestings because a strings of /system/lib/hw/ on the stock rom turns up


suggesting the stock HAL thinks the rates are 30/15fps for the rear camera and 30/20/15/8fps for the front, and the stock rom media_profiles.xml front camera uses 15fps for low quality profiles and 30fps for high quality. These rates match up with smdk4412-common/camera/exynos_camera.c but the kernel driver for sr130pc20 suggests the rates are auto/7/15/25/30 so I must be missing something somewhere.
12th February 2014, 03:09 PM |#4  
OP Junior Member
Thanks Meter: 19
Hmm, just tried another build reverting to:
.preview_frame_rate_values = "30,20,15,8"
.preview_frame_rate = 30
in exynos_camera.c and the media_profiles.xml back at 30fps and it does still work but the recorded video is still at 25fps.

I lose the chain of calls from calling ofile) at
frameworks/av/media/libmedia/IMediaRecorder.cpp setVideoFrameRate(int)
14th February 2014, 06:50 PM |#5  
OP Junior Member
Thanks Meter: 19
@daavvis you know anything about the iteraction between the media_profiles.xml and the camera HAL?
17th February 2014, 02:18 PM |#6  
Anil Shovo's Avatar
Senior Member
Thanks Meter: 52
Info 2 bug?
how many bug on cm11?
22nd February 2014, 04:58 PM |#7  
daavvis's Avatar
Senior Member
Thanks Meter: 2,125
Donate to Me
Originally Posted by lee_w

@daavvis you know anything about the iteraction between the media_profiles.xml and the camera HAL?

Sorry buddy just saw this... Best to hit me up on hangouts
Post Reply Subscribe to Thread

camera, sm-t310

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes