Sync
This commit is contained in:
@@ -89,6 +89,15 @@ static void audio_set_state(enum audio_thread_state_t new_state, const char *rea
|
||||
{
|
||||
enum audio_thread_state_t old_state = atomic_get(&thread_state);
|
||||
|
||||
if ((old_state == AUDIO_IDLE) && (new_state != AUDIO_IDLE))
|
||||
{
|
||||
event_mgmt_set_event(EVENT_MGMT_AUDIO_ACTIVE);
|
||||
}
|
||||
else if ((old_state != AUDIO_IDLE) && (new_state == AUDIO_IDLE))
|
||||
{
|
||||
event_mgmt_set_event(EVENT_MGMT_AUDIO_IDLE);
|
||||
}
|
||||
|
||||
if (old_state != new_state)
|
||||
{
|
||||
LOG_INF("Audio state %s -> %s (%s)",
|
||||
|
||||
Reference in New Issue
Block a user