mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
Merge "asoc: lahaina: add ch_mask check for CPS to avoid endless loop"
This commit is contained in:
commit
b41ef9ba59
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue