diepquynh / android_device_samsung_vivalto3gvn

Device tree for Samsung Galaxy V SM-G313HZ
4 stars 20 forks source link

Audio recording not work. #9

Closed ngoquang2708 closed 8 years ago

ngoquang2708 commented 8 years ago

May be this issue related to phone call not work.

ngoquang2708 commented 8 years ago

I think removing of MR0_AUDIO_BLOB make audio recording work with default audio_policy.

diepquynh commented 8 years ago

Then i reports it doesn't work :D Even @corphish encounters it

ngoquang2708 commented 8 years ago

It is weird!

ngoquang2708 commented 8 years ago

I have some ideas. Report later.

ngoquang2708 commented 8 years ago

There is some SPRD_HARDWARE flags and def that I set in system/include/system/audio.h but I cannot send PR to you. See my android_system_core commits.

diepquynh commented 8 years ago

Lol

ngoquang2708 commented 8 years ago

Great news, audio recording dead again, doing clean build :D

ngoquang2708 commented 8 years ago

This time maybe build faster because I am a noob using make bacon instead of make -j4 bacon to use all CPU cores.

ngoquang2708 commented 8 years ago

And one plus point, I use pre-built webviewchromium now. Check my repo for cherry-pick.

diepquynh commented 8 years ago

Well, don't use make If you make userdebug build, better use "brunch vivalto3gvn" ( it means lunch cm_vivalto3gvn-userdebug && mka bacon(similar to make but use SCHED_BATCH to ultilitizes CPU cores to make sure it's building at maximum performance))

ngoquang2708 commented 8 years ago

Use make because of eng build :D. Now use make -j4 for four cores.

ngoquang2708 commented 8 years ago

Can I use mka for eng build after lunch? SCHED_BATCH attracts I.

ngoquang2708 commented 8 years ago

Found this

envsetup.sh:- mkap:     Builds the module(s) using mka and pushes them to the device.

No more copying!

diepquynh commented 8 years ago

Yes

ngoquang2708 commented 8 years ago

Never found this without your hints, thanks.

ngoquang2708 commented 8 years ago

Try this libaudioflinger.so.zip

diepquynh commented 8 years ago

What does it do? Edit: Well, it doesn't do anything more

ngoquang2708 commented 8 years ago

It solves my audio recording issue.

ngoquang2708 commented 8 years ago

OK, I will do more tests.

diepquynh commented 8 years ago

It's the same as my lib, but how there's sth that works with you, not mine and opposite? It's supposed to works with both LOL

ngoquang2708 commented 8 years ago

Please close this if it works now.

diepquynh commented 8 years ago

OK, i'll check it Compiling CM12.1 now :D

ngoquang2708 commented 8 years ago

OK

diepquynh commented 8 years ago

Confirmed

diepquynh commented 8 years ago

Dude, remove that stock APM blob. Without it, audio and recording still works.

diepquynh commented 8 years ago

We have audio_policy.default carry that, so it's OK

ngoquang2708 commented 8 years ago

I don't like stock audio blobs, It gives me headaches. I still keep it because it makes speaker works in call. But as you asked. I will remove it.