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>
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;
}