Or Continue to Thread: [ROM-AOSP] Unofficial CM10.1 (…
Find Your Device:
5th April 2013, 05:55 PM   |  #199  
Hashcode's Avatar
OP Recognized Developer
Thanks Meter: 22,450
 
3,232 posts
Join Date:Joined: Sep 2011
Donate to Me
More
Today, I pushed a very basic working audio HAL + config file to github:
https://github.com/KFire-Android/and...a3470f0869abb8
https://github.com/KFire-Android/and...edbf73dd69bb72

There is no volume adjustment implemented yet -- it's currently hard-coded to around 50% (kind of low). The kernel codec driver is designed to require a volume be sent to it every time audio is played and that's not how default Android works. To fix that I'm customizing the default audio_policy manager and having it send volume updates to the audio HAL (when it's changed). Be be another few days to work out the kinks on that.

Input is currently stubbed in with dummy code. That's #2 on the list of fixes.

And, I realize the source I'm working with is based on ICS where the audio devices for input and output could live harmoniously in 1 big enum field. That's been changed in JB so I need to split the input/output device handling. Right now if you tap on search or anything that re-routes input devices, then the output devices change as well and basically audio is borked till you reboot.

As I get time, I'll run a new build and post it. I may wait for basic volume function tho.
The Following 15 Users Say Thank You to Hashcode For This Useful Post: [ View ]