Some sensor driver may not have HDR_EN ctrl.
It's not a fatal error. Just give a default value 0
to it.
Bug
1579861
Change-Id: I8b970cf17184edb18cd18dc8269b13ecbda6f7e4
Signed-off-by: Frank Shi <fshi@nvidia.com>
Reviewed-on: http://git-master/r/921824
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
err = v4l2_g_ctrl(s_data->ctrl_handler, &hdr_control);
if (err < 0) {
- dev_err(&client->dev, "could not find device ctrl.\n");
- return err;
+ dev_dbg(&client->dev, "could not find device ctrl.\n");
+ hdr_control.value = 0;
}
hdr_en = switch_ctrl_qmenu[hdr_control.value];