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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Jan 2015 14:59:00 +0000 (06:59 -0800)
commit97a3f651913ffb8e13357913d6e93fb8fbacab3a
treeec3c80906e40394ff092c1d6128951cb61e6807e
parentef3a852c749491082bea51e1f0b4ee27afb2b94c
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