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

Commit 8dc95009 authored by Vignesh Kulothungan's avatar Vignesh Kulothungan Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: add command id to packged reg val



Add unique commond id to each slave packed register value.

Change-Id: I27f53932f7bf795bcf81ea56dba3e23d2715be05
Signed-off-by: default avatarVignesh Kulothungan <vigneshk@codeaurora.org>
parent 994729b1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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++;