ASoC: ssm2602: Fix priv substreams refs
authorKarl Beldan <karl.beldan@gmail.com>
Thu, 20 Nov 2008 14:39:27 +0000 (15:39 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 21 Nov 2008 14:02:07 +0000 (14:02 +0000)
commitfaab5a32f4d0784d6bde57963267be0453be3546
treec5857519e2897a6ba9597054472e898f582a835d
parentbd903bde7e0ad017cb87a228f451e05011e6d302
ASoC: ssm2602: Fix priv substreams refs

Clean up our record of the active streams in shutdown(), fixing
subsequent failures of snd_pcm_hw_constraints_complete after closure of
a stream.

NOTE:
- The ssm2602 allows pairs of non-matching PB/REC rates.
- This is a fix for less evil:
  The logic is flawed (e.g. the slave might startup before the
  master's rate and sample_bits are set).

Signed-off-by: Karl Beldan <karl.beldan@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ssm2602.c