You're on codina? then you need codina sensors

Permissions for sensors - taken from SakuraDroid (just to patch)
Update flags for codina

You need to define STE_AUDIO flags as stated here https://github.com/CyanogenMod/android_frameworks_av/commit/df47610b339850e2ac3321a60ccd7108a1d30da3
And SAMSUNG_STE for this commit done by marcin to libhardware
https://github.com/CyanogenMod/android_hardware_libhardware/commit/927de3d6ccc1a6284de3b84f67c7bac660547f18
For camera, you will need this future commit, as stated by codeworkx, the flag is going to be STE_SAMSUNG_HARDWARE
http://review.cyanogenmod.org/#/c/43605/
You can implement the gerrit patch now, or wait until it gets merged :)
Merge pull request #1 from Paul-L/master

Update codina for audio and camera