+capi-media-radio (0.1.0-5) unstable; urgency=low
+
+ * Apply the change of frequency unit
+
+ -- Kangho Hur <kangho.hur@samsung.com> Fri, 10 Feb 2012 15:21:06 +0900
+
capi-media-radio (0.1.0-4) unstable; urgency=low
* Initial release.
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:
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:
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)
}
else
{
- *frequency = freq*100;
+ *frequency = freq;
return RADIO_ERROR_NONE;
}
}