PD#SWPL-25846
Problem:
h264 encoder not working on old socs pre-sc2
Solution:
make h264 encoder compatible with older socs
Verify:
verified on franklin
Change-Id: I1ddbea32748069be06ee344ec1dbf8987a5b350b
Signed-off-by: Rico Yang <wei.yang@amlogic.com>
#endif
}
- if (hcodec_clk_prepare(&pdev->dev, &s_hcodec_clks)) {
- //err = -ENOENT;
- enc_pr(LOG_ERROR, "[%s:%d] probe hcodec enc failed\n", __FUNCTION__, __LINE__);
- //goto ERROR_PROBE_DEVICE;
- return -EINVAL;
+ if (get_cpu_type() >= MESON_CPU_MAJOR_ID_SC2) {
+ if (hcodec_clk_prepare(&pdev->dev, &s_hcodec_clks)) {
+ //err = -ENOENT;
+ enc_pr(LOG_ERROR, "[%s:%d] probe hcodec enc failed\n", __FUNCTION__, __LINE__);
+ //goto ERROR_PROBE_DEVICE;
+ return -EINVAL;
+ }
}
if (get_cpu_type() >= MESON_CPU_MAJOR_ID_SC2) {