ASoC/mpc5200: fix enable/disable of AC97 slots
authorGrant Likely <grant.likely@secretlab.ca>
Sat, 7 Nov 2009 08:34:43 +0000 (01:34 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 7 Nov 2009 12:40:09 +0000 (12:40 +0000)
commitc939e5c82142978d9d534aca34187a8489fd13f3
tree5c0ea0815d98c71371feb25f76e852f2123e0d95
parent1d8222e8df07ce4f86fb7fa80b02bdee03b57985
ASoC/mpc5200: fix enable/disable of AC97 slots

The MPC5200 AC97 driver is disabling the slots when a stop
trigger is received, but not reenabling them if the stream
is started again without processing the hw_params again.

This patch fixes the problem by caching the slot enable bit
settings calculated at hw_params time so that they can be
reapplied every time the start trigger is received.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/fsl/mpc5200_dma.h
sound/soc/fsl/mpc5200_psc_ac97.c