summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilbok Lee <gilbok.lee@samsung.com>2016-06-22 15:54:13 +0900
committerGilbok Lee <gilbok.lee@samsung.com>2016-06-22 15:54:13 +0900
commit17de5a3eeae10585aa5b065ffe10046df13e401e (patch)
tree3b7dc50c075df00ca94edd71f51638a7bfcfcfce
parentd3b6ae31bd75cbe414aaf7b1fb456615f5a12f00 (diff)
downloadlibmm-radio-17de5a3eeae10585aa5b065ffe10046df13e401e.tar.gz
libmm-radio-17de5a3eeae10585aa5b065ffe10046df13e401e.tar.bz2
libmm-radio-17de5a3eeae10585aa5b065ffe10046df13e401e.zip
Change-Id: I4d09fe98fe035360054e899ef7a988fd9e6ad8f2
-rwxr-xr-xpackaging/libmm-radio.spec2
-rw-r--r--src/mm_radio_priv_emulator.c24
2 files changed, 3 insertions, 23 deletions
diff --git a/packaging/libmm-radio.spec b/packaging/libmm-radio.spec
index f465009..cc4200b 100755
--- a/packaging/libmm-radio.spec
+++ b/packaging/libmm-radio.spec
@@ -1,6 +1,6 @@
Name: libmm-radio
Summary: Multimedia Framework Radio Library
-Version: 0.2.4
+Version: 0.2.5
Release: 0
Group: System/Libraries
License: Apache-2.0
diff --git a/src/mm_radio_priv_emulator.c b/src/mm_radio_priv_emulator.c
index 39d083f..75a70bd 100644
--- a/src/mm_radio_priv_emulator.c
+++ b/src/mm_radio_priv_emulator.c
@@ -331,10 +331,8 @@ int _mmradio_unrealize(mm_radio_t * radio)
/* return MM_ERROR_RADIO_NOT_INITIALIZED; */
/* close radio device here !!!! */
- if (radio->radio_fd >= 0) {
- close(radio->radio_fd);
+ if (radio->radio_fd >= 0)
radio->radio_fd = -1;
- }
MMRADIO_SET_STATE(radio, MM_RADIO_STATE_NULL);
ret = mmradio_release_audio_focus(&radio->sm);
@@ -517,15 +515,7 @@ int __mmradio_set_deemphasis(mm_radio_t * radio)
return MM_ERROR_COMMON_INVALID_ARGUMENT;
}
- /* set it to device */
- /* V4L2_CID_TUNE_DEEMPHASIS; */
- (radio->vctrl).id = (0x009d0000 | 0x900) + 1;
- (radio->vctrl).value = value;
-
- if (ioctl(radio->radio_fd, VIDIOC_S_CTRL, &(radio->vctrl)) < 0) {
- MMRADIO_LOG_ERROR("failed to set de-emphasis\n");
- return MM_ERROR_RADIO_INTERNAL;
- }
+ MMRADIO_LOG_DEBUG("set deemphasis %d", value);
MMRADIO_LOG_FLEAVE();
@@ -545,16 +535,6 @@ int __mmradio_set_band_range(mm_radio_t * radio)
return MM_ERROR_NONE;
MMRADIO_CHECK_INSTANCE(radio);
- /* get min and max freq. */
- (radio->vt).rangelow = RADIO_FREQ_FORMAT_SET(radio->region_setting.band_min);
- (radio->vt).rangehigh = RADIO_FREQ_FORMAT_SET(radio->region_setting.band_max);
-
- /* set it to device */
- if (ioctl(radio->radio_fd, VIDIOC_S_TUNER, &(radio->vt)) < 0) {
- MMRADIO_LOG_ERROR("failed to set band range\n");
- return MM_ERROR_RADIO_INTERNAL;
- }
-
MMRADIO_LOG_FLEAVE();
return MM_ERROR_NONE;