OSDN Git Service

ASoC: dmaengine: Improve of_node test in dmaengine_pcm_request_chan_of()
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 7 Feb 2019 17:00:09 +0000 (18:00 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 12 Feb 2019 16:29:29 +0000 (16:29 +0000)
commit51256d348c9af1bf544a4432abc1d5f2fd3ef34b
tree08419790d1d0a94557301c284e7d00b72f5bdf1a
parent595d2f74cd3caedb704a118bd09c1b4dfbfc0ec0
ASoC: dmaengine: Improve of_node test in dmaengine_pcm_request_chan_of()

Currently when of_node of the "PCM" device is null
dmaengine_pcm_request_chan_of() function will bail out, including cases
when custom DMA device is intended to be used.  To have the channels
properly requested when custom DMA device is provided extend the of_node
test to also consider dma_dev->of_node.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-generic-dmaengine-pcm.c