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)
committerMark Brown <broonie@kernel.org>
Mon, 22 Dec 2014 15:05:54 +0000 (15:05 +0000)
commit3475c3d034d7f276a474c8bd53f44b48c8bf669d
tree97657a04139c460ae8785d09a33b3d71a6a99514
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
ASoC: dwc: Ensure FIFOs are flushed to prevent channel swap

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>
Cc: stable@vger.kernel.org
sound/soc/dwc/designware_i2s.c