diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-04-30 08:13:14 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-04-30 08:30:35 -0400 |
commit | 07736d48051869c37838635b41850618aa63b9a7 (patch) | |
tree | c273de1f3c71a2808325a1502f27b2f9bef4bedc /sound/soc/s3c24xx/s3c-i2s-v2.c | |
parent | 553b1dd58c5cf1abd6d0965041169400a3cff1ad (diff) |
ASoC: Fix boot warnings from S3C IISv2
On startup we try to make sure that the port is quiesced but if the
port is already stopped then this will generate a warning about the
RX/TX mode configuration. Configure the mode before doing the teardown
to suppress these warnings.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/s3c24xx/s3c-i2s-v2.c')
-rw-r--r-- | sound/soc/s3c24xx/s3c-i2s-v2.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sound/soc/s3c24xx/s3c-i2s-v2.c b/sound/soc/s3c24xx/s3c-i2s-v2.c index 54f4119e6098..34142c859225 100644 --- a/sound/soc/s3c24xx/s3c-i2s-v2.c +++ b/sound/soc/s3c24xx/s3c-i2s-v2.c | |||
@@ -573,6 +573,7 @@ int s3c_i2sv2_probe(struct platform_device *pdev, | |||
573 | unsigned long base) | 573 | unsigned long base) |
574 | { | 574 | { |
575 | struct device *dev = &pdev->dev; | 575 | struct device *dev = &pdev->dev; |
576 | unsigned int iismod; | ||
576 | 577 | ||
577 | i2s->dev = dev; | 578 | i2s->dev = dev; |
578 | 579 | ||
@@ -594,12 +595,16 @@ int s3c_i2sv2_probe(struct platform_device *pdev, | |||
594 | 595 | ||
595 | clk_enable(i2s->iis_pclk); | 596 | clk_enable(i2s->iis_pclk); |
596 | 597 | ||
598 | /* Mark ourselves as in TXRX mode so we can run through our cleanup | ||
599 | * process without warnings. */ | ||
600 | iismod = readl(i2s->regs + S3C2412_IISMOD); | ||
601 | iismod |= S3C2412_IISMOD_MODE_TXRX; | ||
602 | writel(iismod, i2s->regs + S3C2412_IISMOD); | ||
597 | s3c2412_snd_txctrl(i2s, 0); | 603 | s3c2412_snd_txctrl(i2s, 0); |
598 | s3c2412_snd_rxctrl(i2s, 0); | 604 | s3c2412_snd_rxctrl(i2s, 0); |
599 | 605 | ||
600 | return 0; | 606 | return 0; |
601 | } | 607 | } |
602 | |||
603 | EXPORT_SYMBOL_GPL(s3c_i2sv2_probe); | 608 | EXPORT_SYMBOL_GPL(s3c_i2sv2_probe); |
604 | 609 | ||
605 | #ifdef CONFIG_PM | 610 | #ifdef CONFIG_PM |