From 0b155e694db8254a4d921434ab7c0d7a50e89f68 Mon Sep 17 00:00:00 2001 From: Kangho Hur Date: Fri, 10 Feb 2012 15:23:16 +0900 Subject: [PATCH] Change the equation for frequence --- debian/changelog | 6 ++++++ src/radio.c | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) mode change 100755 => 100644 src/radio.c diff --git a/debian/changelog b/debian/changelog index bcd3f89..8517780 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +capi-media-radio (0.1.0-5) unstable; urgency=low + + * Apply the change of frequency unit + + -- Kangho Hur Fri, 10 Feb 2012 15:21:06 +0900 + capi-media-radio (0.1.0-4) unstable; urgency=low * Initial release. diff --git a/src/radio.c b/src/radio.c old mode 100755 new mode 100644 index faeb84a..106829c --- a/src/radio.c +++ b/src/radio.c @@ -142,7 +142,7 @@ int _msg_callback(int message, void *param, void *user_data) case MM_MESSAGE_RADIO_SCAN_INFO: if( handle->user_cb[_RADIO_EVENT_TYPE_SCAN_INFO] ) { - ((radio_scan_updated_cb)handle->user_cb[_RADIO_EVENT_TYPE_SCAN_INFO])(msg->radio_scan.frequency*100,handle->user_data[_RADIO_EVENT_TYPE_SCAN_INFO]); + ((radio_scan_updated_cb)handle->user_cb[_RADIO_EVENT_TYPE_SCAN_INFO])(msg->radio_scan.frequency,handle->user_data[_RADIO_EVENT_TYPE_SCAN_INFO]); } break; case MM_MESSAGE_RADIO_SCAN_STOP: @@ -160,7 +160,7 @@ int _msg_callback(int message, void *param, void *user_data) case MM_MESSAGE_RADIO_SEEK_FINISH: if( handle->user_cb[_RADIO_EVENT_TYPE_SEEK_FINISH] ) { - ((radio_seek_completed_cb)handle->user_cb[_RADIO_EVENT_TYPE_SEEK_FINISH])(msg->radio_scan.frequency*100, handle->user_data[_RADIO_EVENT_TYPE_SEEK_FINISH]); + ((radio_seek_completed_cb)handle->user_cb[_RADIO_EVENT_TYPE_SEEK_FINISH])(msg->radio_scan.frequency, handle->user_data[_RADIO_EVENT_TYPE_SEEK_FINISH]); } break; case MM_MESSAGE_STATE_INTERRUPTED: @@ -374,7 +374,7 @@ int radio_set_frequency(radio_h radio, int frequency) LOGE("[%s] RADIO_ERROR_INVALID_PARAMETER(0x%08x) : Out of range (87500 ~ 108000)" ,__FUNCTION__,RADIO_ERROR_INVALID_PARAMETER); return RADIO_ERROR_INVALID_PARAMETER; } - int freq= frequency/100; + int freq= frequency; radio_s * handle = (radio_s *) radio; int ret = mm_radio_set_frequency(handle->mm_handle, freq); if(ret != MM_ERROR_NONE) @@ -400,7 +400,7 @@ int radio_get_frequency(radio_h radio, int *frequency) } else { - *frequency = freq*100; + *frequency = freq; return RADIO_ERROR_NONE; } } -- 2.7.4