diff options
author | Mok Jeongho <jho.mok@samsung.com> | 2016-03-16 15:30:59 +0900 |
---|---|---|
committer | Mok Jeongho <jho.mok@samsung.com> | 2016-03-16 15:30:59 +0900 |
commit | 1852371b01bbd15d799e169571572a8d77ad1a6e (patch) | |
tree | 0cf139d12ec03520e0051fb3e96021888ab67ddf | |
parent | 5eb383661f5ea5f6be3c24338d130a5be77dbccc (diff) | |
download | audio-hal-sc7727-1852371b01bbd15d799e169571572a8d77ad1a6e.tar.gz audio-hal-sc7727-1852371b01bbd15d799e169571572a8d77ad1a6e.tar.bz2 audio-hal-sc7727-1852371b01bbd15d799e169571572a8d77ad1a6e.zip |
Fix build warnings
[Version] 0.1.6
[Profile] Mobile
[Issue Type] Fix Warning
Change-Id: Id16fb419d20c864c66e74dcf7b7411fef000f9af
-rw-r--r-- | packaging/audio-hal-sc7727.spec | 2 | ||||
-rw-r--r-- | tizen-audio-modem.c | 46 |
2 files changed, 1 insertions, 47 deletions
diff --git a/packaging/audio-hal-sc7727.spec b/packaging/audio-hal-sc7727.spec index fba65ef..69aae3c 100644 --- a/packaging/audio-hal-sc7727.spec +++ b/packaging/audio-hal-sc7727.spec @@ -1,6 +1,6 @@ Name: audio-hal-sc7727 Summary: TIZEN Audio HAL for SC7727 -Version: 0.1.5 +Version: 0.1.6 Release: 0 Group: System/Libraries License: Apache-2.0 diff --git a/tizen-audio-modem.c b/tizen-audio-modem.c index fbb1e6b..9229c13 100644 --- a/tizen-audio-modem.c +++ b/tizen-audio-modem.c @@ -182,34 +182,6 @@ int _audio_modem_is_call_connected(audio_hal_t *ah) return (val == VBC_TD_CHANNELID) ? 1 : 0; } -static int __voice_read_samplerate(int fd, set_samplerate_t *paras_ptr) -{ - int ret = 0; - if (fd > 0 && paras_ptr != NULL) { - ret = __read_nonblock(fd, paras_ptr, sizeof(set_samplerate_t)); - if (ret != sizeof(set_samplerate_t)) - ret = -1; - } - AUDIO_LOG_INFO("Return value of read sample rate = %d", ret); - return ret; - -} - -static int __voice_get_samplerate(audio_hal_t *ah, int fd) -{ - set_samplerate_t samplerate_paras; - - memset(&samplerate_paras, 0, sizeof(set_samplerate_t)); - __voice_read_samplerate(fd, &samplerate_paras); - - if (samplerate_paras.samplerate <= 0) - ah->modem.samplerate = 8000; - else - ah->modem.samplerate = samplerate_paras.samplerate; - - return 0; -} - static int __vbc_write_response(int fd, unsigned int cmd, uint32_t paras_size) { int ret = 0; @@ -502,16 +474,6 @@ again: case VBC_CMD_SET_SAMPLERATE: { AUDIO_LOG_INFO("[voice] Received VBC_CMD_SET_SAMPLERATE"); -// _voice_pcm_close(ah, 0); -// -// __voice_get_samplerate(ah, vbpipe_fd); -// -// ret = _voice_pcm_open(ah); -// if (ret < 0) { -// _voice_pcm_close(ah, 1); -// break; -// } - AUDIO_LOG_DEBUG("[voice] Send response for VBC_CMD_SET_SAMPLERATE"); __vbc_write_response(vbpipe_fd, VBC_CMD_SET_SAMPLERATE, 0); break; @@ -681,14 +643,6 @@ again: case VBC_CMD_SET_SAMPLERATE: { AUDIO_LOG_INFO("[voip] Received VBC_CMD_SET_SAMPLERATE"); -// _voice_pcm_close(ah, 0); -// __voice_get_samplerate(ah, vbpipe_fd); -// -// ret = _voice_pcm_open(ah); -// if (ret < 0) { -// _voice_pcm_close(ah, 1); -// break; -// } AUDIO_LOG_DEBUG("[voip] Send response for VBC_CMD_SET_SAMPLERATE"); __vbc_write_response(vbpipe_fd, VBC_CMD_SET_SAMPLERATE, 0); break; |