hal/fallback/FallbackFMRadio.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/hal/fallback/FallbackFMRadio.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,61 @@
     1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim: set sw=2 ts=8 et ft=cpp : */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.8 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "Hal.h"
    1.11 +
    1.12 +namespace mozilla {
    1.13 +namespace hal_impl {
    1.14 +
    1.15 +void
    1.16 +EnableFMRadio(const hal::FMRadioSettings& aInfo)
    1.17 +{}
    1.18 +
    1.19 +void
    1.20 +DisableFMRadio()
    1.21 +{}
    1.22 +
    1.23 +void
    1.24 +FMRadioSeek(const hal::FMRadioSeekDirection& aDirection)
    1.25 +{}
    1.26 +
    1.27 +void
    1.28 +GetFMRadioSettings(hal::FMRadioSettings* aInfo)
    1.29 +{
    1.30 +  aInfo->country() = hal::FM_RADIO_COUNTRY_UNKNOWN;
    1.31 +  aInfo->upperLimit() = 0;
    1.32 +  aInfo->lowerLimit() = 0;
    1.33 +  aInfo->spaceType() = 0;
    1.34 +  aInfo->preEmphasis() = 0;
    1.35 +}
    1.36 +
    1.37 +void
    1.38 +SetFMRadioFrequency(const uint32_t frequency)
    1.39 +{}
    1.40 +
    1.41 +uint32_t
    1.42 +GetFMRadioFrequency()
    1.43 +{
    1.44 +  return 0;
    1.45 +}
    1.46 +
    1.47 +bool
    1.48 +IsFMRadioOn()
    1.49 +{
    1.50 +  return false;
    1.51 +}
    1.52 +
    1.53 +uint32_t
    1.54 +GetFMRadioSignalStrength()
    1.55 +{
    1.56 +  return 0;
    1.57 +}
    1.58 +
    1.59 +void
    1.60 +CancelFMRadioSeek()
    1.61 +{}
    1.62 +
    1.63 +} // hal_impl
    1.64 +} // namespace mozilla

mercurial