Home
last modified time | relevance | path

Searched refs:portState (Results 1 – 1 of 1) sorted by relevance

/aosp14/frameworks/base/media/native/midi/
H A Damidi.cpp284 int portState = MIDI_PORT_STATE_OPEN_IDLE; in AMIDI_closePort() local
285 while (!port->state.compare_exchange_weak(portState, MIDI_PORT_STATE_CLOSED)) { in AMIDI_closePort()
286 if (portState == MIDI_PORT_STATE_CLOSED) { in AMIDI_closePort()
322 int portState = MIDI_PORT_STATE_OPEN_IDLE; in receive() local
324 if (!mPort->state.compare_exchange_strong(portState, MIDI_PORT_STATE_OPEN_ACTIVE)) { in receive()