]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: apple: mca: Postpone requesting of DMA channels
authorMartin Povišer <povik+lin@cutebit.org>
Mon, 5 Sep 2022 07:40:30 +0000 (09:40 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 5 Sep 2022 12:09:41 +0000 (13:09 +0100)
commitdd37036c7f5cb459ae34884d9806a32664b58642
tree74df875ad7fd1245b75f01312d0807937442acbe
parentff0df8dfdb1d3d864e198df9f666168248afd32e
ASoC: apple: mca: Postpone requesting of DMA channels

Move the requesting of DMA channels further down from 'probe' to
'pcm_new'. This is to spare the allocated DMA channel resources as we
typically only ever use one or two of the clusters for PCM streaming.
Before we would request DMA channels for all clusters.

(This is prompted by a change in the Audio DMA Controller driver, which
will now be allocating cache SRAM to channels.)

Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220905074030.1293-1-povik+lin@cutebit.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/apple/mca.c