OSDN Git Service

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)
commit4ec8179c212fb1530df4a1df6db75756c06da5f6
tree74df875ad7fd1245b75f01312d0807937442acbe
parent354f6008b730a217a3e6ad982eda42e90e6f7473
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