Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: SOF: Intel: hda: define macro for code loader stream format

This will be used for the ICCMAX stream as well.

Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20200826184532.1612070-6-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Ranjani Sridharan and committed by
Mark Brown
d43e3813 c07fa3fc

+2 -1
+2 -1
sound/soc/sof/intel/hda-loader.c
··· 22 22 #include "hda.h" 23 23 24 24 #define HDA_FW_BOOT_ATTEMPTS 3 25 + #define HDA_CL_STREAM_FORMAT 0x40 25 26 26 27 static int cl_stream_prepare(struct snd_sof_dev *sdev, unsigned int format, 27 28 unsigned int size, struct snd_dma_buffer *dmab, ··· 310 309 init_waitqueue_head(&sdev->boot_wait); 311 310 312 311 /* prepare DMA for code loader stream */ 313 - tag = cl_stream_prepare(sdev, 0x40, stripped_firmware.size, 312 + tag = cl_stream_prepare(sdev, HDA_CL_STREAM_FORMAT, stripped_firmware.size, 314 313 &sdev->dmab, SNDRV_PCM_STREAM_PLAYBACK); 315 314 316 315 if (tag < 0) {