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

Commit 6d121278 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: Set calibration buffer number for FB speaker protection"

parents d6b0e99d 229659c4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -209,6 +209,7 @@ static int get_spkr_prot_cal(int cal_fd,
    cal_data.hdr.cal_type = AFE_FB_SPKR_PROT_CAL_TYPE;
    cal_data.hdr.cal_type_size = sizeof(cal_data.cal_type);
    cal_data.cal_type.cal_hdr.version = VERSION_0_0;
    cal_data.cal_type.cal_hdr.buffer_number = 0;
    cal_data.cal_type.cal_data.mem_handle = -1;

    if (ioctl(cal_fd, AUDIO_GET_CALIBRATION, &cal_data)) {
@@ -247,6 +248,7 @@ static int set_spkr_prot_cal(int cal_fd,
    cal_data.hdr.cal_type = AFE_FB_SPKR_PROT_CAL_TYPE;
    cal_data.hdr.cal_type_size = sizeof(cal_data.cal_type);
    cal_data.cal_type.cal_hdr.version = VERSION_0_0;
    cal_data.cal_type.cal_hdr.buffer_number = 0;
    cal_data.cal_type.cal_info.r0 = protCfg->r0;
    cal_data.cal_type.cal_info.t0 = protCfg->t0;
    cal_data.cal_type.cal_info.mode = protCfg->mode;