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

Commit 459e1f46 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dsp: Remove error log when there is no AFE cal data"

parents 1180359f 4417be62
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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);