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

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

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

parents 45e51bad 8dc95009
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++;