Loading core/jni/android_hardware_fm_si4709.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -281,6 +281,9 @@ int setFreq(int freq, int fd) { LOGV("%s", __func__); //The driver expects the frequency to be in a different unit freq = freq / 10; int ret; ret = ioctl(fd, Si4709_IOC_CHAN_SELECT, &freq); Loading Loading @@ -464,6 +467,9 @@ static jint android_hardware_fmradio_FmReceiverJNI_getFreqNative return FM_JNI_FAILURE; } //convert the frquency to khz units for the application freq = freq * 10; return freq; } Loading Loading
core/jni/android_hardware_fm_si4709.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -281,6 +281,9 @@ int setFreq(int freq, int fd) { LOGV("%s", __func__); //The driver expects the frequency to be in a different unit freq = freq / 10; int ret; ret = ioctl(fd, Si4709_IOC_CHAN_SELECT, &freq); Loading Loading @@ -464,6 +467,9 @@ static jint android_hardware_fmradio_FmReceiverJNI_getFreqNative return FM_JNI_FAILURE; } //convert the frquency to khz units for the application freq = freq * 10; return freq; } Loading