]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Intel: cnl: Use pm_gate->hdr.cmd in cnl_compact_ipc_compress()
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 28 Jan 2022 13:36:18 +0000 (15:36 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 28 Jan 2022 15:59:37 +0000 (15:59 +0000)
commitf96b4f7f2a656b01c4ac7c35e991c8957b4dd219
tree4ad607fa4fac3b4197d2c7859769dae0d4ec0e6f
parent28dea1feceea6b9954deacd94e6089aeaa12be2a
ASoC: SOF: Intel: cnl: Use pm_gate->hdr.cmd in cnl_compact_ipc_compress()

Instead of first checking the msg->header (which is the hdr.cmd), use
directly the cmd from the message itself.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220128133620.9411-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/cnl.c