diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-01-13 18:20:24 +0100 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-01-13 18:20:24 +0100 |
commit | 9ca2a6be6ea15beb9088212a7b8ba495857cca4b (patch) | |
tree | 6be3438dc524d67cffc52aba163175898a3f8765 | |
parent | 2ab60ecb15ab1a7e30226563a15bbeec05dda54d (diff) | |
download | cfmradio-9ca2a6be6ea15beb9088212a7b8ba495857cca4b.tar.gz cfmradio-9ca2a6be6ea15beb9088212a7b8ba495857cca4b.zip |
minor formatting
-rw-r--r-- | radio.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -85,9 +85,10 @@ static void cfm_radio_tuner_power(CFmRadio *self, gboolean enable) if (priv->fd == -1) return; - vctrl.id = V4L2_CID_AUDIO_MUTE; - vctrl.value = enable ? 0 : 1; - res = ioctl(priv->fd, VIDIOC_S_CTRL, &vctrl); + vctrl.id = V4L2_CID_AUDIO_MUTE; + vctrl.value = enable ? 0 : 1; + res = ioctl(priv->fd, VIDIOC_S_CTRL, &vctrl); + if (res < 0) { perror("VIDIOC_S_CTRL"); } @@ -213,10 +214,10 @@ static void cfm_radio_init_tuner(CFmRadio *self, const gchar * device) if (priv->precise_tuner) { priv->range_low = tuner.rangelow * 62.5f; - priv->range_high = tuner.rangehigh * 62.5f; + priv->range_high = tuner.rangehigh * 62.5f; } else { priv->range_low = tuner.rangelow * 62500; - priv->range_high = tuner.rangehigh * 62500; + priv->range_high = tuner.rangehigh * 62500; } g_debug("Tuner detected (from %lu to %lu)\n", priv->range_low, priv->range_high); |