auto exposure and white balance

Andre
I know this might a topic that is over everyone head :) 
but does anyone know where in the code is the auto exposure and white
balance for the camera? 
I want to install a 5MP camera sensor but the image looks over expose
because there is no white balance and auto exposure in the driver.