mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
Merge "dsp: Change condition for cal_data for v_vali_param"
This commit is contained in:
commit
86eff99707
1 changed files with 2 additions and 2 deletions
|
|
@ -8521,7 +8521,7 @@ static int afe_set_cal_sp_th_vi_cfg(int32_t cal_type, size_t data_size,
|
|||
uint32_t mode;
|
||||
|
||||
if (cal_data == NULL ||
|
||||
data_size != sizeof(*cal_data) ||
|
||||
data_size > sizeof(*cal_data) ||
|
||||
this_afe.cal_data[AFE_FB_SPKR_PROT_TH_VI_CAL] == NULL)
|
||||
goto done;
|
||||
|
||||
|
|
@ -8665,7 +8665,7 @@ static int afe_get_cal_sp_th_vi_param(int32_t cal_type, size_t data_size,
|
|||
int ret = 0;
|
||||
|
||||
if (cal_data == NULL ||
|
||||
data_size != sizeof(*cal_data) ||
|
||||
data_size > sizeof(*cal_data) ||
|
||||
this_afe.cal_data[AFE_FB_SPKR_PROT_TH_VI_CAL] == NULL)
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue