diff options
author | Sanket Agarwal <sanketa@google.com> | 2015-10-16 14:37:01 -0700 |
---|---|---|
committer | Sanket Agarwal <sanketa@google.com> | 2015-11-05 19:23:01 +0000 |
commit | 2ccc52c3bbb70eff1705e2a6a3410517f29809b3 (patch) | |
tree | ff32388d668a2c9eb7770bfe564970c164c67e9c /include/system | |
parent | c6dc5edf79c34ac2bdfa3401e43b2391f704e572 (diff) | |
download | core-2ccc52c3bbb70eff1705e2a6a3410517f29809b3.tar.gz core-2ccc52c3bbb70eff1705e2a6a3410517f29809b3.tar.bz2 core-2ccc52c3bbb70eff1705e2a6a3410517f29809b3.zip |
Add emergency announcement to definitions.
Change-Id: I57b1d6d5a0f8142efba27a17e6015429eba04f5c
(cherry picked from commit 2d0a4c10b6601e5f16a336d44f8536a7277d52d3)
Diffstat (limited to 'include/system')
-rw-r--r-- | include/system/radio.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/system/radio.h b/include/system/radio.h index a08852604..9e291c83d 100644 --- a/include/system/radio.h +++ b/include/system/radio.h @@ -94,6 +94,7 @@ typedef struct radio_hal_fm_band_config { radio_rds_t rds; /* RDS variants supported */ bool ta; /* Traffic Announcement supported */ bool af; /* Alternate Frequency supported */ + bool ea; /* Emergency announcements supported */ } radio_hal_fm_band_config_t; /* Additional attributes for an AM band configuration */ @@ -184,6 +185,7 @@ enum { RADIO_EVENT_METADATA = 4, /* New meta data received */ RADIO_EVENT_TA = 5, /* Traffic announcement start or stop */ RADIO_EVENT_AF_SWITCH = 6, /* Switch to Alternate Frequency */ + RADIO_EVENT_EA = 7, /* Emergency announcement start or stop */ // begin framework only events RADIO_EVENT_CONTROL = 100, /* loss/gain of tuner control */ RADIO_EVENT_SERVER_DIED = 101, /* radio service died */ @@ -195,7 +197,8 @@ typedef struct radio_hal_event { radio_event_type_t type; /* event type */ int status; /* used by RADIO_EVENT_CONFIG, RADIO_EVENT_TUNED */ union { - bool on; /* RADIO_EVENT_ANTENNA, RADIO_EVENT_TA */ + /* RADIO_EVENT_ANTENNA, RADIO_EVENT_TA, RADIO_EVENT_EA */ + bool on; radio_hal_band_config_t config; /* RADIO_EVENT_CONFIG */ radio_program_info_t info; /* RADIO_EVENT_TUNED, RADIO_EVENT_AF_SWITCH */ radio_metadata_t *metadata; /* RADIO_EVENT_METADATA */ |