ASoC: odroidx2_max98090: Make debug logs dev_dbg()
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 12 Jun 2014 13:48:29 +0000 (15:48 +0200)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 06:16:07 +0000 (15:16 +0900)
It's just a debug information so make it dev_dbg(). While at it
use snd_pcm_stream_str() rather than open coding it.

Change-Id: Ib3c9820660bc69fb0c98a12762c6c009a55a6020
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
sound/soc/samsung/odroidx2_max98090.c

index d8f4fe7..4ac6902 100644 (file)
@@ -38,12 +38,9 @@ static int odroidx2_hw_params(struct snd_pcm_substream *substream,
        if (ret < 0)
                return ret;
 
-       dev_info(codec_dai->dev,
-               "HiFi DAI %s params ch %d, rate %d as i2s slave\n",
-               ((substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
-                                               "playback" : "capture"),
-                                               params_channels(params),
-                                               params_rate(params));
+       dev_dbg(codec_dai->dev, "HiFi DAI %s params: channels: %d, rate: %d\n",
+               snd_pcm_stream_str(substream), params_channels(params),
+               params_rate(params));
 
        return 0;
 }