Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37b5a0f8 authored by Diogo Ferreira's avatar Diogo Ferreira Committed by Gerrit Code Review
Browse files

Merge "Fix the frequncy unit mismatch between the FM app and the driver." into gingerbread

parents 2770abd7 84286b47
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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);
@@ -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;
}