ASoC: Log WM8994 separate ADC LRCLKs every time we configure
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 23 Aug 2010 09:54:43 +0000 (10:54 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 23 Aug 2010 12:31:45 +0000 (13:31 +0100)
This makes it that little bit easier to spot the diagnostics in the
logs.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/wm8994.c

index 76a066e908ed6311780b2a246c9200c149247317..e03072cade7b2a9d00f928b2912686fca0cd0dac 100644 (file)
@@ -3316,20 +3316,24 @@ static int wm8994_hw_params(struct snd_pcm_substream *substream,
                bclk_reg = WM8994_AIF1_BCLK;
                rate_reg = WM8994_AIF1_RATE;
                if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ||
-                   wm8994->lrclk_shared[0])
+                   wm8994->lrclk_shared[0]) {
                        lrclk_reg = WM8994_AIF1DAC_LRCLK;
-               else
+               } else {
                        lrclk_reg = WM8994_AIF1ADC_LRCLK;
+                       dev_dbg(codec->dev, "AIF1 using split LRCLK\n");
+               }
                break;
        case 2:
                aif1_reg = WM8994_AIF2_CONTROL_1;
                bclk_reg = WM8994_AIF2_BCLK;
                rate_reg = WM8994_AIF2_RATE;
                if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ||
-                   wm8994->lrclk_shared[1])
+                   wm8994->lrclk_shared[1]) {
                        lrclk_reg = WM8994_AIF2DAC_LRCLK;
-               else
+               } else {
                        lrclk_reg = WM8994_AIF2ADC_LRCLK;
+                       dev_dbg(codec->dev, "AIF2 using split LRCLK\n");
+               }
                break;
        default:
                return -EINVAL;