Merge "ASoC: add command id to packged reg val"

This commit is contained in:
qctecmdr 2020-12-18 01:37:28 -08:00 • committed by Gerrit - the friendly Code Review server
commit 3f57ae978c

View file

@ -5101,8 +5101,14 @@ static void set_cps_config(struct snd_soc_pcm_runtime *rtd,
/* bits 24:27 carry read length in bytes */
val |= 1 << 24;
/* bits 16:19 carry command id */
val |= (i*2) << 16;
/* Update dev num in packed reg addr */
pdata->cps_config.spkr_dep_cfg[i].vbatt_pkd_reg_addr |= val;
val &= 0xFF0FFFF;
val |= ((i*2)+1) << 16;
pdata->cps_config.spkr_dep_cfg[i].temp_pkd_reg_addr |= val;
i++;
ch_configured++;