diff options
author | aravind.gara <aravind.gara@samsung.com> | 2017-10-16 19:37:13 +0900 |
---|---|---|
committer | aravind kumar <aravind.gara@samsung.com> | 2017-10-16 10:59:14 +0000 |
commit | 7776d3b124e9a858937059fd4de70f21662d2f2f (patch) | |
tree | a164175c95afbcceb9a9df4b8d81783301bd06a2 | |
parent | 2cda60dc12b2f808ccbf8c315a92ae328d80de13 (diff) | |
download | audio-hal-sc7727-7776d3b124e9a858937059fd4de70f21662d2f2f.tar.gz audio-hal-sc7727-7776d3b124e9a858937059fd4de70f21662d2f2f.tar.bz2 audio-hal-sc7727-7776d3b124e9a858937059fd4de70f21662d2f2f.zip |
Rectify arguments mismatchsubmit/tizen/20171016.110423accepted/tizen/unified/20171018.062237
Change-Id: I564038e2d0eb6b67bd190a1f7011f50080392e19
Signed-off-by: aravind.gara <aravind.gara@samsung.com>
(cherry picked from commit 840e5901561ab3c34ff81936d0511ede4c35ef1f)
-rw-r--r-- | tizen-audio-impl-pcm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tizen-audio-impl-pcm.c b/tizen-audio-impl-pcm.c index efb62fc..6f1a02b 100644 --- a/tizen-audio-impl-pcm.c +++ b/tizen-audio-impl-pcm.c @@ -761,12 +761,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; } @@ -981,4 +981,4 @@ audio_return_t _pcm_set_sw_params(snd_pcm_t *pcm, snd_pcm_uframes_t avail_min, u return AUDIO_RET_OK; error: return err; -}
\ No newline at end of file +} |