Ok, we all know about the volume level changes on CodeAurora. I'm trying to take it a step further, as the speaker is still incredibly soft compared to my G1. I'm working on some kernel mods to boost the audio further.
If you look in q6audio.c where (along with board-mahimahi-audio.c) the audio hacks are made. The current mod just raises the values within the current range settings.
However, in q6audio.c at line 1275-1287 it defines the stream volume. There is code there to check if the min/max ranges set earlier in the file and in board-mahimahi-audio.c are within the ranges of the chip as I'm guessing defined by Qualcomm. My idea is to change those values, thus setting a higher range that we can use to set the volume. I've changed the code to set it at 3200 max & -2000 min which matches the original range of 1200 to -4000.
Then I set the values at 2000 & -400 for the speaker in the ealier min/max definitions at the beginning of q6audio.c & board-mahimahi-audio.c and I hear no discernable difference. Why?
When I change the values back to the original 1200 to -4000 and then just set the min/max values lower to see if it gets quieter, there is no difference yet again. I know my kernel is building right, because if I change kernel freqs/voltages it works, and if I change RAM tables it works, why won't the audio changes work?
Any kernel chefs wanna weigh in here? Any ideas to boost audio more? Thanks all, maybe we can finally get decent volume on our Nexii!
If you look in q6audio.c where (along with board-mahimahi-audio.c) the audio hacks are made. The current mod just raises the values within the current range settings.
However, in q6audio.c at line 1275-1287 it defines the stream volume. There is code there to check if the min/max ranges set earlier in the file and in board-mahimahi-audio.c are within the ranges of the chip as I'm guessing defined by Qualcomm. My idea is to change those values, thus setting a higher range that we can use to set the volume. I've changed the code to set it at 3200 max & -2000 min which matches the original range of 1200 to -4000.
Then I set the values at 2000 & -400 for the speaker in the ealier min/max definitions at the beginning of q6audio.c & board-mahimahi-audio.c and I hear no discernable difference. Why?
When I change the values back to the original 1200 to -4000 and then just set the min/max values lower to see if it gets quieter, there is no difference yet again. I know my kernel is building right, because if I change kernel freqs/voltages it works, and if I change RAM tables it works, why won't the audio changes work?
Any kernel chefs wanna weigh in here? Any ideas to boost audio more? Thanks all, maybe we can finally get decent volume on our Nexii!