summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraravind.gara <aravind.gara@samsung.com>2017-10-16 19:31:41 +0900
committeraravind kumar <aravind.gara@samsung.com>2017-10-16 10:59:28 +0000
commit945d7c11d453a93b108ff068a45e90b5b259e03b (patch)
treeec497649ed04b10192a90d10b67197053e1a86d6
parente3d609795bdbebf08a6c0af6e582606219c7fb7d (diff)
downloadaudio-hal-max98090-945d7c11d453a93b108ff068a45e90b5b259e03b.tar.gz
audio-hal-max98090-945d7c11d453a93b108ff068a45e90b5b259e03b.tar.bz2
audio-hal-max98090-945d7c11d453a93b108ff068a45e90b5b259e03b.zip
Change-Id: Ib8ed8073f6c493f8cafa1415d1274759b720f023 Signed-off-by: aravind.gara <aravind.gara@samsung.com> (cherry picked from commit ae02c1daefe0c22314d7edf100f9e683fe5deab9)
-rw-r--r--tizen-audio-impl-pcm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tizen-audio-impl-pcm.c b/tizen-audio-impl-pcm.c
index c092218..57229c8 100644
--- a/tizen-audio-impl-pcm.c
+++ b/tizen-audio-impl-pcm.c
@@ -546,12 +546,12 @@ audio_return_t _pcm_set_params(void *pcm_handle, uint32_t direction, void *sampl
}
if ((err = snd_pcm_hw_params_set_channels(pcm_handle, hwparams, ss.channels)) < 0) {
- AUDIO_LOG_ERROR("snd_pcm_hw_params_set_channels(%u) failed : %d", err);
+ AUDIO_LOG_ERROR("snd_pcm_hw_params_set_channels(%u) failed : %d", ss.channels, err);
return AUDIO_ERR_PARAMETER;
}
if ((err = snd_pcm_hw_params_set_period_size(pcm_handle, hwparams, period_size, 0)) < 0) {
- AUDIO_LOG_ERROR("snd_pcm_hw_params_set_period_size(%u) failed : %d", err);
+ AUDIO_LOG_ERROR("snd_pcm_hw_params_set_period_size(%u) failed : %d", period_size, err);
return AUDIO_ERR_PARAMETER;
}