Loading sound/soc/codecs/wcd_cpe_core.c +14 −0 Original line number Diff line number Diff line Loading @@ -2191,6 +2191,13 @@ static int wcd_cpe_send_lsm_cal( goto unlock_cal_mutex; } if (lsm_cal->cal_data.size == 0) { dev_dbg(core->dev, "%s: No LSM cal to send\n", __func__); rc = 0; goto unlock_cal_mutex; } inb_msg = kzalloc(sizeof(struct cmi_hdr) + lsm_cal->cal_data.size, GFP_KERNEL); if (!inb_msg) { Loading Loading @@ -3191,6 +3198,13 @@ static int wcd_cpe_send_afe_cal(void *core_handle, goto rel_cal_mutex; } if (afe_cal->cal_data.size == 0) { dev_dbg(core->dev, "%s: No AFE cal to send\n", __func__); rc = 0; goto rel_cal_mutex; } is_obm_msg = (afe_cal->cal_data.size > CMI_INBAND_MESSAGE_SIZE) ? true : false; Loading Loading
sound/soc/codecs/wcd_cpe_core.c +14 −0 Original line number Diff line number Diff line Loading @@ -2191,6 +2191,13 @@ static int wcd_cpe_send_lsm_cal( goto unlock_cal_mutex; } if (lsm_cal->cal_data.size == 0) { dev_dbg(core->dev, "%s: No LSM cal to send\n", __func__); rc = 0; goto unlock_cal_mutex; } inb_msg = kzalloc(sizeof(struct cmi_hdr) + lsm_cal->cal_data.size, GFP_KERNEL); if (!inb_msg) { Loading Loading @@ -3191,6 +3198,13 @@ static int wcd_cpe_send_afe_cal(void *core_handle, goto rel_cal_mutex; } if (afe_cal->cal_data.size == 0) { dev_dbg(core->dev, "%s: No AFE cal to send\n", __func__); rc = 0; goto rel_cal_mutex; } is_obm_msg = (afe_cal->cal_data.size > CMI_INBAND_MESSAGE_SIZE) ? true : false; Loading