diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2016-12-13 12:03:49 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-12-14 15:38:10 +0100 |
commit | 6fce983f9b3ef51d47e647b2cff15049ef803781 (patch) | |
tree | f96b8e3c51cad5fe29f7aed5f91d688cea61daed /include/sound | |
parent | Merge remote-tracking branches 'asoc/topic/wm9712', 'asoc/topic/wm9713' and '... (diff) | |
download | linux-6fce983f9b3ef51d47e647b2cff15049ef803781.tar.xz linux-6fce983f9b3ef51d47e647b2cff15049ef803781.zip |
ASoC: dwc: Fix PIO mode initialization
We can no longer rely on the return value of
devm_snd_dmaengine_pcm_register(...) to check if the DMA
handle is declared in the DT.
Previously this check activated PIO mode but currently
dma_request_chan returns either a valid channel or -EPROBE_DEFER.
In order to activate PIO mode check instead if the interrupt
line is declared. This reflects better what is documented in
the DT bindings (see Documentation/devicetree/bindings/sound/
designware-i2s.txt).
Also, initialize use_pio variable which was never being set
causing PIO mode to never work.
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
0 files changed, 0 insertions, 0 deletions