Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5268e82 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Camera1: Fix enable shutter sound command error handling.

Return the error codes from calls to enableShutterSound to the caller,
and don't call the HAL with the enable shutter sound command.

Change-Id: Ibe4943bd1cd0fcd1832fd904f12dd2f78fec06a5
parent 66765846
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -608,11 +608,9 @@ status_t CameraClient::sendCommand(int32_t cmd, int32_t arg1, int32_t arg2) {
    } else if (cmd == CAMERA_CMD_ENABLE_SHUTTER_SOUND) {
        switch (arg1) {
            case 0:
                enableShutterSound(false);
                break;
                return enableShutterSound(false);
            case 1:
                enableShutterSound(true);
                break;
                return enableShutterSound(true);
            default:
                return BAD_VALUE;
        }