AMLogic hardware video decoding in nightly builds
I have product called Ditter U29 AML8726-MX, I have the same audio sync problem but fixed with 666 permissions

I unpack boot.img from my device and in file called init.amlogic.rc appear much chmod 0664 to /sys/class/*:

Code:
chmod 0664 /sys/class/tsync/pts_video
chmod 0664 /sys/class/tsync/pts_audio
chmod 0664 /sys/class/tsync/pts_pcrscr
chmod 0664 /sys/class/tsync/event
chmod 0664 /sys/class/tsync/mode
chmod 0664 /sys/class/tsync/av_threshold_min
chmod 0664 /sys/class/tsync/av_threshold_max
chmod 0664 /sys/class/tsync/enable
chmod 0664 /sys/class/video/blackout_policy
chmod 0664 /sys/class/video/screen_mode
chmod 0664 /sys/class/video/axis
chmod 0664 /sys/class/video/disable_video
chmod 0664 /sys/class/video/zoom
and much more

For this cause, You can't change permissions on every boot with INIT.D enabled and script on /etc/init.d because this execute script before boot.img change permissions

INIT.D script permissions -> boot.img permissions -> Load Android

But you only need change permissions on:

Code:
chmod 666 /sys/class/video/axis
chmod 666 /sys/class/video/screen_mode
chmod 666 /sys/class/video/disable_video
chmod 666 /sys/class/tsync/pts_pcrscr
chmod 666 /sys/class/audiodsp/digital_raw

For change permissions on boot device, There are two ways:

Easy (Need ROOT):

Follow this tutorial: http://www.technohunk.com/2013/02/how-to...t-android/

But on script name put amlogic and put this content:

Code:
#!/system/bin/sh
chmod 666 /sys/class/video/axis
chmod 666 /sys/class/video/screen_mode
chmod 666 /sys/class/video/disable_video
chmod 666 /sys/class/tsync/pts_pcrscr
chmod 666 /sys/class/audiodsp/digital_raw

Reboot and presto, change permissions correctly!

SManager run script after load Android and change permissions after boot.img

boot.img permissions -> Load Android -> SManager run script for change permissions

Hard:
Unpack boot.img, Open file called init.amlogic.rc and change this lines to chmod 666:

Code:
chmod 664 /sys/class/video/axis
chmod 664 /sys/class/video/screen_mode
chmod 664 /sys/class/video/disable_video
chmod 664 /sys/class/tsync/pts_pcrscr
chmod 664 /sys/class/audiodsp/digital_raw

Before this, Flash boot.img with CWM or flash_image binary from Rockchip devices (Yes, Work on Amlogic devices)

I recommend to use EASY step for avoid dead your device

For developers this is complete init.amlogic.rc: http://pastebin.com/8r3jya11
Reply


Messages In This Thread
RE: AMLogic hardware video decoding in nightly builds - by bass305 - 2014-08-04, 02:17


Logout Mark Read Team Forum Stats Members Help
AMLogic hardware video decoding in nightly builds1
This forum uses Lukasz Tkacz MyBB addons.