I'll make a flashable zip, and remove those script to del cache and dalvik cache, they are not needed.
BTW, I've read the entire datasheet, but really there is no option there for tweaking the volume level of front speaker, it is depends on the service or perhaps the htcdialer, have to find it.
The MODE_RING in the file is used when you plugged in your headset, the 0x8E means enable both speaker and and headphone, that's it, notthing else, however the gain control can be changed also.
As I read the datasheet, there is a gain control that may doubled for just a single bit.
The last 2 0x56, 0x0D, 0x56 is for headset stereo gain, 0x0D is for FM tuner stereo gain, that's why in FM headset is 0x8D.