/* Checks if given clock is used as source for any MCLK.  */
static bool dai_ssp_is_mclk_source_in_use(struct dai_intel_ssp *dp)
/* Checks if given clock is used as source for any MCLK.  */
static bool dai_ssp_is_mclk_source_in_use(struct dai_intel_ssp *dp)
{
	struct dai_intel_ssp_mn *mp = dai_get_mn(dp);
	bool ret = false;
	int i;
	for (i = 0; i < ARRAY_SIZE(mp->mclk_sources_ref); i++) {
		if (mp->mclk_sources_ref[i] > 0) {
			ret = true;
			break;
		}
	}
	return ret;
}