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

Commit 2cd5a9c9 authored by android-build-team Robot's avatar android-build-team Robot Committed by android-build-merger
Browse files

Merge "audio: Handle missing / tainted calibration file" into pi-dev

am: 7780106b

Change-Id: I43b25583c1ee42bc60a9c512b9ab6341546cf1d3
parents 298462ec 7780106b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -284,10 +284,9 @@ static int audio_extn_cirrus_run_calibration() {

        cal_file = fopen(CRUS_CAL_FILE, "wb");
        if (cal_file == NULL) {
            ALOGE("%s: Cannot create Cirrus SP calibration file (%s)",
            ALOGE("%s: Cannot create Cirrus SP calibration file (%s), write cal value to dsp",
                  __func__, strerror(errno));
            ret = -EINVAL;
            goto exit;
            goto write_dsp;
        }

        ret = fwrite(&result, sizeof(result), 1, cal_file);
@@ -306,6 +305,7 @@ static int audio_extn_cirrus_run_calibration() {
              __func__);
    }

write_dsp:
    header.size = sizeof(header);
    header.module_id = CRUS_MODULE_ID_TX;
    header.param_id = 0;