yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] fun_:
memo for hw video (it may contain unnecessary lines...)

files

/system/etc/firmware/*
/system/lib/libamavutils.so
/system/lib/libamplayer.so
/system/lib/libmedia.so
/system/lib/libmedia_jni.so
/system/lib/libmediaplayerservice.so

permissions

/dev/amaudio_ctl
/dev/amstream_abuf
/dev/amstream_mpps
/dev/amstream_mpts
/dev/amstream_rm
/dev/amstream_sub
/dev/amstream_sub_read
/dev/amstream_vbuf
/dev/amvideo
/dev/audiodsp0
/dev/graphics/fb0
/dev/graphics/fb1
/sys/class/aml_clk81/clk81_freq_level
/sys/class/amstream/amutils_cmd
/sys/class/amstream/amutils_enable
/sys/class/amstream/vcodec_profile
/sys/class/astream/format
/sys/class/audiodsp/codec_fatal_err
/sys/class/audiodsp/codec_mips
/sys/class/display/axis
/sys/class/display/mode
/sys/class/graphics/fb0/blank
/sys/class/graphics/fb0/free_scale
/sys/class/graphics/fb0/request2XScale
/sys/class/graphics/fb0/scale
/sys/class/graphics/fb0/scale_axis
/sys/class/graphics/fb0/scale_height
/sys/class/graphics/fb0/scale_width
/sys/class/graphics/fb0/virtual_size
/sys/class/graphics/fb1/blank
/sys/class/graphics/fb1/free_scale
/sys/class/graphics/fb1/scale
/sys/class/graphics/fb1/scale_axis
/sys/class/graphics/fb1/scale_height
/sys/class/graphics/fb1/scale_width
/sys/class/ppmgr/angle
/sys/class/ppmgr/ppscaler
/sys/class/ppmgr/ppscaler_rect
/sys/class/stb/demux1_source
/sys/class/stb/source
/sys/class/subtitle/curr
/sys/class/subtitle/enable
/sys/class/subtitle/fps
/sys/class/subtitle/startpts
/sys/class/subtitle/subtype
/sys/class/subtitle/total
/sys/class/tsync/discontinue
/sys/class/tsync/enable
/sys/class/tsync/event
/sys/class/tsync/pts_audio
/sys/class/tsync/pts_pcrscr
/sys/class/tsync/pts_video
/sys/class/video/axis
/sys/class/video/blackout_policy
/sys/class/video/device_resolution
/sys/class/video/disable_video
/sys/class/video/file_name
/sys/class/video/global_offset
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

properties

media.amplayer.enable-acodecs=asf,wav,aac,mp3,m4a,ape,flac,alac
media.amplayer.enable=true
media.amplayer.thumbnail=true
media.amsuperplayer.defplayer=PV_PLAYER
media.amsuperplayer.enable=true
media.amsuperplayer.m4aplayer=STAGEFRIGHT_PLAYER
[Miscellaneous Android Development] c.martinez.lozano:
I think it is related to the kernel, but not sure

I have an official ICS CT1002 tablet with light sensor, but.. not use memsic :(

On Nvsbl Sirius i need libsensors and memsicd with light sensor.

I will adapt it to SuperOSR.
[Miscellaneous Android Development] fun_:
xPAD-70 also don't use memsicd. sensors.amlogic.so in xPAD-70 ROM handles accelerometer and light sensor directly.

can I see official ICS ROM for CT1002?
[Miscellaneous Android Development] $$pasquale:
once again the problem was the permission!

Have you used my VideoPlayer mod?

Probably work without, but with VideoPlayer and libsubjni.so (and permissions..) we can view subtitles. ;)

For camera problem in GB I solved (with amlogic sources) but I have to change the patch because force video size.

Sorry, I'm very busy in this days, I hope to help you this week...

Thanks for your works, friends! :)
[Miscellaneous Android Development] fun_:
I only checked your log which said "createNormalSurfaceLocked() failed", and checked code around it, then gave up.

my memo is for amplayer called from libmediaplayerservice. VideoPlayer should use different JNI so other files/permission may be necessary.

I'm not sure how good about amlogic's VideoPlayer.apk but probably I will not use it on my CM9.

there are some media players in play store which support many formats/features and hw video through mediaplayerservice.

EDIT:

oh I noticed video is not scaled/rotated correctly on YouTube app :(

I also don't have enough time for now. it needs more investigation... it will be done gradually.
[Miscellaneous Android Development] c.martinez.lozano:
To view subtitles you can try with MX player or another player

---------- Post added at 07:28 PM ---------- Previous post was at 07:26 PM ----------

http://minus.com/mbnfJqgP1U#6 :)
[Miscellaneous Android Development] $$pasquale:
I know but sometimes don't work fine, especially with HDMI.

----

https://github.com/CyanogenMod/andr...ces/camera/libcameraservice/CameraService.cpp

framework/base/service/camera/libcameraservice/CameraService.cpp - line 1209

int CameraService::Client::getOrientation(int degrees, bool mirror) {
if (!mirror) {
if (degrees == 0) return 0;
else if (degrees == 90) return HAL_TRANSFORM_ROT_90;
else if (degrees == 180) return HAL_TRANSFORM_ROT_180;
else if (degrees == 270) return HAL_TRANSFORM_ROT_270;
} else { // Do mirror (horizontal flip)
if (degrees == 0) { // FLIP_H and ROT_0
return HAL_TRANSFORM_FLIP_H;
} else if (degrees == 90) { // FLIP_H and ROT_90
return HAL_TRANSFORM_FLIP_H | HAL_TRANSFORM_ROT_90;
} else if (degrees == 180) { // FLIP_H and ROT_180
return HAL_TRANSFORM_FLIP_V;
} else if (degrees == 270) { // FLIP_H and ROT_270
return HAL_TRANSFORM_FLIP_V | HAL_TRANSFORM_ROT_90;
}
}
LOGE("Invalid setDisplayOrientation degrees=%d", degrees);
return -1;
}

We can force this?? I don't know CM9, it is very different from CM7...
[Miscellaneous Android Development] fun_:
well, my statement was not clear.

I understand VideoPlayer should have some "pros" so making it work is a good thing to do. currently I think "createNormalSurfaceLocked() failed" is not permission issue, so more time is needed.

enabling hw video via mediaplayerservice can be done independently (I know there are a lot of common things like as libs, permissions, and firmwares). it should be good for general cases such as YouTube and other apps (e.g. game) which play videos.

I think it's not perfect yet... scaling and rotation is not working. also I want to try to make minimal patch to use hw video without binary libmedia* and without amlogic's source.

I'm not sure when it will be done, so at this time I'm thinking to make next release with HDMI support and hw video support with binary libmedia*.

VideoPlayer and camera support are for future work for everyone :)
[Miscellaneous Android Development] ifynk:
Sorry, but I do not understand. Can you add support for a resistive TS?
[Miscellaneous Android Development] ifynk:
fun_, I hope for you. Give me a sign)))
[Miscellaneous Android Development] fun_:
I'm busy. I can't promise anything.

ok, I will try it. but generally I need some weeks(or a month) to change few lines. so it may need several months.
[Miscellaneous Android Development] ifynk:
Ok i will wait. Thank you very match.
[Miscellaneous Android Development] fun_:
sorry, I'm still busy :(

http://files.androtab.info/amlogic/cm9/20120401/

built from latest 4.0.4 based CM9 source code.

CM9 for Digma iDx7 are made instead of WayteQ xPAD-70. IDX7H1106 should work on xPAD-70. please try accelerometer.

no other changes. no HDMI switch, no hw video. sorry.
[Miscellaneous Android Development] urkelz:
any way I can fix microphone input?
[Miscellaneous Android Development] carrotts:
Hi fun_

Tried the one suggested and it seems to run as before. Only give it a quick go over. Screen didn't autorotate so presuming accelerometer is still not right. I'm on hols for a week so won't be able to do much testing.

The rom runs very smooth, don't think its far off at all. Keep up the good work and no need to say sorry all the time.

Cheers

Carrotts
[Miscellaneous Android Development] fun_:
thank you for your information!

hmm... accelerometer fix was ad-hoc :( I'll try it differently. but if you can, please get logcat while booting.

thank you for your cooperation!
[Miscellaneous Android Development] Vl(@)d:
Hi fun_

thank you for your work:)

my logcat with Digma IDX7H1106.
[Miscellaneous Android Development] mrbender666:
Hi,

maybe a stupid question, is this CM9 working also on zt-280 C91 upgrade ?

thank you
[Miscellaneous Android Development] fun_:
thank you.

http://files.androtab.info/amlogic/cm9/20120401/

IDX7 files are replaced now. please try accelerometer again...
[Miscellaneous Android Development] fun_:
I don't have any 8726-M3 tablet but I hope it will work with some modifications.
[Miscellaneous Android Development] Vl(@)d:
thank you. It almost works.

I edited init.rc

# G-Sensors
chmod 0666 /dev/mpu
chmod 0666 /dev/mpuirq
chmod 0666 /dev/timerirq

It works, but there is a problem with the axles. Please look at the pictures.
[Miscellaneous Android Development] fun_:
http://files.androtab.info/amlogic/cm9/20120401/

files for IDX7 are replaced again. please try accelerometer without any modification.
[Miscellaneous Android Development] fun_:
you always got 90degree rotated(CW) screen on all 4 directions?

(if you already changed rotation settings, please make sure to enable all 4 directions before testing)

----

it's common issue on chinese cheap tablet. memsicd has a function to correct it. I don't know about accelerometer on iDx7 series yet. I'll check it.

if function is missing I need to add my hack (done in CM7) to CM9. it should be easy but it will be delayed.

EDIT:

probably MLSetAccelCalibration() will do it, but currently I have no idea how to call it. if /data/cfg.bin and /data/cal.bin are available on stock rom, I want to see them. if they are also available on my CM9(after wipe, of course), please tell me.

EDIT2:

http://android.yongbok.net/repository/hardware/invensense/

interesting :)

it seems similar accelerometer is used on some HTC android phones.

EDIT3:

oh I didn't notice there is hardware/invensense/ in AOSP ICS source ;)
[Miscellaneous Android Development] Vl(@)d:
accelerometer works, but there is a similar problem.

In all directions is rotated 90 degrees to the left.

These files are not on your CM9 and on stock rom.
[Miscellaneous Android Development] fun_:
thank you. that is what I intended.

I see. I guess it can be fixed by calibration file. but I need to read source code to understand how to make it. probably just swapping values in source code of sensors.amlogic. so should be easy.

anyway, it needs more time. sorry, please use CM9 with accelerometer disabled for a while...
[Miscellaneous Android Development] fun_:
I'll add HDMI switch and hw video support on next release.

then, I may add support for other AML8726-M tablets. if you have a tablet which is not supported yet, please tell me about your tablet.

at least you need to give a link to your tablet and official rom for your tablet. I'm busy, if you just post "please support my tablet! thank you!", I can't help you.

about -M3 tablets, I hope I can do something, but please keep in mind I don't have any -M3 tablet.

if TS on your tablet needs calibration, sorry, it doesn't work at this point.

thank you for your cooperation.
[Miscellaneous Android Development] Vl(@)d:
ok. thank you.

The file "eGalax_Touch_Screen.idc" must be renamed to "Touch_Screen.idc" in IDX7H1110 and IDX7H1111, because otherwise there will be problems with touchscreen.
[Miscellaneous Android Development] fun_:
oh, thank you. it seems WayteQ xTAB-70 also uses "Touch_Screen" ver. like as H1110/H1111. I'll add .idc for them.

btw do you have H1110/H1111 ver. too?

EDIT:

I found you at 4pda.ru :) I can't read russian so if they found something in my CM9 please tell me in english ;)

btw I added "Touch_Screen.idc" and replaced IDX7H1110/IDX7H1111 files on my site. this is last update for 20120401 release.

I'll update my site/post#1 to add "Digma iDx7/WayteQ xPAD-70" to supported list. (I guess it may work on xTAB-70 and QUMO 2Go! too)

thank you for your cooperation!
[Miscellaneous Android Development] Vl(@)d:
I don't have H1110/H1111 ver. This is discussed in our forum (4pda.ru). We have a lot of people with different versions of the devices.

The developers will soon release the official Android 4.0 for Digma idx7:)
[Miscellaneous Android Development] urkelz:
Fun any chance to enable microphone input in next release? :p
[Miscellaneous Android Development] fun_:
at this time, no. but I can't promise anything.
[Miscellaneous Android Development] Vl(@)d:
If you write ro.sf.hwrotation=270 in build.prop then accelerometer will work properly, but touchscreen will not work correctly. The coordinates of the touch is not determined correctly:(
[Miscellaneous Android Development] fun_:
yeah, I'm sure about it... I made some changes to fix this(and other) issues for CM7, but not yet done for CM9.

even if accelerometer works fine (e.g. on NOVO8), some tablet-unaware apps behave wrongly. these apps don't know landscape is default(0 degree) on tablet :(

I hope such kind of apps will be fixed in HC/ICS age... but probably my changes will be necessary again :(

anyway, thank you for your report.
[Miscellaneous Android Development] fun_:
sorry for late reply.

I confirmed CT1002 uses InvenSense sensor which is also used in Digma iDx7/WayteQ xPAD-70.

well... probably I misunderstood your message. you need light sensor support for Sirius, not for CT1002, right?

can I see official ROM for Sirius?
[Miscellaneous Android Development] Xelit:
I've got Digma iDx103G device, it simillar iDx7... same platform, different screen resolution (1024x768).

Developers sad that ICS will be at 15 of april. I saw pre alpha version (did not work) and it was based on 3.0.8 kernel... Due to it - i think that new linux kernel for AMLogic devices will be very interested for you glorious work on CM9 :) When it will become to us - I’ll write message with link for you.

P.S. I hope, that you will support Digma iDx10 3G too ;) Any test can be proceed on my iDx10.

P.P.S. Sorry for my terrible english.

P.P.P.S 2Vl(@)d : Xelit=NewVid
[Miscellaneous Android Development] fun_:
3.0.8 kernel is also used in AML8726-M3 ICS tablets. 3.0.8 kernel for some tablet will not help me because I don't have that tablet.

anyway, CM9 for 3.0.8 kernel can be made. I'm doing it for some other tablets. but some changes are necessary because current CM9 for AML8726-M is prepared for 2.6.34 kernel.

as I said, I can make CM9 for other tablets. but, please read my message...

http://xdaforums.com/showpost.php?p=24379509&postcount=550
[Miscellaneous Android Development] Xelit:
Mia culpa...

lates firmware: http://www.ddixlab.ru/download/Digma/Ipad/IDX10/IDx103G_018.zip
[Miscellaneous Android Development] fun_:
thank you. I'll check it later...

EDIT:

hmm.

http://4pda.ru/forum/index.php?showtopic=274667

20120118 ROM for "iDx10" and "iDx10 3G" are same, but

http://ddixlab.ru/forum/viewtopic.php?f=19&t=2375

there are 2 versions...?

do you know difference between "iDx10" and "iDx10 3G"?

do you know about ddixlab.ru?

EDIT2:

ah, I see. there are "Developers" who are making ICS ROM for iDx7/10 on ddixlab.ru.

anyway, I confirmed iDx10/10 3G are very similar to iDx7. I'll make CM9 for iDx10 and iDx10 3G with latest 2.6.34 kernel.
[Miscellaneous Android Development] Vl(@)d:
"iDx10 3G" has 3g modem, but no other differences.

ddixlab.ru is the official forum by Digma.
[Miscellaneous Android Development] Xelit:
No, ddixlab - sub layer between users and manufacture. They organize low level support, testing new firmware, collect software and hardware bugs for developers… but developers are Chinese :( I think that “our” developers is Nippon Klick Ltd.

thx for CM9 :)

P.S. NewVid it's me :) I’m curator of iDx7 firmware and iDx10/iDx103G firmware topics.
[Miscellaneous Android Development] itekneo:
Hi,

i have a generic 10" resistive Amlogic AML8726-M tablet and i'm very interested in your project.

my tablet have the stock 2.2 rom with non working market but appchina app :(

here are the specs of my tablet :

is testing this rom safe for my tablet ? is there any console to the bootloader in case of non working kernel ? uart interface ?

how can i help to this project ?

i have some knowledge of linux and cross-compiling but a i'm a noob on the android platform :D

regards
[Miscellaneous Android Development] fun_:
I don't recommend to use my files on other tablets without necessary changes.

sorry, I don't know about your tablet.

I'm working without console access. it may be better, but I don't touch kernel(I don't have fully working kernel source) so all problem should happen on userland.

init and adbd will run in most cases so I can collect information via adb.
[Miscellaneous Android Development] itekneo:
my board is YX-10A01-V1.1

this is another clone Amlogic MESON board rev v1.1 ...

what information do you need ?

config.gz ? mtd map ?

i have acces to adb and recovery
[Miscellaneous Android Development] fun_:
well, I just said I don't use console for this project.

sorry, I misunderstood your message. what do you need? did you ask me to do something?
[Miscellaneous Android Development] itekneo:
hi fun_,

i´m sorry but you missed my first message

i was thinking that your project is to build CM for 8726M tablets and you´re searching testers and help.

i have a 8726M tablet that is not supported yet in your project :)

i´m ok to test any updates and i want to try adding support for my tablet in your project.

if you are ok, please point me in the right direction to begin.

i have adb access to the tablet and can launch recovery.

i understand that you don´t need console access, i was thinking you need some files from my tablet but maybe i´m wrong.
[Miscellaneous Android Development] fun_:
well, then, please identify your tablet first. even if CM9 works after some amount of work, I can't explain for what...

can you tell me any web site about your tablet, or photos, or rom download link for your tablet? if I can get rom, I can get necessary files from it.
[Miscellaneous Android Development] itekneo:
i give you all information by PM since i'm a new user i can't post any links in the forum

basically the brand is YX and the model YX-10A01, the board is YX-10A01-V1.1.

you can search the web for szyongxiang.com website product is MID tablet model YX-10A01.

original firmware is not online, i asked both vendor and manufacturer for it.
[Miscellaneous Android Development] fun_:
http://files.androtab.info/amlogic/cm9/20120411/

new test images are uploaded.

CWM/CM9 for iDx10/3G are added. please try. accelerometer may not work correctly as like as iDx7.

(edited entirely)

HdmiSwitch is added. please try.

some parts of hw video are added, but it doesn't work(crashes on boot) so I disabled it for now.

something may be changed between 4.0.3 and 4.0.4, but I might missed something. I'll try again.

now /system is 300MB and /data is 100MB after factory reset & installing update.zip and gapps 20120317. please tell me if your /system and /data is too small...
[Miscellaneous Android Development] kulinkin.d.v:
for mr. fun_

hi!! i wrotten to You alredy. here http://xdaforums.com/showthread.php?t=1101094&page=123 You posted that you can make cyanogenmod for QUMO GO. could you make it, because i need it. thanks
[Miscellaneous Android Development] ifynk:
thanks. you promised to add support resistive TS ;)
[Miscellaneous Android Development] c.martinez.lozano:
Take a look on SuperICS framework base source at branch ics-amlogic, you have two gifts :)
[Miscellaneous Android Development] fun_:
I'm sure about my todos but sorry pushing me doesn't give anything... as usual, I need my free time :(

EDIT:

I also want to add support for resistive TS. and also want to add dejitter code for unstable TS on NOVO8. and also want to do some other things... but I don't promise when it's done.
[Miscellaneous Android Development] fun_:
https://github.com/SuperICS/android_frameworks_base/commit/763f5cb949ff1de20ef001630d75c58d05ed930c

this commit?

I guess MediaRecorder.java change will fix hw video issue...

and rotation? I'm sure about it :)

anyway, thank you for your information.
[Miscellaneous Android Development] fun_:
here is not for telechips tablet. sending PM doesn't change anything. sorry.
[Miscellaneous Android Development] fun_:
well, your change is necessary if I'm using binary libmedia_jni.so.

I also tried to build libmedia/libmedia_jni from CM9 source and I got another issue. now, I just find workaround for "another issue", by using binary libstagefright.so.

now we have 2 way, using binary libmediaplayerservice.so/libmedia.so/libmedia_jni.so, or using binary libmediaplayerservice.so/libstagefright.so with small modification to libmedia source(will be pushed, of course).

I'll try later way. I'm not sure which is better. binary libmedia.so may have important change.

cml, please keep your change. then we can compare both at any time :)
[Miscellaneous Android Development] c.martinez.lozano:
You can take a look to my github https://github.com/CML i uploaded my device and propietaries.

For HW accelerated video i'm using a mediaserver propietary binary.

I'm using libstagefright.so propietary at this moment.

I need to clean some propietaries that works with standard build.

One more thing, with audio propietaries i was uploaded to my repo microphone works.

And if you like, i have uBoot code and you can take a look to my kernel. I modified partitions for Nvsbl Sirius "Gadmei T820" and other changes to improve performance with my propietaries.

Sorry about my bad english. I hope you understand me
[Miscellaneous Android Development] fun_:
please explain which boot.img you try to flash and which program you are using for flashing it.

currently flash_image in my CM7 can't flash image smaller than erase block, so I padded boot.img to 4MiB in my update.zip.
[Miscellaneous Android Development] fun_:
it looks like almost good, but I feel something strange a bit. I really like 32bpp screen but I'll stick to use kernel from 2.2 rom for a while :(

EDIT:

OP download link is reverted to 20111024
[Miscellaneous Android Development] Toshimitsu:
Thanks for the fast reply. :D

As flash_image didn't work for me as you mentioned i just used your update.zip to flash the rom. Is there any other way to flash it?
[Miscellaneous Android Development] fun_:
how to install my CM7 is described in post#2.
[Miscellaneous Android Development] Toshimitsu:
Its not that i didn't try it, but as mentioned the installation was always aborted saying Error with status 0. The log showed that its always being aborted while trying to flash the boot.img
[Miscellaneous Android Development] naguz:
Agree, I did admit I digressed. Sadly, chinese manufacturers couldn't care less about a mail from gpl-violations, so I'll guess we can just forget it. Will keep it out of this threas, anyway.

There is Android source from amlogic on the wiki (instructions here. (Just mentioning in case you missed it.) Both that, and their kernel source, is availible for the SoC used in novo 8. Of course, they don't provide source code for the novo 8 itself with all its bells and whistles, that is Ainols job, Amlogic has nothing to do with that.

Anything in particular that made you go back to 2.2. kernel, except that it felt strange as a whole?
[Miscellaneous Android Development] fun_:
sorry, please clarify, you followed my procedure then got error? or try to install my update.zip another way?
[Miscellaneous Android Development] fun_:
sigh. I never missed. can you really get source code? if you can, please show me any file from them.

as I said repeatedly, no kernel source code for novo8.
[Miscellaneous Android Development] Toshimitsu:
narr my mistake. Firstly i just wanted to try out your rom and flashed as its written in your description with CWM.

It didn't work:

...
minzip: Extracted file "/system/xbin/vim"
about to run program [/tmp/backuptool.sh] with 2 args
about to run program [/tmp/modelid_cfg.sh] with 1 args
about to run program [/tmp/verify_cache_partition_size.sh] with 1 args
flashing boot from /tmp/boot.img
E:Error in /sdcard/aml8726m_update.zip
(Status 0)
Installation aborted.

Later on i wanted to replace the boot.img due its size.
[Miscellaneous Android Development] fun_:
I see. please tell me /proc/mtd on your novo8. mine is

mtd4: 02000000 00400000 "boot"

erase size is 4MiB.

EDIT:

if you know well about u-boot, you can flash boot.img with u-boot, or just load & boot boot.img from SD card.