mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Merge "dsp: Remove error log when there is no AFE cal data"
This commit is contained in:
commit
459e1f46fb
1 changed files with 5 additions and 2 deletions
|
|
@ -2144,12 +2144,15 @@ static int afe_send_cal_block(u16 port_id, struct cal_block_data *cal_block)
|
|||
result = -EINVAL;
|
||||
goto done;
|
||||
}
|
||||
if (cal_block->cal_data.size <= 0) {
|
||||
if (cal_block->cal_data.size < 0) {
|
||||
pr_debug("%s: AFE cal has invalid size!\n", __func__);
|
||||
result = -EINVAL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (cal_block->cal_data.size == 0) {
|
||||
pr_debug("%s: AFE cal size is zero!\n", __func__);
|
||||
goto done;
|
||||
}
|
||||
payload_size = cal_block->cal_data.size;
|
||||
mem_hdr.data_payload_addr_lsw =
|
||||
lower_32_bits(cal_block->cal_data.paddr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue