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

Commit 4c0da6ab authored by Ben Romberger's avatar Ben Romberger
Browse files

ASoC: msm: Fix DTS Eagle cal type initialization



Integration of DTS Eagle caused ADM cal types to not
initalize properly. Correct initialization of
calibration types within ADM.

Change-Id: Ic8b0b4d1cd57202931e82ca04f6dde80934afc61
Signed-off-by: default avatarBen Romberger <bromberg@codeaurora.org>
parent 763e35c9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -84,6 +84,8 @@ enum {
	ULP_AFE_CAL_TYPE,
	ULP_LSM_CAL_TYPE,

	DTS_EAGLE_CAL_TYPE,

	MAX_CAL_TYPES,
};

+6 −0
Original line number Diff line number Diff line
@@ -120,6 +120,9 @@ size_t get_cal_info_size(int32_t cal_type)
	case ULP_LSM_CAL_TYPE:
		size = sizeof(struct audio_cal_info_lsm);
		break;
	case DTS_EAGLE_CAL_TYPE:
		size = 0;
		break;
	default:
		pr_err("%s:Invalid cal type %d!",
			__func__, cal_type);
@@ -228,6 +231,9 @@ size_t get_user_cal_type_size(int32_t cal_type)
	case ULP_LSM_CAL_TYPE:
		size = sizeof(struct audio_cal_type_lsm);
		break;
	case DTS_EAGLE_CAL_TYPE:
		size = 0;
		break;
	default:
		pr_err("%s:Invalid cal type %d!",
			__func__, cal_type);
+4 −0
Original line number Diff line number Diff line
@@ -2274,6 +2274,10 @@ static int adm_init_cal_data(void)

		{{ADM_RTAC_APR_CAL_TYPE,
		{NULL, NULL, NULL, NULL, NULL, NULL} },
		{NULL, NULL, cal_utils_match_only_block} },

		{{DTS_EAGLE_CAL_TYPE,
		{NULL, NULL, NULL, NULL, NULL, NULL} },
		{NULL, NULL, cal_utils_match_only_block} }
	};
	pr_debug("%s:\n", __func__);