]> 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)
commit68ed8390051736f523c731751b4bbaf320427a00
tree74df875ad7fd1245b75f01312d0807937442acbe
parent92828e4b3dd1cb40c78d13f88d6834560eb3f1c9
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