[Enhancement] Added configuration of camera parameter #1447
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
camera_config.xclk_freq_hz is hardcoded in camera.c as 24000000.
It needs to define xclk_freq_hz as 20000000 below on OV3660 camera device.
I tried sample camera programs as camera-server-jpeg and camera-server-motion-jpeg on XIAO ESP32S3 Sense and M5Atom S3R M12.
XIAO ESP32S3 Sense
OV2640 camera device
https://www.seeedstudio.com/XIAO-ESP32S3-Sense-p-5639.html
M5Atom S3R M12
OV3660 camera device
https://docs.m5stack.com/en/core/AtomS3R-M12
OV2640 works fine for me, but OV3660 does not work correctly.

OV3660 outputs corrupted JPEG data with xclk_freq_hz as 24000000.
I checked esp_camera.h in ESP32-Camera repository and tried a parameter same as xclk_freq_hz.
It works fine with 20000000.
https://raw.githubusercontent.com/espressif/esp32-camera/4335c93ec462a379aa2a3d655b8834972d725190/driver/include/esp_camera.h