alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ALSA: ASoC: fix PXA SSP port resume
@ 2010-01-28 10:34 Daniel Mack
  2010-01-29 10:13 ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Mack @ 2010-01-28 10:34 UTC (permalink / raw)
  To: alsa-devel; +Cc: Mark Brown, Eric Miao, Philipp Zabel

Invalidate the cached hardware format on resume for PXA SSP ports.
Otherwise hw_params() will bail out early at the next stream start,
leaving the registers in a bogus state.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Eric Miao <eric.y.miao@gmail.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Philipp Zabel <philipp.zabel@gmail.com>
---
 sound/soc/pxa/pxa-ssp.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c
index 3bd7712..ebde673 100644
--- a/sound/soc/pxa/pxa-ssp.c
+++ b/sound/soc/pxa/pxa-ssp.c
@@ -146,6 +146,9 @@ static int pxa_ssp_resume(struct snd_soc_dai *cpu_dai)
 {
 	struct ssp_priv *priv = cpu_dai->private_data;
 
+	/* the cached format information is invalid now */
+	priv->dai_fmt = (unsigned int) -1;
+
 	if (!cpu_dai->active)
 		return 0;
 
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-02-02 11:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-28 10:34 [PATCH] ALSA: ASoC: fix PXA SSP port resume Daniel Mack
2010-01-29 10:13 ` Mark Brown
2010-01-29 11:08   ` Daniel Mack
2010-01-29 14:00     ` Mark Brown
2010-02-02  3:32       ` Daniel Mack
2010-02-02 10:51         ` Liam Girdwood
2010-02-02 10:45           ` Daniel Mack
2010-02-02 11:41             ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).