Add emergency announcement to definitions.
Change-Id: I57b1d6d5a0f8142efba27a17e6015429eba04f5c (cherry picked from commit 2d0a4c10b6601e5f16a336d44f8536a7277d52d3)
This commit is contained in:
parent
c6dc5edf79
commit
2ccc52c3bb
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue