A camera module comprising an image sensor array, a gain amplifier, an
indicator set to indicate whether a first flash device or a second flash
device is present, and a plurality of storage locations. The plurality of
storage locations is configured to store an exposure time and a gain. The
exposure time and the gain are associated with the first flash device in
response to the indicator indicating the presence of the first flash
device, and the exposure time and the gain are associated with the second
flash device in response to the indicator indicating the presence of the
second flash device. The image sensor array is configured to capture an
image using the exposure time, and the gain amplifier is configured to
perform processing on the image using the gain.