ASoC: dwc: Ensure FIFOs are flushed to prevent channel swap
authorAndrew Jackson <Andrew.Jackson@arm.com>
Fri, 19 Dec 2014 16:18:05 +0000 (16:18 +0000)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:05:43 +0000 (13:05 +0000)
commit9a0e619a6e28efc9b9f07dedec5e4adaabc4fe08
tree1a7a15b31f617855dbbca61a6d691d06cdf6f82f
parent50bf4d554616b128aab714f26f0d26ba29b6beaa
ASoC: dwc: Ensure FIFOs are flushed to prevent channel swap

commit 3475c3d034d7f276a474c8bd53f44b48c8bf669d upstream.

Flush the FIFOs when the stream is prepared for use.  This avoids
an inadvertent swapping of the left/right channels if the FIFOs are
not empty at startup.

Signed-off-by: Andrew Jackson <Andrew.Jackson@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/dwc/designware_i2s.c