ASoC: Intel: Skylake: Use SG allocation for SKL-based firmware load
authorCezary Rojewski <cezary.rojewski@intel.com>
Mon, 5 Dec 2022 08:53:30 +0000 (09:53 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 7 Dec 2022 14:19:05 +0000 (14:19 +0000)
commit451d85c46cf719a09a052510d4d4cd920103163a
treeb06c1a6ff973931df09d7c7dde340740abe6022d
parent171107237246d66bce04f3769d33648f896b4ce3
ASoC: Intel: Skylake: Use SG allocation for SKL-based firmware load

Resign from ->alloc_dma_buf() and use snd_dma_alloc_pages() directly.
For data i.e.: base firmware binary transfer, make use of SG allocation
to better adapt to memory-limited environment. For BDL descriptor, given
its small size this is not required.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Tested-by: Lukasz Majczak <lma@semihlaf.com>
Link: https://lore.kernel.org/r/20221205085330.857665-7-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-sst-cldma.c