My camera does also 5mpix, even with the CM firmware directory.
I tried to copy libhtc_ril.so also, and files from /system/lib/hw, but cannot get the sound working :(
Next time, I will play with libaudio.so and all audio-related files...
For the camera, I will try to play with libaudio*.so...