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

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

Merge "asoc: lahaina: add ch_mask check for CPS to avoid endless loop"

parents 6308e43e 518713ff
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -5128,6 +5128,11 @@ static void set_cps_config(struct snd_soc_pcm_runtime *rtd,
		return;
	}

	if (!ch_mask) {
		pr_err("%s: channel mask is 0\n", __func__);
		return;
	}

	if (!pdata->get_wsa_dev_num) {
		pr_err("%s: get_wsa_dev_num is NULL\n", __func__);
		return;